background image
<< Assigning a breakpoint to a line of code | Type-declaration character >>
<< Assigning a breakpoint to a line of code | Type-declaration character >>

Executing in Animation Mode

Debugging GUI Scripts
5-13
¾
If you attempt an unsupported breakpoint assignment during the execution of
a script (for example, while execution is stopped at a breakpoint), the warning
message This is not an executable line of code appears in the status bar.
Executing to a Selected Line
To stop execution at a selected line in a script without setting a breakpoint:
1. If necessary, open a script by clicking File > Open > Script.
2. Place the cursor on the line where you want execution to stop.
3. Click once to insert a blinking text cursor. (You can also highlight the entire line
or any part of the line.)
4. Click Debug > Go Until Cursor.
Robot executes as far as the line with the text cursor, and displays a yellow arrow
in the left margin of that line or highlights the line.
Executing in Animation Mode
To play back a script in animation mode to see each line as it executes:
1. If necessary, open a script by clicking File > Open > Script.
2. Move and resize the Robot window so that it does not cover the
application-under-test but so that you can still see the Script window.
3. Click Debug > Animate.
As Robot plays back the script, it displays a yellow arrow in the left margin of the
currently executing line or highlights the line.
When playing back a script in animation mode, you may want to increase the delay
between commands. This slows down the execution of user action commands and
verification point commands so you can view line-by-line animation more clearly.
(For information, see Setting Delay Options for Commands and Keystrokes on page 9-8.)
Examining Variable Values
You can examine variable and constant values in the Variables window as you play
back scripts during debugging.
The Variables window appears in the lower-right corner of the Robot main window.
If the Variables window is not open, click View >
Variables to open it.