When you create a data-driven test, you parameterize fixed values in TSL statements. However, GUI and bitmap checkpoints and bitmap synchronization points do not contain fixed values. Instead, thesestatements contain the following:
In order to parameterize GUI and bitmap checkpoints and bitmap synchronization points statements, you insert dummy values into the data table for each expected results reference. First you create separate columns for each checkpoint or bitmap synchronization point. Then you enter dummy values in the columns to represent captured expected results. Each dummy value should have a unique name (for example, gui_exp1, gui_exp2, etc.). When you run the test in Update mode, WinRunner captures expected results during each iteration of the test (i.e. for each row in the data table) and saves all the results in the test’s exp folder.
To create a data-driven checkpoint or bitmap synchronization point:
In the example below, the recorded test opens the Search dialog box in the Notepad application, searches for a text and checks that the appropriate message appears. Note that a GUI checkpoint, a bitmap checkpoint, and a synchronization point are all used in the example.
In the example below, the data-driven test searches for several different strings. WinRunner reads all these strings from the data table.# The GUI checkpoint statement is not yet parameterized.
For example, the data table in the previous step might now look like this:
For example, the sample script will now look like this:# the GUI checkpoint statement is now parameterized.
While the test runs in Update mode, WinRunner reads the names of the expected values from the data table. Since WinRunner cannot find the expected values for GUI checkpoints, bitmaps checkpoints, and bitmap synchronization points in the data table, it recaptures these values from your application and save them as expected results in the exp folder for your test. Expected values for GUI checkpoints are saved as expected results. Expected values for bitmap checkpoints and bitmap synchronization points are saved as bitmaps.
Once you have run your test in Update mode, all the expected values for all the sets of data in the data table are recaptured and saved.
Later you can run your test in Verify mode to check the behavior of your application.
WinRunner Related Interview Questions
|SILK TEST Interview Questions||LoadRunner Interview Questions|
|WinRunner Interview Questions||HTML Interview Questions|
|QTP Interview Questions||Manual Testing Interview Questions|
|OpenStack Interview Questions||Automation Testing Interview Questions|
|API testing Interview Questions||Rational robot Interview Questions|
|Selenium IDE Interview Questions||Performance Testing Interview Questions|
|Test Director Interview Questions|
Winrunner At A Glance
Understanding How Winrunner Identifies Gui Objects
Understanding Basic Gui Map Concepts
Working In The Global Gui Map File Mode
Editing The Gui Map
Merging Gui Map Files
Configuring The Gui Map
Learning Virtual Objects
Checking Gui Objects
Working In The Gui Map File Per Test Mode
Working With Web Objects
Working With Activex And Visual Basic Controls
Checking Powerbuilder Applications
Checking Table Contents
Creating Data-driven Tests
Synchronizing The Test Run
Defining And Using Recovery Scenarios
Handling Web Exceptions
Using Regular Expressions
Enhancing Your Test Scripts With Programming
Creating User-defined Functions
Creating Compiled Modules
Calling Functions From External Libraries
Creating Dialog Boxes For Interactive Input
Understanding Test Runs
Analyzing Test Results
Running Batch Tests
Running Tests From The Command Line
Controlling Your Test Run
Setting Properties For A Single Test
Setting Global Testing Options
Customizing The Test Script Editor
Customizing The Winrunner User Interface
Setting Testing Options From A Test Script
Customizing The Function Generator
Initializing Special Configurations
Integrating With Quicktest Professional
Managing The Testing Process
Testing Systems Under Load
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.