You play back scripts and tests either by running JavaStar from the command line and supplying arguments that define playback, or by navigating to the Record/Playback window from the JavaStar main menu. To get to this window from the main menu, you select either Run Test or Create Script.
The Create Script window is for developing new scripts. Sometimes this involves playing back the script under test, or loading and playing a previously recorded script to bring the application or applet to a necessary state. When you're writing and debugging a test, it makes sense to do this in one place. But, in general, it's not a good place to do formal test runs. The log file contains everything that has happened since the Record/Playback window was launched (recordings, multiple playbacks, declaration generations) and so it's not suitable for analyzing formal test results.
Run Test is a clean, start-to-finish test run that logs results separate from any other process. This feature assumes that you are running a JavaStar test (a .jst
file) or a script that can run, from beginning to end, without any advance setup or manual interaction. You can choose whether you want to see the JavaStar windows and your application while you run, or selectively hide them.
When you run JavaStar from the command line, you are, in essence, doing a Run Test operation, so all of the same requirements and options apply. For details on how to do this, see the chapter "Using Command Line Options."
Note - You may need to include JS.delay()
in your first script, to compensate for the start up time of the application or applet under test. To read more about this method, see wrap(Component) in the "Component and Control Classes" chapter of the JavaStar API Reference.
This section covers:
Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.