User's Guide


About JavaStar

Benefits of Using Java to Test Java
Recording Scripts
Composing Tests from Scripts
Composing Tests in JavaStar
An example of a composed test
Playing Back Scripts and Tests
Providing Access to Java's Full Power
Additional Features

Preparing to Use JavaStar

Installing JavaStar
On a UNIX System
Under Windows 95 or Windows NT
Starting JavaStar
On a UNIX System
Under Windows 95 or Windows NT
JavaStar Main Menu
Creating a Project File
Starting Your Application or Applet

Creating Project Files

Understanding the Project Settings Window
Defining Project Information
Providing Application or Applet Information
Setting Test Options
Selecting Record Options
Recording Format Options
Specifying Java Options
Defining Locators, Declaration Classes, and Text Map Classes
Advanced Test Options
Saving, Applying, and Loading Project Files

Recording Scripts

Starting Record Mode
General Recording Tips
Comparing Values and Images within a Script
Choosing Between Verify and Synchronize
How JavaStar Compares Component Attributes
Selecting Components
Selecting Data Members and Methods
Gold Files and Directories
Inserting Timers
Editing Your Script While Recording
Entering Edit Mode
Inserting a Reference into a Script
Changing Options While Recording
Pausing, Stopping, and Quitting

Interacting and Inspecting

Interacting without Recording
Inspecting Components

Generating and Using Declarations

Generating Component Declarations
Editing Declarations Files to Use Abstract Names
Using Declarations Files in Record Mode
Modifying Existing Scripts to Use Abstracted Names

Composing Tests

Opening the Test Composer
Setting the JST Path
Loading an Existing JST File
Saving Tests
Starting a New JST
Composing a JST
Creating a Node
Running the Test
Duplicating a Node
Deleting a Node
Setting a Node to Restart
Choosing a Root Node
Starting Normal and Exception Conditions
Deleting a Connection
Moving Nodes
Adding Comments
Editing a Node to Accept Arguments
Editing Existing Parameters for a Node
Navigating Through Nested JSTs
Closing the Test Composer

Editing Tests

Loading a Script to Edit
Browsing Class Components
Browsing Gold Files
Going to a Specific Line Number
Finding and Replacing Text
Undoing Edits
Saving and Compiling
Saving without Compiling
Running the Script
Closing the Script Editor

Running Tests

Playing Back a Test Using Run Test
Playing Back a Script from the Record/Playback Window
Playback Tasks Available in the Record/Playback Window
Single-stepping through a Script or Test
Setting Options During Playback
Inspecting Components During Playback
Pausing, Stopping, and Quitting Playback

Monitoring Test Status

Viewing Details on a Process
Killing a Job in the Status Monitor

Viewing and Analyzing Results

Anatomy of the Results Viewer
Task Buttons
View Options
Test Results
Summary
Details
Viewing Results
Viewing Comparison Failures and Updating Gold Files
Extracting Results
Archiving Results
Printing Results
Quitting the Show Results Window

Customizing Options

GUI Options
System Info

Using Command Line Options

Running Tests
Environment and Playback Controls
Exit Codes
Managing Log Files

Using JavaStar with HotJava

Installing the HotJava Browser
Setting Up a Project for HotJava
HotJava Application
HotJava Java Environment
Recording a Test

Using JavaStar with Java Plug-in

Issues to Consider When Testing with the Java Plug-in
Installing Applications to Use the Java Plug-in
Converting Your HTML to Use the Java Plug-in
Testing with the Java Plug-in

Locators for Non-Components

Recording Tests with Non-Components
Locators as Non-Component Support Modules
Implementing a Locator
Referencing Locators in JavaStar
Typing the Locator into the Field
Using the Locator List
Using the API with Non-Components

Text Map Classes

What Text Maps Are
How to Write a Text Map Class

Troubleshooting

Appendix: JavaStar Command Reference

JavaStar directories
JavaStar Command Line Arguments


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