Class Template

  • All Implemented Interfaces:
    com.consol.citrus.common.Described, com.consol.citrus.common.Named, com.consol.citrus.TestAction, com.consol.citrus.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 affect on the variables used in the test case.
    Since:
    2007
    Author:
    Christoph Deppisch
    • Method Detail

      • doExecute

        public void doExecute​(com.consol.citrus.context.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<com.consol.citrus.TestAction> getActions()
        Gets the actions.
        Returns:
        the actions