Package org.apache.jmeter.assertions
Class CompareAssertion
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.assertions.CompareAssertion
- All Implemented Interfaces:
Serializable,Cloneable,Assertion,LoopIterationListener,Searchable,TestBean,org.apache.jmeter.testelement.TestElement
public class CompareAssertion
extends AbstractTestElement
implements Assertion, TestBean, Serializable, LoopIterationListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion -
Field Summary
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetResult(SampleResult response) Returns the AssertionResult object encapsulating information about the success or failure of the assertion.booleanvoiditerationStart(LoopIterationEvent iterEvent) Called when a loop iteration is about to start.voidsetCompareContent(boolean compareContent) voidsetCompareTime(long compareTime) voidsetStringsToSkip(Collection<SubstitutionElement> stringsToSkip) Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getProps, getSchema, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
-
Constructor Details
-
CompareAssertion
public CompareAssertion()
-
-
Method Details
-
getResult
Description copied from interface:AssertionReturns the AssertionResult object encapsulating information about the success or failure of the assertion. -
iterationStart
Description copied from interface:LoopIterationListenerCalled when a loop iteration is about to start.- Specified by:
iterationStartin interfaceLoopIterationListener- Parameters:
iterEvent- the event
-
isCompareContent
public boolean isCompareContent()- Returns:
- Returns the compareContent.
-
setCompareContent
public void setCompareContent(boolean compareContent) - Parameters:
compareContent- The compareContent to set.
-
getCompareTime
public long getCompareTime()- Returns:
- Returns the compareTime.
-
setCompareTime
public void setCompareTime(long compareTime) - Parameters:
compareTime- The compareTime to set.
-
getStringsToSkip
- Returns:
- Returns the stringsToSkip.
-
setStringsToSkip
- Parameters:
stringsToSkip- The stringsToSkip to set.
-