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, WAITINGTRACE_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.
|
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, getOutputStream, getStackTrace, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setExecutionRootFile, setInputStream, setOutputStream, setVariableaddJobChangeListener, 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, yieldRulegetAdapterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStackTraceaddExecutionListener, addSecurityCheck, executeAsync, executeSync, getDescription, getErrorStream, getExecutedFile, getInputStream, getName, getOutputStream, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, join, removeExecutionListener, removeSecurityCheck, schedule, setCloseStreamsOnTerminate, setErrorStream, setInputStream, setOutputStream, setVariablegetAdapterpublic 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()
IScriptEngineterminateCurrent in interface IScriptEnginepublic void registerJar(java.net.URL url)
IScriptEngineregisterJar in interface IScriptEngineurl - url to load jar file frompublic java.lang.Object removeVariable(java.lang.String name)
IDebugEngineremoveVariable in interface IDebugEnginename - variable to be removed.public void setupDebugger(ILaunch launch, boolean suspendOnStartup, boolean suspendOnScriptLoad, boolean showDynamicCode)
setupDebugger in interface IDebugEnginepublic ITestContainer getTestRoot()
public ScriptStackTrace getExceptionStackTrace()
IDebugEnginegetExceptionStackTrace in interface IDebugEnginenullpublic void terminate()
IScriptEngineterminate in interface IScriptEngineterminate in class AbstractScriptEnginepublic IScriptEngine createScriptEngine(ITestSuite testSuite, java.lang.Object resource)
testSuite - testsuite to be executed from or nullresource - resource to execute or nullnullpublic java.util.Collection<EaseDebugVariable> getVariables(java.lang.Object scope)
IDebugEnginegetVariables in interface IDebugEnginescope - scope or parent object