When you playback tests with the Record/Playback window open, you have several control options available. Run Test launches the Record/Playback window, so you don't need to playback your tests through the Create Script option to get these features.
Tasks available:
The Single Step feature allows you to step through your test script line by line. Each time you click Single Step, playback advances to the start of the next call to a static method of the class JS
. Usually, this means that each click of the Single Step button executes another event (although the next call could be of another static method type).
Single stepping can be helpful when you want to debug a script or see exactly what is happening with the test program just before a failure.
Note - If you single step to a point in your test where you invoke a modal dialog window, you will not be able to single step past this point. Use CTRL-ALT-F8, Ctrl-Shift-F8, or Ctrl-Meta-F8 to force the application to continue past the modeal window. To complete script playback, use CTRL-ALT-F9, Ctrl-Shift-F9, or Ctrl-Meta-F9. Some Sun platforms do not provide an ALT key, so if that doesn't work, try one of the other combinations. Note that the modal dialog doesn't present a problem when you playback a script without single-stepping.
The Record/Playback window provides a shortcut to changing the playback options during a test execution. This is useful if you've started playback and realize that the script is using the wrong delay factor or time-out value.
Playback options in the Record/Playback window
For a detailed explanation of each playback option, see the Setting Test Options section of the chapter "Creating Project Files."
While playback is paused, you can inspect the return values for the methods and data members of any component of your test program. To do this, click the Inspect button to open the inspection panel to the right. This is the same inspection panel you can access while interacting with your application from Record/Playback. For a detailed explanation of how to use this dialog, refer to the chapter "Interacting and Inspecting."
The Record/Playback window provides options for pausing, stopping, and quitting playback.
Pause suspends playback.
Stop ends test playback and requires you to reload the test script to run it again.
Quit terminates any script playback or record, closes the Record/Playback window, and exits the test program.
Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.