|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.testelement.AbstractScopedTestElement
public abstract class AbstractScopedTestElement
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:
Field Summary |
---|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
AbstractScopedTestElement()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractScopedTestElement()
Method Detail |
---|
protected String getScopeName()
public String fetchScope()
public boolean isScopeParent(String scope)
scope
- name of the scope to be checked
true
if the assertion is to be applied to the parent
sample.public boolean isScopeChildren(String scope)
scope
- name of the scope to be checked
true
if the assertion is to be applied to the
children.public boolean isScopeAll(String scope)
scope
- name of the scope to be checked
true
if the assertion is to be applied to the all
samples.public boolean isScopeVariable(String scope)
scope
- name of the scope to be checked
true
if the assertion is to be applied to the all
samples.protected boolean isScopeVariable()
true
if the assertion is to be applied to the all samples.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 sample
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |