org.apache.jmeter.assertions
Class HTMLAssertion
- Serializable, Assertion, Cloneable, Serializable, TestElement
public class HTMLAssertion
Assertion to validate the response of a Sample with Tidy.
addProperty , addTestElement , canRemove , clear , clearTemporary , clone , emptyTemporary , equals , getComment , getName , getProperty , getPropertyAsBoolean , getPropertyAsBoolean , getPropertyAsDouble , getPropertyAsFloat , getPropertyAsInt , getPropertyAsInt , getPropertyAsLong , getPropertyAsString , getPropertyAsString , getThreadContext , getThreadName , hashCode , isEnabled , isRunningVersion , isTemporary , logProperties , mergeIn , propertyIterator , recoverRunningVersion , removeProperty , setComment , setName , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setProperty , setRunningVersion , setTemporary , setThreadContext , setThreadName , traverse , traverseCollection , traverseMap , traverseProperty |
DEFAULT_DOCTYPE
public static final String DEFAULT_DOCTYPE
DOCTYPE_KEY
public static final String DOCTYPE_KEY
ERRORS_ONLY_KEY
public static final String ERRORS_ONLY_KEY
ERROR_THRESHOLD_KEY
public static final String ERROR_THRESHOLD_KEY
FILENAME_KEY
public static final String FILENAME_KEY
FORMAT_KEY
public static final String FORMAT_KEY
WARNING_THRESHOLD_KEY
public static final String WARNING_THRESHOLD_KEY
HTMLAssertion
public HTMLAssertion()
getDoctype
public String getDoctype()
Gets the doctype
getErrorThreshold
public long getErrorThreshold()
Gets the threshold setting for errors
getFilename
public String getFilename()
Sets the name of the file where tidy writes the output to
getResult
public AssertionResult getResult(SampleResult inResponse)
Returns the result of the Assertion. If so an AssertionResult containing
a FailureMessage will be returned. Otherwise the returned AssertionResult
will reflect the success of the Sample.
- getResult in interface Assertion
getWarningThreshold
public long getWarningThreshold()
Gets the threshold setting for warnings
isErrorsOnly
public boolean isErrorsOnly()
Check if errors will be reported only
- boolean - report errors only?
isHTML
public boolean isHTML()
Check if html validation mode is set
isXHTML
public boolean isXHTML()
Check if xhtml validation mode is set
isXML
public boolean isXML()
Check if xml validation mode is set
setDoctype
public void setDoctype(String inDoctype)
Sets the doctype setting
setErrorThreshold
public void setErrorThreshold(long inErrorThreshold)
Sets the threshold on error level
setErrorsOnly
public void setErrorsOnly(boolean inErrorsOnly)
Sets if errors shoud be tracked only
setFilename
public void setFilename(String inName)
Sets the name of the tidy output file
setHTML
public void setHTML()
Enables html validation mode
setWarningThreshold
public void setWarningThreshold(long inWarningThreshold)
Sets the threshold on warning level
setXHTML
public void setXHTML()
Enables xhtml validation mode
setXML
public void setXML()
Enables xml validation mode
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.