public abstract class JSR223TestElement extends AbstractTestElement implements Serializable, Cloneable
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS
Constructor and Description |
---|
JSR223TestElement() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getFilename() |
static ScriptEngineManager |
getInstance() |
String |
getParameters() |
String |
getScript()
Return the script (TestBean version).
|
protected ScriptEngine |
getScriptEngine() |
String |
getScriptLanguage() |
protected void |
populateBindings(Bindings bindings)
Populate variables to be passed to scripts
|
protected Object |
processFileOrScript(ScriptEngine scriptEngine,
Bindings bindings)
This method will run inline script or file script with special behaviour for file script:
- If ScriptEngine implements Compilable script will be compiled and cached
- If not if will be run
|
protected Object |
readResolve() |
void |
setFilename(String s) |
void |
setParameters(String s) |
void |
setScript(String s)
Set the script (TestBean version).
|
void |
setScriptLanguage(String s) |
addPropertiesValues, addProperty, addProperty, addTestElement, canRemove, clear, clearTemporary, clearTestElementChildren, 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, setName, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty
public static ScriptEngineManager getInstance()
protected Object readResolve()
public Object clone()
clone
in interface TestElement
clone
in class AbstractTestElement
protected ScriptEngine getScriptEngine() throws ScriptException
ScriptException
protected void populateBindings(Bindings bindings)
bindings
- Bindingsprotected Object processFileOrScript(ScriptEngine scriptEngine, Bindings bindings) throws IOException, ScriptException
scriptEngine
- ScriptEnginebindings
- Bindings
might be nullIOException
ScriptException
public String getScript()
public void setScript(String s)
s
- the script to execute (may be blank)public String getParameters()
public void setParameters(String s)
public String getFilename()
public void setFilename(String s)
public String getScriptLanguage()
public void setScriptLanguage(String s)
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.