Tutorial
Introduction to JavaStar
- The Continuum of GUI Test Tools
- The JavaStar Model
- Using the Test Composer
- Running JSTs and Viewing Results
- Analyzing Applications for Test
- Looking at the Example Application
- What this Tutorial Covers
- Using the Tutorial Directories and Files
Getting Started with JavaStar
- Setting up JavaStar
- Making a Copy of the Test Database
- Launching JavaStar
- Main Menu
- Creating a Project File
- Recording a Script
- Start Creating the Script
- Opening the Test Database
- Recording Text Input
- Checking the Search Operation
- Ending Record Mode
- Running the Test
- Viewing the Results
- Summary
- Exercise: Testing the Names Window
- Instructions
- Solution
Moving to the JavaStar Model
- About the Model
- Deficiencies of the Previous Approach
- Making Tests More Robust
- Writing Tests Using Declaration Files
- Making Tests Modular
- Passing Data as Arguments
- Summary
Generating Declarations
- About this Lesson
- Setting Up for this Lesson
- Debugging Test Run Errors Caused by GUI Changes
- Designing a Suite to Use Generated Declarations
- Generating Declarations
- Modifying Declarations to Use Abstracted Names
- Editing MainWin Declarations
- Editing SearchWin Declarations
- Editing NamesWin Declarations
- Recording New Scripts that Use Declaration Files
- Summary
Using a Modular Approach
- Setting Up for This Lesson
- Improving Your Tests with a Modular Approach
- Looking at the Name Database Example
- Using the Test Composer
- Composing Tests
- Entering a Record
- Verifying Search Results
- The Acceptance Test
- Recording Individual Scripts
- Running Tests
- Viewing Results from a JST
- Summary
- Exercise: Making the Names Test Modular
- Instructions
- Solution
Adding Parameters for Flexibility
- Setting Up for this Lesson
- Deciding Where to Use Parameters in Scripts
- Editing the Scripts
- Editing OpenFile
- Editing EnterFieldData
- Editing DefineSearch
- Editing GetSearchResults
- Editing VerifyRecord
- Deciding Where to Define Parameters in the JST
- Editing JSTs to Use Parameters
- Editing the OpenFile Node
- Editing the AddRecord .jst Node
- Editing EnterFieldData Node
- Editing VerifySearch.jst
- Editing the DefineSearch Node
- Editing the GetSearchResults Node
- Editing the VerifyRecord Node
- Running a Test With Arguments
- Viewing the Results
- Other Possibilities for Adding Parameters
- Using Property Files as a Source for Arguments
- Reading a Single Property
- Reading Multiple Properties
- Summary
- Exercise: Adding Parameters to the VerifyNames tests
- Instructions
- Solution
JavaStar from the Command Line
- About this Lesson
- Setting Up for this Lesson
- Using Command Line Flags
- Running the Acceptance Test
- Filtering the Acceptance Test Log
- Summary
Using the JavaStar API
- About the JavaStar API
- Anatomy of a Test Script
- An Example Application
- Verifying Menu Components
- Using the API to Obtain a Component
- Using an Internal Verification
- Opening Files
- Examining the Recorded Open
- Building VerifyTestFile
- Edit openAction
- Build the JST
- Run the Test
- Summary
Using Non-Component Locators
- About this Lesson
- Using an Existing Locator
- How a Locator Works
- Recording a Script with an NCL
- Running a Test with an NCL
- Summary
Testing JFC Components
- Setting Up to Test the JFC
- Testing a Simple JFC Component
- Testing Menus and Toolbars
- Check a Menu Bar Label
- Check a Menu Item's Mnemonic
- Check a Toolbar
- Testing a Complex Component
- Summary
Writing Non-Component Locators
- Understanding the Need for an NCL
- Using JSNCLData
- Using the JSNonComponentLocator
- Anatomy of a JSNonComponentLocator
- Finding the JSNCLData while Recording
- Retrieving a Named Non-Component
- Exercise
- Setting up the Exercise
- Write the NCL
- Test the NCL
- Solution
- Summary
Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.