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
,TestElement
Test element to handle Response Assertions, @see AssertionGui
- See Also:
-
Field Summary
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTestString
(String testString) void
clear()
Clear the TestElement of all data.void
boolean
getResult
(SampleResult response) Returns the AssertionResult object encapsulating information about the success or failure of the assertion.!!int
!boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAssumeSuccess
(boolean b) void
void
void
void
void
void
void
void
void
void
void
void
Methods inherited from class org.apache.jmeter.testelement.AbstractScopedAssertion
getScopeName
Methods inherited from class org.apache.jmeter.testelement.AbstractScopedTestElement
fetchScope, getSampleList, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, 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, traverseProperty
-
Constructor Details
-
ResponseAssertion
public ResponseAssertion()
-
-
Method Details
-
clear
public void clear()Description copied from class:AbstractTestElement
Clear the TestElement of all data.- Specified by:
clear
in interfaceTestElement
- Overrides:
clear
in classAbstractTestElement
-
setTestFieldURL
public void setTestFieldURL() -
setTestFieldResponseCode
public void setTestFieldResponseCode() -
setTestFieldResponseData
public void setTestFieldResponseData() -
setTestFieldResponseDataAsDocument
public void setTestFieldResponseDataAsDocument() -
setTestFieldResponseMessage
public void setTestFieldResponseMessage() -
setTestFieldResponseHeaders
public void setTestFieldResponseHeaders() -
isTestFieldURL
public boolean isTestFieldURL() -
isTestFieldResponseCode
public boolean isTestFieldResponseCode() -
isTestFieldResponseData
public boolean isTestFieldResponseData() -
isTestFieldResponseDataAsDocument
public boolean isTestFieldResponseDataAsDocument() -
isTestFieldResponseMessage
public boolean isTestFieldResponseMessage() -
isTestFieldResponseHeaders
public boolean isTestFieldResponseHeaders() -
addTestString
-
clearTestStrings
public void clearTestStrings() -
getResult
Description copied from interface:Assertion
Returns the AssertionResult object encapsulating information about the success or failure of the assertion. -
getTestField
!ToDoo (Method description)- Returns:
- !ToDo (Return description)
-
getTestType
public int getTestType()!ToDoo (Method description)- Returns:
- !ToDo (Return description)
-
getTestStrings
!ToDoo (Method description)- Returns:
- !ToDo (Return description)
-
isEqualsType
public boolean isEqualsType() -
isSubstringType
public boolean isSubstringType() -
isContainsType
public boolean isContainsType() -
isMatchType
public boolean isMatchType() -
isNotType
public boolean isNotType() -
setToContainsType
public void setToContainsType() -
setToMatchType
public void setToMatchType() -
setToEqualsType
public void setToEqualsType() -
setToSubstringType
public void setToSubstringType() -
setToNotType
public void setToNotType() -
unsetNotType
public void unsetNotType() -
getAssumeSuccess
public boolean getAssumeSuccess() -
setAssumeSuccess
public void setAssumeSuccess(boolean b)
-