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 ReplaceableControllerThe 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 JMeterTreeNodeselectedNodepublic transient JMeterContextthreadContextpublic transient StringthreadNamepublic final static TestElement.CompanionCompanionpublic final static StringNAMEpublic final static StringGUI_CLASSpublic final static StringENABLEDpublic final static StringTEST_CLASSpublic final static StringCOMMENTS
-
Constructor Summary
Constructors Constructor Description ModuleController()No-arg constructor
-
Method Summary
Modifier and Type Method Description JMeterTreeNodegetSelectedNode()Gets the JMeterTreeNode for the Controller voidsetSelectedNode(JMeterTreeNode tn)Sets the JMeterTreeNode which represents the controller which this object is pointing to. Objectclone()List<out Object>getNodePath()voidresolveReplacementSubTree(JMeterTreeNode context)HashTreegetReplacementSubTree()-
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
- Returns:
JMeterTreeNode
-
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()
-
-
-
-