Class ModuleController

All Implemented Interfaces:
Serializable, Cloneable, Controller, ReplaceableController, Searchable, org.apache.jmeter.testelement.TestElement, 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.
See Also:
  • Constructor Details

    • ModuleController

      public ModuleController()
      No-arg constructor
      See Also:
  • Method Details

    • clone

      public Object clone()
      Specified by:
      clone in interface org.apache.jmeter.testelement.TestElement
      clone in class AbstractTestElement
    • setSelectedNode

      public 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.
      tn - JMeterTreeNode
      See Also:
    • getSelectedNode

      public JMeterTreeNode getSelectedNode()
      Gets the JMeterTreeNode for the Controller
    • getNodePath

      public List<?> getNodePath()
    • resolveReplacementSubTree

      public void resolveReplacementSubTree(JMeterTreeNode context)
      Compute the replacement tree.
      Specified by:
      resolveReplacementSubTree in interface ReplaceableController
      context - the starting point of the replacement
    • getReplacementSubTree

      public HashTree 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 interface ReplaceableController
      The replaced sub tree
      See Also: