Package org.apache.jmeter.testelement
Class AbstractScopedTestElement
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.testelement.AbstractScopedTestElement
- All Implemented Interfaces:
- Serializable,- Cloneable,- Searchable,- org.apache.jmeter.testelement.TestElement
- Direct Known Subclasses:
- AbstractScopedAssertion,- BoundaryExtractor,- HtmlExtractor,- JMESPathExtractor,- JSONPostProcessor,- RegexExtractor,- XPath2Extractor,- XPathExtractor
 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:
- createScopePanel()
- saveScopeSettings()
- showScopeSettings()
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElementorg.apache.jmeter.testelement.TestElement.Companion
- 
Field SummaryFields inherited from interface org.apache.jmeter.testelement.TestElementCOMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the scope settingorg.apache.jmeter.testelement.schema.PropertiesAccessor<? extends AbstractScopedTestElement,? extends org.apache.jmeter.testelement.AbstractScopedTestElementSchema> getProps()protected List<SampleResult>getSampleList(SampleResult result) Generate a list of qualifying sample results, depending on the scope.org.apache.jmeter.testelement.AbstractScopedTestElementSchemaprotected StringbooleanisScopeAll(String scope) Is the assertion to be applied to the all samples?booleanisScopeChildren(String scope) Is the assertion to be applied to the sub-samples (children)?booleanisScopeParent(String scope) Is the assertion to be applied to the main (parent) sample?protected booleanIs the assertion to be applied to the all samples?booleanisScopeVariable(String scope) Is the assertion to be applied to the all samples?voidvoidvoidvoidsetScopeVariable(String variableName) Methods inherited from class org.apache.jmeter.testelement.AbstractTestElementaddPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, 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, traversePropertyMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jmeter.testelement.TestElementget, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getPropertyOrNull, getString, removed, removeProperty, set, set, set, set, set, set, set, set, set
- 
Constructor Details- 
AbstractScopedTestElementpublic AbstractScopedTestElement()
 
- 
- 
Method Details- 
getSchemapublic org.apache.jmeter.testelement.AbstractScopedTestElementSchema getSchema()
- 
getPropspublic org.apache.jmeter.testelement.schema.PropertiesAccessor<? extends AbstractScopedTestElement,? extends org.apache.jmeter.testelement.AbstractScopedTestElementSchema> getProps()
- 
getScopeName
- 
fetchScopeGet the scope setting- Returns:
- the scope, default parent
 
- 
isScopeParentIs the assertion to be applied to the main (parent) sample?- Parameters:
- scope- name of the scope to be checked
- Returns:
- trueif the assertion is to be applied to the parent sample.
 
- 
isScopeChildrenIs the assertion to be applied to the sub-samples (children)?- Parameters:
- scope- name of the scope to be checked
- Returns:
- trueif the assertion is to be applied to the children.
 
- 
isScopeAllIs the assertion to be applied to the all samples?- Parameters:
- scope- name of the scope to be checked
- Returns:
- trueif the assertion is to be applied to the all samples.
 
- 
isScopeVariableIs the assertion to be applied to the all samples?- Parameters:
- scope- name of the scope to be checked
- Returns:
- trueif the assertion is to be applied to the all samples.
 
- 
isScopeVariableprotected boolean isScopeVariable()Is the assertion to be applied to the all samples?- Returns:
- trueif the assertion is to be applied to the all samples.
 
- 
getVariableName
- 
setScopeParentpublic void setScopeParent()
- 
setScopeChildrenpublic void setScopeChildren()
- 
setScopeAllpublic void setScopeAll()
- 
setScopeVariable
- 
getSampleListGenerate a list of qualifying sample results, depending on the scope.- Parameters:
- result- current sample
- Returns:
- list containing the current sample and/or its child samples
 
 
-