Class ScriptingTestElement

java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.util.ScriptingTestElement
All Implemented Interfaces:
Serializable, Cloneable, Searchable, org.apache.jmeter.testelement.TestElement
Direct Known Subclasses:
BSFTestElement, JSR223TestElement

public abstract class ScriptingTestElement extends AbstractTestElement
Common parent class for the BSFTestElement and JSR223TestElement scripting test elements. These also share the ScriptingBeanInfoSupport class for configuration.
See Also:
  • Field Details

  • Constructor Details

    • ScriptingTestElement

      protected ScriptingTestElement()
  • Method Details

    • getScript

      public String getScript()
      Return the script (TestBean version). Must be overridden for subclasses that don't implement TestBean otherwise the clone() method won't work.
      Returns:
      the script to execute
    • setScript

      public void setScript(String s)
      Set the script (TestBean version). Must be overridden for subclasses that don't implement TestBean otherwise the clone() method won't work.
      Parameters:
      s - the script to execute (may be blank)
    • getParameters

      public String getParameters()
    • setParameters

      public void setParameters(String s)
    • getFilename

      public String getFilename()
    • setFilename

      public void setFilename(String s)
    • isStopCondition

      protected boolean isStopCondition(Throwable rootCause)
      Parameters:
      rootCause - Throwable
      Returns:
      true if Throwable is an Exception that impacts test state