The JavaStar tutorial is divided into two sections: Part 1, Java Star Basics; and Part 2, Advanced JavaStar.
The first part of the tutorial is for all JavaStar users. Even if you are familiar with other GUI test tools, stepping through the basic tutorial will help you get comfortable with the JavaStar controls, as well as the JavaStar test model.
"Getting Started with JavaStar" guides you through recording your first JavaStar script, playing the test back, and viewing the results. From this, you'll learn what you need to do to run JavaStar, and you'll get comfortable with the recording controls, including verification operations.
"Moving to the JavaStar Model" introduces the JavaStar test model and describes how it improves tests to make them much more versatile and powerful.
"Generating Declarations" shows you how to generate declarations from your application under test, and then reference these declarations in your scripts.By doing this, you can work around many problems that arise when developers change the program interface during your test phase.
"Using a Modular Approach" examines the test created in the previous chapter and analyzes why a modular approach would be effective. This chapter shows you how to compose a JavaStar Test (JST) file from multiple scripts, how to analyze the results from a modular test, and shows you how to navigate through the multi-level results.
"Adding Parameters for Flexibility" takes the scripts you created in the Modular Approach chapter and shows you how to turn the inputs into parameters. You'll learn how to edit the JST file to pass parameters to scripts, increasing re-use potential for your code.
"JavaStar from the Command Line" shows you how to run JavaStar tests from the command line, making it easier for you to build test suites that you launch using a test harness.
This section of the tutorial is designed for those JavaStar users who know how to program in Java. Part 2 shows you how to use advanced JavaStar features and develop highly customized test solutions with the JavaStar API.
"Using the JavaStar API" addresses how to further customize JavaStar scripts with your own code and how to access the power of the JavaStar API. This chapter illustrates the anatomy of JavaStar script so you can determine what to edit and what you need to leave intact.
"Using Non-Component Locators" shows you how to test an application or applet created using a non Java-AWT toolkit. It covers how to use existing locators.
"Testing JFC Components" specifically addresses the use of non-component locators for testing Swing, or JFC, components.
"Writing Non-Component Locators" is a detailed guide on developing non-component locators for use with JavaStar.
Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.