|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.testelement.AbstractScopedTestElement org.apache.jmeter.testelement.AbstractScopedAssertion org.apache.jmeter.assertions.ResponseAssertion
public class ResponseAssertion
Test element to handle Response Assertions, @see AssertionGui
Field Summary |
---|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
ResponseAssertion()
|
Method Summary | |
---|---|
void |
addTestString(String testString)
|
void |
clear()
Clear the TestElement of all data. |
void |
clearTestStrings()
|
boolean |
getAssumeSuccess()
|
AssertionResult |
getResult(SampleResult response)
Returns the AssertionResult object encapsulating information about the success or failure of the assertion. |
String |
getTestField()
! |
CollectionProperty |
getTestStrings()
! |
int |
getTestType()
! |
boolean |
isContainsType()
|
boolean |
isEqualsType()
|
boolean |
isMatchType()
|
boolean |
isNotType()
|
boolean |
isSubstringType()
|
boolean |
isTestFieldResponseCode()
|
boolean |
isTestFieldResponseData()
|
boolean |
isTestFieldResponseHeaders()
|
boolean |
isTestFieldResponseMessage()
|
boolean |
isTestFieldURL()
|
void |
setAssumeSuccess(boolean b)
|
void |
setTestFieldResponseCode()
|
void |
setTestFieldResponseData()
|
void |
setTestFieldResponseHeaders()
|
void |
setTestFieldResponseMessage()
|
void |
setTestFieldURL()
|
void |
setToContainsType()
|
void |
setToEqualsType()
|
void |
setToMatchType()
|
void |
setToNotType()
|
void |
setToSubstringType()
|
void |
unsetNotType()
|
Methods inherited from class org.apache.jmeter.testelement.AbstractScopedAssertion |
---|
getScopeName |
Methods inherited from class org.apache.jmeter.testelement.AbstractScopedTestElement |
---|
fetchScope, getSampleList, getSearchableTokens, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseAssertion()
Method Detail |
---|
public void clear()
AbstractTestElement
clear
in interface TestElement
clear
in class AbstractTestElement
public void setTestFieldURL()
public void setTestFieldResponseCode()
public void setTestFieldResponseData()
public void setTestFieldResponseMessage()
public void setTestFieldResponseHeaders()
public boolean isTestFieldURL()
public boolean isTestFieldResponseCode()
public boolean isTestFieldResponseData()
public boolean isTestFieldResponseMessage()
public boolean isTestFieldResponseHeaders()
public void addTestString(String testString)
public void clearTestStrings()
public AssertionResult getResult(SampleResult response)
Assertion
getResult
in interface Assertion
response
- the SampleResult containing information about the Sample
(duration, success, etc)
public String getTestField()
public int getTestType()
public CollectionProperty getTestStrings()
public boolean isEqualsType()
public boolean isSubstringType()
public boolean isContainsType()
public boolean isMatchType()
public boolean isNotType()
public void setToContainsType()
public void setToMatchType()
public void setToEqualsType()
public void setToSubstringType()
public void setToNotType()
public void unsetNotType()
public boolean getAssumeSuccess()
public void setAssumeSuccess(boolean b)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |