Apache JMeter
2.0.1.20050615

org.apache.jmeter.assertions
Class ResponseAssertion

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.assertions.ResponseAssertion
All Implemented Interfaces:
Assertion, Cloneable, Serializable, TestElement

public class ResponseAssertion
extends AbstractTestElement
implements Serializable, Assertion

Version:
$Revision: 1.16.2.3 $ Last Updated: $Date: 2004/06/11 11:04:45 $
See Also:
Serialized Form

Nested Class Summary
static class ResponseAssertion.Test
           
 
Field Summary
static String ASSUME_SUCCESS
           
static String RESPONSE_CODE
           
static String RESPONSE_DATA
           
static String RESPONSE_MESSAGE
           
static String SAMPLE_LABEL
           
static String TEST_FIELD
           
static String TEST_STRINGS
           
static String TEST_TYPE
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
ResponseAssertion()
          !
ResponseAssertion(String field, int type, String string)
          !
 
Method Summary
 void addTestString(String testString)
          !
 void clear()
          Clear the TestElement of all data.
 void clearTestStrings()
           
 boolean getAssumeSuccess()
           
 AssertionResult getResult(SampleResult response)
          !
 String getTestField()
          !
 CollectionProperty getTestStrings()
          !
 int getTestType()
          !
 boolean isContainsType()
           
 boolean isMatchType()
           
 boolean isNotType()
           
 void removeTestString(int index)
           
 void removeTestString(String testString)
           
 void setAssumeSuccess(boolean b)
           
protected  AssertionResult setResultForNull(AssertionResult result)
           
 void setTestField(String testField)
          !
 void setTestString(String testString, int index)
           
 void setTestType(int testType)
          !
 void setToContainsType()
           
 void setToMatchType()
           
 void setToNotType()
           
 void unsetNotType()
           
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, addTestElement, canRemove, clearTemporary, clone, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_FIELD

public static final String TEST_FIELD
See Also:
Constant Field Values

SAMPLE_LABEL

public static final String SAMPLE_LABEL
See Also:
Constant Field Values

RESPONSE_DATA

public static final String RESPONSE_DATA
See Also:
Constant Field Values

RESPONSE_CODE

public static final String RESPONSE_CODE
See Also:
Constant Field Values

RESPONSE_MESSAGE

public static final String RESPONSE_MESSAGE
See Also:
Constant Field Values

ASSUME_SUCCESS

public static final String ASSUME_SUCCESS
See Also:
Constant Field Values

TEST_STRINGS

public static final String TEST_STRINGS
See Also:
Constant Field Values

TEST_TYPE

public static final String TEST_TYPE
See Also:
Constant Field Values
Constructor Detail

ResponseAssertion

public ResponseAssertion()
!ToDo (Constructor description)


ResponseAssertion

public ResponseAssertion(String field,
                         int type,
                         String string)
!ToDo (Constructor description)

Parameters:
field - !ToDo (Parameter description)
type - !ToDo (Parameter description)
string - !ToDo (Parameter description)
Method Detail

clear

public void clear()
Description copied from interface: TestElement
Clear the TestElement of all data.

Specified by:
clear in interface TestElement
Overrides:
clear in class AbstractTestElement

setTestField

public void setTestField(String testField)
!ToDo (Method description)

Parameters:
testField - !ToDo (Parameter description)

setTestType

public void setTestType(int testType)
!ToDo (Method description)

Parameters:
testType - !ToDo (Parameter description)

addTestString

public void addTestString(String testString)
!ToDo (Method description)

Parameters:
testString - !ToDo (Parameter description)

setTestString

public void setTestString(String testString,
                          int index)

removeTestString

public void removeTestString(String testString)

removeTestString

public void removeTestString(int index)

clearTestStrings

public void clearTestStrings()

getResult

public AssertionResult getResult(SampleResult response)
!ToDoo (Method description)

Specified by:
getResult in interface Assertion
Parameters:
response - !ToDo (Parameter description)
Returns:
!ToDo (Return description)

getTestField

public String getTestField()
!ToDoo (Method description)

Returns:
!ToDo (Return description)

getTestType

public int getTestType()
!ToDoo (Method description)

Returns:
!ToDo (Return description)

getTestStrings

public CollectionProperty getTestStrings()
!ToDoo (Method description)

Returns:
!ToDo (Return description)

isContainsType

public boolean isContainsType()

isMatchType

public boolean isMatchType()

isNotType

public boolean isNotType()

setToContainsType

public void setToContainsType()

setToMatchType

public void setToMatchType()

setToNotType

public void setToNotType()

unsetNotType

public void unsetNotType()

getAssumeSuccess

public boolean getAssumeSuccess()

setAssumeSuccess

public void setAssumeSuccess(boolean b)

setResultForNull

protected AssertionResult setResultForNull(AssertionResult result)

Apache JMeter
2.0.1.20050615

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