About JavaStar: Recording Scripts


JavaStar's Record function is simple and straightforward. You specify the application or applet you want to test, define the name of the script, and then start using your test program in the way you want to test it. JavaStar records all events (and, if you choose, the exact delays between events) to a script. The script is a .java file that JavaStar compiles into a .class file that you can later run.

Because you're testing a GUI, the state of your program's components, as well as their look on screen, are all important to validation. JavaStar addresses this by providing two comparison-based features: Verify and Synchronize. These gather master comparison data and insert comparison checks into your code during recording, then use this information to evaluate matches during playback.

Verify can compare the contents, attributes, and enabled state of any GUI component. It can also compare the image of the component if Java allows images for that particular item. If, during playback, a verification fails, the JavaStar notes the verification in the log file and continues on with the script.

Synchronize does a similar comparison, but if the results don't match, the test script ends with an exception. This gives you a way to detect inappropriate state changes that threaten the integrity of the rest of the test.




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