org.apache.jmeter.testelement
Class AbstractScopedAssertion
- Cloneable, Serializable, TestElement
public abstract class AbstractScopedAssertion
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:
- createScopePanel()
- saveScopeSettings()
- showScopeSettings()
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 |
fetchScope
public String fetchScope()
Get the scope setting
- the scope, default parent
isScopeAll
public boolean isScopeAll(String scope)
Is the assertion to be applied to the all samples?
- 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)?
- 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?
- 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.