WinRunner 7.0 Tutorial

WinRunner 7.0 Tutorial

WinRunner 7.0 Tutorial Online Guide

Table of Contents

Table of Contents 2

Table of Contents 3

Table of Contents 4

How to Use This Tutorial

List of Lessons

List of Lessons 2

Typographical Conventions

Lesson 1 - Introducing WinRunner

The Benefits of Automated Testing

The Benefits of Automated Testing 2

Understanding the Testing Process

Understanding the Testing Process 2

Exploring the WinRunner Window

How to Start WinRunner

WinRunner Screen Layouts

WinRunner Windows Icons

WinRunner Toolbars

WinRunner Toolbars 2

Lesson 2 - Setting Up the GUI Map

How Does WinRunner Identify GUI Objects

Spying on GUI Objects

Spying on GUI Objects 2

Spying on GUI Objects 3

Spying on GUI Objects 4

Choosing a GUI Map Mode

Setting Your Preferred GUI Map File Mode

Using the RapidTest Script Wizard

Log in to the Flight Reservation application

Starting the RapidTest Script wizard

Set the learning flow to Express

Finishing the RapidTest Script wizard 2

Lession 3 - Recording Tests

Choosing a Record Mode

Record Mode - Analog

Record Mode - Sensitive

Recording a Context Sensitive Test

Recording a Test with Flight Reservation application

Start recording in Context Sensitive mode

Recording Tests - Conclusion

Understanding the Test Script

What Script Statements Are Recorded

Recording in Analog Mode

Going through the Flight Reservation while recording

Stop Recording and Saving Test

Working in the Global GUI Map File mode

Running the Recorded Test

Using Verify Mode While Running a Test

Reviewing the test results

Analyzing Test Results

WinRunner Test Results window layout

Closing Test results window

Recording Tips

Recording Tips 2

Lesson 4 - Synchronizing Tests

When Should You Synchronize

When Should You Synchronize 2

Recording a test in Context Sensitive mode

Recording a test in Context Sensitive mode 2

Stop Recording and Saving the test

Changing the Synchronization Setting

Changing Settings for Timeout for Checkpoints

Identifying a Synchronization Problem

Clicking Pause in the WinRunner message window

How to Synchronize the Test

How to Synchronize the Test 2

How to set wait time for the images to show up

Running the Synchronized Test

Change the timeout value back to 10000 milliseconds

Lesson 5 - Checking GUI Objects

How Do You Check GUI Objects

Creating a GUI checkpoint for a single object

win_check_gui statements

Adding GUI Checkpoints to a Test Script

Adding GUI Checkpoints to a Test Script 2

Adding GUI Checkpoints to a Test Script 3

Adding GUI Checkpoints to a Test Script 4

Adding GUI Checkpoints to a Test Script 5

obj_check_gui statements

Running the Test with GUI checkpoints

GUI checkpoint result window layout

GUI checkpoint result window layout 2

Updating Tests for a New Version of the application

GUI checkpoint result mismatch

GUI checkpoint result mismatch 2

GUI Checkpoint Tips

GUI Checkpoint Tips 2

Lesson 6 - Checking Bitmaps

How Do You Check a Bitmap

Adding Bitmap Checkpoints to a Test Script

Insert a bitmap checkpoint that checks your signature

Insert another bitmap checkpoint

win_check_bitmap statements

Viewing Expected Results of bitmap checkpoints

Closing bitmap checkpoints Test Results window

Bitmap checkpoints test on a New Version of application

Bitmap checkpoints test results mismatch

Bitmap checkpoints test results mismatch 2

Bitmap Checkpoint Tips

Bitmap Checkpoint Tips

Bitmap Checkpoint Tips

Lesson 7 - Programming Tests with TSL

How Do You Program Tests with TSL

How Do You Program Tests with TSL 2

Recording a Basic Test Script

Stop recording the basic test script

Using the Function Generator to Insert Functions

Using edit_get_text statements

Saving the basic test script

Adding Logic to the Test Script

Adding comments into the test script

Understanding tl_step statements

Debugging the Test Script

Using the Step button to run the entire test line by line

Debugging tests on a new version of the application

Reviewing results from a debugging session

Reviewing results from a debugging session 2

Lesson 8 - Creating Data-Driven Tests

How Do You Create Data-Driven Tests

How Do You Create Data-Driven Tests 2

Converting Your Test to a Data-Driven Test

Create a data table for the test

Select global parameterization options

Parameterization of testing values

Replace the selected value with data

Using ddt_open statements to open the tables

Adding Data to the Data Table

Saving and closing the table

Adjusting the Script with Regular Expressions

Modify the window label with a regular expression

Modify the window label with a regular expression 2

Customizing the Results Information

Running the Test and Analyzing Results

Reviewing the results from data driven tests

Reviewing the results from data driven tests 2

Data-Driven Testing Tips

Data-Driven Testing Tips 2

Lesson 9 - Reading Text

How Do You Read Text from an Application

How Do You Read Text from an Application 2

Reading Text from an Application

Reading the total number from the picture

Using obj_get_text statements

Using obj_get_text statements 2

Synchronizing the test with waiting periods

Saving the test on reading text

Reviewing win_get_text and obj_get_text statements

Teaching Fonts to WinRunner

Describe the properties of the font

Creating a Font Group

Activating a Font Group

Verifying Text

Debugging the Test Script that read text

Reviewing the results of the read text test

Updating tests for newer version of the application

Review the test results of text checkpoint

Text Checkpoint Tips

Lesson 10 - Creating Batch Tests

What is a Batch Test

Programming a Batch Test

Define a loop that calls each test 3 times

Running the Batch Test

Analyzing the Batch Test Results

View the results of the batch test

View the results of the called tests

View the results of the called tests 2

Batch Test Tips

Lesson 11 - Maintaining Your Test Scripts

What Happens When the User Interface Changes

What Happens When the User Interface Changes 2

Editing Object Descriptions in the GUI Map

Opening the GUI Map Editor

Using the GUI map editor

Finding an GUI object in the object tree

Viewing physical description of a GUI object

Modifying physical description of a GUI object

Closing the GUI Map Editor

Adding GUI Objects to the GUI Map

Learning all the objects in the Login window

Updating the GUI Map with the Run Wizard

Updating the GUI Map with the Run Wizard 2

Updating the GUI Map with the Run Wizard 3

How the Run wizard works

Follow the Run wizard instructions

Lesson 12 - Where Do You Go from Here

Getting started in Global GUI Map File mode

Run the RapidTest Script Wizard on your application

Getting started in GUI Map File per Test mode

Getting Additional Information

Online Resources

Online Resources 2

Trademark information

WinRunner 7.0 Tutorial


Software QA Resource Center
Software Developer Resource Center
Database Administrator Resource Center
BioTechnology Resource Center


Copyright © 2007 FYICenter.com