org.apache.jmeter.assertions

Class ResponseAssertion

Implemented Interfaces:
Serializable, Assertion, Cloneable, Serializable, TestElement

public class ResponseAssertion
extends AbstractScopedAssertion
implements Serializable, Assertion

Test element to handle Response Assertions, @see AssertionGui

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()
void
clearTestStrings()
boolean
getAssumeSuccess()
AssertionResult
getResult(SampleResult response)
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

fetchScope, isScopeAll, isScopeChildren, isScopeParent, setScopeAll, setScopeChildren, setScopeParent

Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement

addProperty, addTestElement, canRemove, clear, clearTemporary, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty

Constructor Details

ResponseAssertion

public ResponseAssertion()

Method Details

addTestString

public void addTestString(String testString)

clear

public void clear()
Specified by:
clear in interface TestElement
Overrides:
clear in interface AbstractTestElement

clearTestStrings

public void clearTestStrings()

getAssumeSuccess

public boolean getAssumeSuccess()

getResult

public AssertionResult getResult(SampleResult response)
Specified by:
getResult in interface Assertion

getTestField

public String getTestField()
!ToDoo (Method description)
Returns:
!ToDo (Return description)

getTestStrings

public CollectionProperty getTestStrings()
!ToDoo (Method description)
Returns:
!ToDo (Return description)

getTestType

public int getTestType()
!ToDoo (Method description)
Returns:
!ToDo (Return description)

isContainsType

public boolean isContainsType()

isEqualsType

public boolean isEqualsType()

isMatchType

public boolean isMatchType()

isNotType

public boolean isNotType()

isSubstringType

public boolean isSubstringType()

isTestFieldResponseCode

public boolean isTestFieldResponseCode()

isTestFieldResponseData

public boolean isTestFieldResponseData()

isTestFieldResponseHeaders

public boolean isTestFieldResponseHeaders()

isTestFieldResponseMessage

public boolean isTestFieldResponseMessage()

isTestFieldURL

public boolean isTestFieldURL()

setAssumeSuccess

public void setAssumeSuccess(boolean b)

setTestFieldResponseCode

public void setTestFieldResponseCode()

setTestFieldResponseData

public void setTestFieldResponseData()

setTestFieldResponseHeaders

public void setTestFieldResponseHeaders()

setTestFieldResponseMessage

public void setTestFieldResponseMessage()

setTestFieldURL

public void setTestFieldURL()

setToContainsType

public void setToContainsType()

setToEqualsType

public void setToEqualsType()

setToMatchType

public void setToMatchType()

setToNotType

public void setToNotType()

setToSubstringType

public void setToSubstringType()

unsetNotType

public void unsetNotType()

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.