public class TestSuiteScriptEngine extends AbstractScriptEngine implements IDebugEngine
ITestEntity
elements.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENGINE_ID |
static java.lang.String |
TEST_FILE_VARIABLE
Name of variable to be injected into executing test engines.
|
static java.lang.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,
java.lang.Object resource)
Create a script engine for a given testsuite and resource.
|
ScriptStackTrace |
getExceptionStackTrace()
Get the stack trace of the last thrown exception of the current thread.
|
ScriptStackTrace |
getExceptionStackTrace(java.lang.Object thread)
Get the stack trace of the last thrown exception of the given thread.
|
ITestContainer |
getTestRoot()
Get the root container for all executed test entities.
|
java.util.Collection<EaseDebugVariable> |
getVariables(java.lang.Object scope)
Get variables within a specific scope or child elements for a given object
|
void |
registerJar(java.net.URL url)
Register a jar file and add it to the classpath.
|
java.lang.Object |
removeVariable(java.lang.String name)
Remove a variable from the scope.
|
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, getLaunch, getMonitor, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setLaunch, setOutputStream, setVariable
addJobChangeListener, belongsTo, cancel, create, create, createSystem, 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, getLaunch, getMonitor, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariable
getAdapter
public static final java.lang.String ENGINE_ID
public static final java.lang.String TEST_FILE_VARIABLE
public static final java.lang.String TEST_SUITE_VARIABLE
public void terminateCurrent()
IScriptEngine
terminateCurrent
in interface IScriptEngine
public void registerJar(java.net.URL url)
IScriptEngine
registerJar
in interface IScriptEngine
url
- url to load jar file frompublic java.lang.Object removeVariable(java.lang.String name)
IDebugEngine
removeVariable
in interface IDebugEngine
name
- variable to be removed.public 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 ScriptStackTrace getExceptionStackTrace(java.lang.Object thread)
IDebugEngine
getExceptionStackTrace
in interface IDebugEngine
thread
- thread to get last exception stacktrace fromnull
public void terminate()
IScriptEngine
terminate
in interface IScriptEngine
terminate
in class AbstractScriptEngine
public IScriptEngine createScriptEngine(ITestSuite testSuite, java.lang.Object resource)
testSuite
- testsuite to be executed from or null
resource
- resource to execute or null
null
public java.util.Collection<EaseDebugVariable> getVariables(java.lang.Object scope)
IDebugEngine
getVariables
in interface IDebugEngine
scope
- scope or parent object