Package org.apache.jmeter.assertions
Class ResponseAssertion
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.testelement.AbstractScopedTestElement
org.apache.jmeter.testelement.AbstractScopedAssertion
org.apache.jmeter.assertions.ResponseAssertion
- All Implemented Interfaces:
- Serializable,- Cloneable,- Assertion,- Searchable,- org.apache.jmeter.testelement.TestElement
Test element to handle Response Assertions.
 See 
AssertionGui for GUI.- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddTestString(String testString) voidclear()voidbooleangetResult(SampleResult response) Returns the AssertionResult object encapsulating information about the success or failure of the assertion.intbooleanbooleanbooleanbooleanbooleanisOrType()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAssumeSuccess(boolean b) voidsetCustomFailureMessage(String customFailureMessage) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.jmeter.testelement.AbstractScopedAssertiongetScopeNameMethods inherited from class org.apache.jmeter.testelement.AbstractScopedTestElementfetchScope, getProps, getSampleList, getSchema, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariableMethods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, addTestElement, canRemove, 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.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElementget, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
- 
Constructor Details- 
ResponseAssertionpublic ResponseAssertion()
 
- 
- 
Method Details- 
clearpublic void clear()Description copied from class:AbstractTestElement- Specified by:
- clearin interface- org.apache.jmeter.testelement.TestElement
- Overrides:
- clearin class- AbstractTestElement
 
- 
setTestFieldURLpublic void setTestFieldURL()
- 
setTestFieldResponseCodepublic void setTestFieldResponseCode()
- 
setTestFieldResponseDatapublic void setTestFieldResponseData()
- 
setTestFieldResponseDataAsDocumentpublic void setTestFieldResponseDataAsDocument()
- 
setTestFieldResponseMessagepublic void setTestFieldResponseMessage()
- 
setTestFieldResponseHeaderspublic void setTestFieldResponseHeaders()
- 
setTestFieldRequestHeaderspublic void setTestFieldRequestHeaders()
- 
setTestFieldRequestDatapublic void setTestFieldRequestData()
- 
setCustomFailureMessage
- 
getCustomFailureMessage
- 
isTestFieldURLpublic boolean isTestFieldURL()
- 
isTestFieldResponseCodepublic boolean isTestFieldResponseCode()
- 
isTestFieldResponseDatapublic boolean isTestFieldResponseData()
- 
isTestFieldResponseDataAsDocumentpublic boolean isTestFieldResponseDataAsDocument()
- 
isTestFieldResponseMessagepublic boolean isTestFieldResponseMessage()
- 
isTestFieldResponseHeaderspublic boolean isTestFieldResponseHeaders()
- 
isTestFieldRequestHeaderspublic boolean isTestFieldRequestHeaders()
- 
isTestFieldRequestDatapublic boolean isTestFieldRequestData()
- 
addTestString
- 
clearTestStringspublic void clearTestStrings()
- 
getResultDescription copied from interface:AssertionReturns the AssertionResult object encapsulating information about the success or failure of the assertion.
- 
getTestField
- 
getTestTypepublic int getTestType()
- 
getTestStrings
- 
isEqualsTypepublic boolean isEqualsType()
- 
isSubstringTypepublic boolean isSubstringType()
- 
isContainsTypepublic boolean isContainsType()
- 
isMatchTypepublic boolean isMatchType()
- 
isNotTypepublic boolean isNotType()
- 
isOrTypepublic boolean isOrType()
- 
setToContainsTypepublic void setToContainsType()
- 
setToMatchTypepublic void setToMatchType()
- 
setToEqualsTypepublic void setToEqualsType()
- 
setToSubstringTypepublic void setToSubstringType()
- 
setToNotTypepublic void setToNotType()
- 
unsetNotTypepublic void unsetNotType()
- 
setToOrTypepublic void setToOrType()
- 
unsetOrTypepublic void unsetOrType()
- 
getAssumeSuccesspublic boolean getAssumeSuccess()
- 
setAssumeSuccesspublic void setAssumeSuccess(boolean b) 
 
-