Class Template

All Implemented Interfaces:
Described, Named, TestAction, TestActorAware

public class Template extends AbstractTestAction
This class represents a previously defined block of test actions. Test cases can call templates and reuse their functionality. Templates operate on test variables. While calling, the template caller can set these variables as parameters. Nested test actions are executed in sequence. The template execution may affect existing variable values in the calling test case. So variables may have different values in the test case after template execution. Therefore, users can create a local test context by setting globalContext to false. Templates then will have no effect on the variables used in the test case.
Since:
2007
  • Constructor Details

  • Method Details

    • doExecute

      public void doExecute(TestContext context)
      Description copied from class: AbstractTestAction
      Subclasses may add custom execution logic here.
      Specified by:
      doExecute in class AbstractTestAction
    • getParameter

      public Map<String,String> getParameter()
      Gets the parameter.
      Returns:
      the parameter
    • isGlobalContext

      public boolean isGlobalContext()
      Gets the globalContext.
      Returns:
      the globalContext
    • getActions

      public List<TestAction> getActions()
      Gets the actions.
      Returns:
      the actions
    • getActionBuilders

      public List<TestActionBuilder<?>> getActionBuilders()
      Gets the list of action builders.
      Returns:
      the action builders.
    • getTemplateName

      public String getTemplateName()