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, WAITINGTRACE_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, 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, getTerminateOnIdle, getVariable, getVariables, hasVariable, inject, injectUI, isFinished, isIdle, join, removeExecutionListener, removeSecurityCheck, removeVariable, schedule, setCloseStreamsOnTerminate, setEngineDescription, setErrorStream, setInputStream, setOutputStream, setTerminateOnIdle, setVariablegetAdapterpublic static final String ENGINE_ID
public static final String TEST_FILE_VARIABLE
public static final String TEST_SUITE_VARIABLE
public void terminateCurrent()
IScriptEngineterminateCurrent in interface IScriptEnginepublic String getSaveVariableName(String name)
IScriptEnginegetSaveVariableName in interface IScriptEnginename - variable name candidatepublic void registerJar(URL url)
IScriptEngineregisterJar in interface IScriptEngineurl - url to load jar file frompublic 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, Object resource)
testSuite - testsuite to be executed from or nullresource - resource to execute or nullnull