Apache JMeter

org.apache.jmeter.util
Class ScriptingTestElement

java.lang.Object
  extended by org.apache.jmeter.testelement.AbstractTestElement
      extended by org.apache.jmeter.util.ScriptingTestElement
All Implemented Interfaces:
Serializable, Cloneable, Searchable, 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:
Serialized Form

Field Summary
protected  String scriptLanguage
           
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
ScriptingTestElement()
           
 
Method Summary
 String getFilename()
           
 String getParameters()
           
 String getScript()
          Return the script (TestBean version).
 void setFilename(String s)
           
 void setParameters(String s)
           
 void setScript(String s)
          Set the script (TestBean version).
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, clone, emptyTemporary, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsInt, getPropertyAsLong, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptLanguage

protected String scriptLanguage
Constructor Detail

ScriptingTestElement

public ScriptingTestElement()
Method Detail

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)

Apache JMeter

Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.