The WinRunner Main Window
Playback (Run Modes)
Debug - when you are running the test to check for errors in the script (debug)
Verify - when you want to run the test to test the application and verify the results (res1)
Update - when you want to overwrite the expected results with new values (exp)
How Does WR Keep Track of the AUTs Windows and Objects?
The GUI Map file contains:
- the windows of the AUT
- the objects within each window
- the physical attributes that create each objects unique identification
The GUI Map
Characteristics:
- Allows the separation of physical attributes from test scripts
- Enables WinRunner to uniquely identify objects in the AUT using physical attributes
- Allows WinRunner to refer to objects in the script using an intuitive logical name
- Provides the connection between logical names and physical attributes
Separating physical attributes from
test scripts results in better:
Maintainability
- If a button label changes in application, update button description once in GUI map instead of in 500 tests
Readability
- button_press(Insert) instead ofbutton_press({class: ThunderSSCommand});
Portability
- Use the same script for all platforms, with different GUI map for each platform
Assignment 1:
- Start the Flight Reservation application (Flight 1A) and Log in
- Start WinRunner
- Use GUI Spy to examine the properties of different objects
- Start the RapidTest Script wizard
- Point to the application you want to test
- Make sure that all the check boxes are cleared
- Accept the default navigation controls
- Set the learning flow to Express.
- Accept No in the Start Application screen
- Save the GUI information and a startup script
- Click OK in the Congratulations screen
Assignment 2
- Choose Settings > General Options
- Click the Environment tab and select Global GUI Map File
- Start recording in Context Sensitive mode
- Open order #3
- Open the Fax Order form and fill in a fax number
- Switch back to Analog mode (Press F2)
- Select the Send Signature with Order check box
- Sign the fax in Context Sensitive mode
- Switch back to Context Sensitive mode (Press F2) and send the fax
- Stop Recording
- Save the test
- Choose Run from Top
- Choose the Verify mode
- Choose a Test Run name
- Run the test
- Review the test results

| < Prev | Next > |
|---|