org.apache.jmeter.testelement

Class AbstractScopedAssertion

Implemented Interfaces:
Cloneable, Serializable, TestElement
Known Direct Subclasses:
DurationAssertion, ResponseAssertion, SizeAssertion

public abstract class AbstractScopedAssertion
extends AbstractTestElement

Super-class for all Assertions that can be applied to main sample, sub-samples or both. Test elements merely need to extend this class to support scoping.

Their corresponding GUI classes need to add the AssertionScopePanel to the GUI using the AbstractAssertionGui methods:

Fields inherited from interface org.apache.jmeter.testelement.TestElement

COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS

Method Summary

String
fetchScope()
Get the scope setting
boolean
isScopeAll(String scope)
Is the assertion to be applied to the all samples?
boolean
isScopeChildren(String scope)
Is the assertion to be applied to the sub-samples (children)?
boolean
isScopeParent(String scope)
Is the assertion to be applied to the main (parent) sample?
void
setScopeAll()
void
setScopeChildren()
void
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

Method Details

fetchScope

public String fetchScope()
Get the scope setting
Returns:
the scope, default parent

isScopeAll

public boolean isScopeAll(String scope)
Is the assertion to be applied to the all samples?
Parameters:
scope -
Returns:
if the assertion is to be applied to the all samples.

isScopeChildren

public boolean isScopeChildren(String scope)
Is the assertion to be applied to the sub-samples (children)?
Parameters:
scope -
Returns:
if the assertion is to be applied to the children.

isScopeParent

public boolean isScopeParent(String scope)
Is the assertion to be applied to the main (parent) sample?
Parameters:
scope -
Returns:
if the assertion is to be applied to the parent sample.

setScopeAll

public void setScopeAll()

setScopeChildren

public void setScopeChildren()

setScopeParent

public void setScopeParent()

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