public class ScriptEvent extends EventObject
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Field and Description |
---|---|
static int |
SCRIPT_BLOCK_EXECUTION_FINISHED
Notify listeners that execution of a block (a structure or a Run call) finished.
|
static int |
SCRIPT_CLIENT_CREATED
Notify listeners that a new remote desktop client was created.
|
static int |
SCRIPT_CMD_COMPARISON_END |
static int |
SCRIPT_CMD_COMPARISON_FAILED_FOR_IO_ERROR
Fired when an executing script experiences a failed image comparison
(one or more template images are missing or can not be read).
|
static int |
SCRIPT_CMD_COMPARISON_FAILED_FOR_MISMATCH
Fired when an executing script experiences a failed image comparison
(the screen does not match).
|
static int |
SCRIPT_CMD_COMPARISON_START |
static int |
SCRIPT_CMD_MOUSE_END |
static int |
SCRIPT_CMD_MOUSE_START |
static int |
SCRIPT_COMPILATION_FINISHED
Fired when script compilation finishes.
|
static int |
SCRIPT_COMPILATION_STARTED
Notify listeners that the compile process was started.
|
static int |
SCRIPT_ERRORS_AVAILABLE
Fired when script compilation finishes and list of errors is available.
|
static int |
SCRIPT_EXECUTED_LINE_CHANGED
Fired when execution jumps to another line of code.
|
static int |
SCRIPT_EXECUTING_INCLUDE
Notify listeners that either Include or Run command is to be executed.
|
static int |
SCRIPT_EXECUTION_FINISHED
Fired when the execution finishes.
|
static int |
SCRIPT_EXECUTION_PAUSED
Notify listeners that execution was paused either by the Pause command or
manually by the user.
|
static int |
SCRIPT_EXECUTION_RESUMED
Notify listeners that previously paused execution has resumed.
|
static int |
SCRIPT_EXECUTION_SIGNOFF
Fired when execution finishes after the
SCRIPT_EXECUTION_FINISHED event. |
static int |
SCRIPT_EXECUTION_STARTED
Fired when script execution is starting.
|
static int |
SCRIPT_EXECUTION_STOPPED
Fired when execution gets stopped manually.
|
static int |
SCRIPT_GOING_TO_RUN_LINE
This event type indicates that the script handler is going to run a
line of code.
|
static int |
SCRIPT_INCLUDE_FAILED
Notify listeners that an Include or Run command failed to open the specified file.
|
static int |
SCRIPT_INTERPRET_DESTROYED
Notify listeners that the script was destroyed and should not be used any more..
|
static int |
SCRIPT_INTERPRET_INITIALIZED
Notify listeners that the script was initialized (associated with a file/URI).
|
static int |
SCRIPT_MESSAGE_AVAILABLE
Fired when a displayable message is available.
|
static int |
SCRIPT_NESTED_INTERPRET_CREATED
Notify listeners that a nested interpret was created.
|
static int |
SCRIPT_PAUSE_FLAG_CHANGED
Notify listeners that the pause flag has changed.
|
static int |
SCRIPT_PROCEDURE_FINISHED
Fired when execution of a procedure finishes.
|
static int |
SCRIPT_PROCEDURE_STARTED
Fired when execution of a procedure is starting.
|
static int |
SCRIPT_REPORT_FIRST_CREATED
Notify listeners that a new report has been created for the first time
(refresh operations should not fire this any more).
|
static int |
SCRIPT_VARIABLES_UPDATED
Fired when variables stored in the context have changed.
|
Constructor and Description |
---|
ScriptEvent(Object source,
TestScriptInterpret interpret,
ScriptingContext context,
int type) |
ScriptEvent(Object source,
TestScriptInterpret interpret,
ScriptingContext context,
String message) |
ScriptEvent(TestScriptInterpret interpret,
ScriptingContext context,
int type) |
ScriptEvent(TestScriptInterpret interpret,
ScriptingContext context,
String message) |
Modifier and Type | Method and Description |
---|---|
ScriptingContext |
getContext() |
Object |
getCustomObject() |
TestScriptInterpret |
getInterpret()
Get test script interpret associated with this event
|
String |
getMessage() |
ScriptManager |
getScriptManager()
Get script manager associated with this event
|
Object |
getSource() |
int |
getType() |
TestWrapper |
getWrapper() |
void |
setCustomObject(Object customObject) |
toString
public static final int SCRIPT_COMPILATION_FINISHED
public static final int SCRIPT_EXECUTION_STARTED
public static final int SCRIPT_PROCEDURE_STARTED
public static final int SCRIPT_PROCEDURE_FINISHED
public static final int SCRIPT_EXECUTED_LINE_CHANGED
public static final int SCRIPT_MESSAGE_AVAILABLE
public static final int SCRIPT_VARIABLES_UPDATED
public static final int SCRIPT_ERRORS_AVAILABLE
public static final int SCRIPT_EXECUTION_STOPPED
public static final int SCRIPT_EXECUTION_FINISHED
public static final int SCRIPT_EXECUTING_INCLUDE
public static final int SCRIPT_INCLUDE_FAILED
public static final int SCRIPT_EXECUTION_PAUSED
public static final int SCRIPT_EXECUTION_RESUMED
public static final int SCRIPT_PAUSE_FLAG_CHANGED
public static final int SCRIPT_GOING_TO_RUN_LINE
public static final int SCRIPT_CLIENT_CREATED
public static final int SCRIPT_COMPILATION_STARTED
public static final int SCRIPT_NESTED_INTERPRET_CREATED
public static final int SCRIPT_REPORT_FIRST_CREATED
public static final int SCRIPT_CMD_MOUSE_START
public static final int SCRIPT_CMD_MOUSE_END
public static final int SCRIPT_CMD_COMPARISON_START
public static final int SCRIPT_CMD_COMPARISON_END
public static final int SCRIPT_EXECUTION_SIGNOFF
SCRIPT_EXECUTION_FINISHED
event.
It is typically used by objects that need to perform something after the
script execution sign off.public static final int SCRIPT_BLOCK_EXECUTION_FINISHED
public static final int SCRIPT_INTERPRET_DESTROYED
public static final int SCRIPT_CMD_COMPARISON_FAILED_FOR_MISMATCH
public static final int SCRIPT_CMD_COMPARISON_FAILED_FOR_IO_ERROR
public static final int SCRIPT_INTERPRET_INITIALIZED
public ScriptEvent(Object source, TestScriptInterpret interpret, ScriptingContext context, int type)
public ScriptEvent(Object source, TestScriptInterpret interpret, ScriptingContext context, String message)
public ScriptEvent(TestScriptInterpret interpret, ScriptingContext context, int type)
public ScriptEvent(TestScriptInterpret interpret, ScriptingContext context, String message)
public int getType()
public ScriptingContext getContext()
public TestWrapper getWrapper()
public String getMessage()
public Object getCustomObject()
public void setCustomObject(Object customObject)
customObject
- the customObject to setpublic TestScriptInterpret getInterpret()
public ScriptManager getScriptManager()
public Object getSource()
getSource
in class EventObject