public abstract class AbstractScopedTestElement extends AbstractTestElement
Super-class for TestElements that can be applied to main sample, sub-samples or both.
[Assertions use a different class because they use a different value for the getScopeName() constant]
Their corresponding GUI classes need to add the ScopePanel to the GUI using the AbstractXXXGui methods:
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS| Constructor and Description |
|---|
AbstractScopedTestElement() |
| Modifier and Type | Method and Description |
|---|---|
String |
fetchScope()
Get the scope setting
|
protected List<SampleResult> |
getSampleList(SampleResult result)
Generate a list of qualifying sample results,
depending on the scope.
|
protected String |
getScopeName() |
String |
getVariableName() |
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?
|
protected boolean |
isScopeVariable()
Is the assertion to be applied to the all samples?
|
boolean |
isScopeVariable(String scope)
Is the assertion to be applied to the all samples?
|
void |
setScopeAll() |
void |
setScopeChildren() |
void |
setScopeParent() |
void |
setScopeVariable(String variableName) |
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traversePropertyprotected String getScopeName()
public String fetchScope()
public boolean isScopeParent(String scope)
scope - public boolean isScopeChildren(String scope)
scope - public boolean isScopeAll(String scope)
scope - public boolean isScopeVariable(String scope)
scope - protected boolean isScopeVariable()
public String getVariableName()
public void setScopeParent()
public void setScopeChildren()
public void setScopeAll()
public void setScopeVariable(String variableName)
protected List<SampleResult> getSampleList(SampleResult result)
result - current sampleCopyright © 1998-2015 Apache Software Foundation. All Rights Reserved.