SoftwareQAtestings.com

Free Software Testing Tutorial and Quality Assurance Portal

Error
  • Question does not exist!
Home Featured Articles Testing Tools HP Mercury Winrunner Winrunner Record and Playback

Winrunner Record and Playback

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 AUT’s Windows and Objects?

The GUI Map file contains:

  • the windows of the AUT
  • the objects within each window
  • the physical attributes that create each object’s 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
Strengths:

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 of button_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   

Comments (0)Add Comment

Write comment
You must be logged in to post a comment. Please register if you do not have an account yet.

busy