org.apache.jmeter.assertions
Class XMLAssertion
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.assertions.XMLAssertion
- All Implemented Interfaces:
- Assertion, Cloneable, Serializable, TestElement
- public class XMLAssertion
- extends AbstractTestElement
- implements Serializable, Assertion
Checks if the result is a well-formed XML content.
- Version:
- $Revision: 1.4.2.1 $, $Date: 2004/10/13 00:30:31 $
- Author:
- Gottfried Szing
- See Also:
- Serialized Form
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, addTestElement, canRemove, clear, 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 |
XMLAssertion
public XMLAssertion()
getResult
public AssertionResult getResult(SampleResult response)
- Returns the result of the Assertion. Here it checks wether the
Sample took to long to be considered successful. If so an AssertionResult
containing a FailureMessage will be returned. Otherwise the returned
AssertionResult will reflect the success of the Sample.
- Specified by:
getResult
in interface Assertion
- Parameters:
response
- the SampleResult containing information about the
Sample (duration, success, etc)
- Returns:
- the AssertionResult containing the information about whether the
assertion passed or failed.
setResultForNull
protected AssertionResult setResultForNull(AssertionResult result)
Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.