Class ModuleController
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,org.apache.jmeter.control.Controller
,org.apache.jmeter.control.ReplaceableController
,org.apache.jmeter.gui.Searchable
,org.apache.jmeter.testelement.TestElement
,org.apache.jmeter.threads.TestCompilerHelper
public class ModuleController extends GenericController implements ReplaceableController
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.
-
-
Field Summary
Fields Modifier and Type Field Description public transient JMeterTreeNode
selectedNode
public transient JMeterContext
threadContext
public transient String
threadName
public final static TestElement.Companion
Companion
public final static String
NAME
public final static String
GUI_CLASS
public final static String
ENABLED
public final static String
TEST_CLASS
public final static String
COMMENTS
-
Constructor Summary
Constructors Constructor Description ModuleController()
No-arg constructor
-
Method Summary
Modifier and Type Method Description JMeterTreeNode
getSelectedNode()
Gets the JMeterTreeNode for the Controller void
setSelectedNode(JMeterTreeNode tn)
Sets the JMeterTreeNode which represents the controller which this object is pointing to. Object
clone()
List<out Object>
getNodePath()
void
resolveReplacementSubTree(JMeterTreeNode context)
HashTree
getReplacementSubTree()
-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
canRemove, clear, clearTestElementChildren, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Methods inherited from class org.apache.jmeter.control.GenericController
addIterationListener, addTestElement, addTestElementOnce, getProps, getSchema, initialize, isDone, next, removeIterationListener, setFirst, triggerEndOfLoop
-
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSelectedNode
JMeterTreeNode getSelectedNode()
Gets the JMeterTreeNode for the Controller
-
setSelectedNode
void setSelectedNode(JMeterTreeNode tn)
Sets the JMeterTreeNode which represents the controller which this object is pointing to. Used for building the test case upon execution.
- Parameters:
tn
- JMeterTreeNode
-
getNodePath
List<out Object> getNodePath()
-
resolveReplacementSubTree
void resolveReplacementSubTree(JMeterTreeNode context)
-
getReplacementSubTree
HashTree getReplacementSubTree()
-
-
-
-