Using the JavaStar API: About the JavaStar API


The JavaStar API contains interface classes, class static functions for playback, exception classes, and error classes. JavaStar uses this API to create scripts. All JavaStar scripts are implemented from the Script class of the API.

When you edit a JavaStar script or write your own from scratch, you can use this API to create powerful, consistent tests that work with JavaStar's log features.

The API class you'll probably use the most is the JS. This class contains a collection of static functions for use in playback. These functions allow you to perform a number of necessary functions, including:

Two other important classes are:

You use JSComponent to send events to GUI components or to locate related components. You use JSMenuComponent to contain menu components so that you can test the contents.

You implement the Waiting interface when you use the JS.waitFor() method to define the condition you want to reach before continuing, similar to a custom synchronization.

Along with these classes, the API provides a number of exception and error classes that you can use to handle problems. For information on these classes, and for more details about those already described, see the JavaStar API Reference.




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