Package org.apache.jmeter.control
Class ModuleController
java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.control.GenericController
org.apache.jmeter.control.ModuleController
- All Implemented Interfaces:
Serializable
,Cloneable
,Controller
,ReplaceableController
,Searchable
,org.apache.jmeter.testelement.TestElement
,TestCompilerHelper
The goal of ModuleController is to add modularity to JMeter. The general idea
is that web applications consist of small units of functionality (i.e. Logon,
Create Account, Logoff...) which consist of requests that implement the
functionality. These small units of functionality can be stored in
SimpleControllers as modules that can be linked together quickly to form
tests. ModuleController facilitates this by acting as a pointer to any
controller that sits under the WorkBench. The controller and it's subelements
will be substituted in place of the ModuleController at runtime. Config
elements can be attached to the ModuleController to alter the functionality
(which user logs in, which account is created, etc.) of the module.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jmeter.testelement.TestElement
org.apache.jmeter.testelement.TestElement.Companion
-
Field Summary
Fields inherited from class org.apache.jmeter.control.GenericController
current, subControllersAndSamplers
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, Companion, ENABLED, GUI_CLASS, NAME, TEST_CLASS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
List<?>
Used to replace the test execution tree (usually by adding the subelements of the TestElement that is replacing the ReplaceableController.Gets theJMeterTreeNode
for the Controllervoid
resolveReplacementSubTree
(JMeterTreeNode context) Compute the replacement tree.void
Sets theJMeterTreeNode
which represents the controller which this object is pointing to.Methods inherited from class org.apache.jmeter.control.GenericController
addIterationListener, addTestElement, addTestElementOnce, currentReturnedNull, fireIterationStart, fireIterEvents, getCurrentElement, getIterCount, getProps, getSchema, getSubControllers, incrementCurrent, incrementIterCount, initialize, initializeSubControllers, isDone, isFirst, next, nextIsAController, nextIsASampler, nextIsNull, readResolve, reInitialize, removeCurrentElement, removeIterationListener, resetCurrent, resetIterCount, setCurrentElement, setDone, setFirst, triggerEndOfLoop
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, canRemove, clear, clearTemporary, clearTestElementChildren, 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, traverseProperty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jmeter.testelement.TestElement
canRemove, clear, clearTestElementChildren, get, get, get, get, get, get, get, get, get, getComment, getName, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getPropertyOrNull, getPropertyOrNull, getString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removed, removeProperty, removeProperty, set, set, set, set, set, set, set, set, set, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Constructor Details
-
ModuleController
public ModuleController()No-arg constructor- See Also:
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceorg.apache.jmeter.testelement.TestElement
- Overrides:
clone
in classAbstractTestElement
-
setSelectedNode
Sets theJMeterTreeNode
which represents the controller which this object is pointing to. Used for building the test case upon execution.- Parameters:
tn
- JMeterTreeNode- See Also:
-
getSelectedNode
Gets theJMeterTreeNode
for the Controller- Returns:
- JMeterTreeNode
-
getNodePath
-
resolveReplacementSubTree
Compute the replacement tree.- Specified by:
resolveReplacementSubTree
in interfaceReplaceableController
- Parameters:
context
- the starting point of the replacement
-
getReplacementSubTree
Used to replace the test execution tree (usually by adding the subelements of the TestElement that is replacing the ReplaceableController.- Specified by:
getReplacementSubTree
in interfaceReplaceableController
- Returns:
- The replaced sub tree
- See Also:
-