Using the JavaStar API: Anatomy of a Test Script


Each test script implements the Script class to define the application it needs to run, start-up information, argument details, and the actual test itself. When you create or edit a Script, you must be sure to maintain the Script structure, or your test may not compile or run. A Script is a Java program; it must compile and run in Java. In addition, you must ensure that the methods JavaStar requires are in place.

When you edit a script or create one manually:

In general, you only need to add import statements and edit or add to the play() method. If you generate an empty script through the Record/Playback window, all other required fields and methods will be in place.




Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.