public class TestSuiteScriptEngine extends AbstractScriptEngine implements IDebugEngine
ITestEntity
elements.Modifier and Type | Field and Description |
---|---|
static String |
ENGINE_ID |
static String |
TEST_FILE_VARIABLE
Name of variable to be injected into executing test engines.
|
static String |
TEST_SUITE_VARIABLE |
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
TRACE_SCRIPT_ENGINE
Constructor and Description |
---|
TestSuiteScriptEngine() |
Modifier and Type | Method and Description |
---|---|
IScriptEngine |
createScriptEngine(ITestSuite testSuite,
Object resource)
Create a script engine for a given testsuite and resource.
|
ScriptStackTrace |
getExceptionStackTrace()
Get the stack trace of the last thrown exception.
|
String |
getSaveVariableName(String name)
Return a save name to be used for a variable.
|
ITestContainer |
getTestRoot()
Get the root container for all executed test entities.
|
void |
registerJar(URL url)
Register a jar file and add it to the classpath.
|
void |
setupDebugger(ILaunch launch,
boolean suspendOnStartup,
boolean suspendOnScriptLoad,
boolean showDynamicCode) |
void |
terminate()
Terminate this interpreter.
|
void |
terminateCurrent()
Stops the currently executed piece of code.
|
addExecutionListener, addSecurityCheck, executeAsync, executeSync, extractArguments, getCurrentScriptEngine, getDescription, getErrorStream, getExecutedFile, getInputStream, getOutputStream, getStackTrace, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariable
addJobChangeListener, belongsTo, cancel, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule
getAdapter
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStackTrace
addExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, schedule, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariable
getAdapter
public static final String ENGINE_ID
public static final String TEST_FILE_VARIABLE
public static final String TEST_SUITE_VARIABLE
public void terminateCurrent()
IScriptEngine
terminateCurrent
in interface IScriptEngine
public String getSaveVariableName(String name)
IScriptEngine
getSaveVariableName
in interface IScriptEngine
name
- variable name candidatepublic void registerJar(URL url)
IScriptEngine
registerJar
in interface IScriptEngine
url
- url to load jar file frompublic void setupDebugger(ILaunch launch, boolean suspendOnStartup, boolean suspendOnScriptLoad, boolean showDynamicCode)
setupDebugger
in interface IDebugEngine
public ITestContainer getTestRoot()
public ScriptStackTrace getExceptionStackTrace()
IDebugEngine
getExceptionStackTrace
in interface IDebugEngine
null
public void terminate()
IScriptEngine
terminate
in interface IScriptEngine
terminate
in class AbstractScriptEngine
public IScriptEngine createScriptEngine(ITestSuite testSuite, Object resource)
testSuite
- testsuite to be executed from or null
resource
- resource to execute or null
null