Package org.apache.jmeter.assertions
Class CompareAssertion
-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Cloneable,org.apache.jmeter.assertions.Assertion,org.apache.jmeter.engine.event.LoopIterationListener,org.apache.jmeter.gui.Searchable,org.apache.jmeter.testbeans.TestBean,org.apache.jmeter.testelement.TestElement
public class CompareAssertion extends AbstractTestElement implements Assertion, TestBean, Serializable, LoopIterationListener
-
-
Field Summary
Fields Modifier and Type Field Description public longcompareTimepublic Collection<SubstitutionElement>stringsToSkippublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description CompareAssertion()
-
Method Summary
Modifier and Type Method Description longgetCompareTime()voidsetCompareTime(long compareTime)Collection<SubstitutionElement>getStringsToSkip()voidsetStringsToSkip(Collection<SubstitutionElement> stringsToSkip)AssertionResultgetResult(SampleResult response)voiditerationStart(LoopIterationEvent iterEvent)booleanisCompareContent()voidsetCompareContent(boolean compareContent)-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse -
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCompareTime
long getCompareTime()
- Returns:
Returns the compareTime.
-
setCompareTime
void setCompareTime(long compareTime)
- Parameters:
compareTime- The compareTime to set.
-
getStringsToSkip
Collection<SubstitutionElement> getStringsToSkip()
- Returns:
Returns the stringsToSkip.
-
setStringsToSkip
void setStringsToSkip(Collection<SubstitutionElement> stringsToSkip)
- Parameters:
stringsToSkip- The stringsToSkip to set.
-
getResult
AssertionResult getResult(SampleResult response)
-
iterationStart
void iterationStart(LoopIterationEvent iterEvent)
-
isCompareContent
boolean isCompareContent()
- Returns:
Returns the compareContent.
-
setCompareContent
void setCompareContent(boolean compareContent)
- Parameters:
compareContent- The compareContent to set.
-
-
-
-