For each data-driven test, you need to prepare at least one data table. The data table contains the values that WinRunner uses to replace the variables in your data-driven test.
You usually create the data table as part of the test conversion process, either using the DataDriver wizard or the Parameterize Data dialog box. You can also create tables separately in Excel and then link them to the test.
After you create the test, you can add data to the table manually or import it from an existing database.
The following data table displays three sets of data that were entered for the test example described in this chapter. The first set of data was entered using the Table > Parameterize Data command in WinRunner. The next two sets of data were entered into the data table manually.
Adding Data to a Data Table Manually
You can add data to your data table manually by opening the data table and entering values in the appropriate columns.
To add data to a data table manually:
Importing Data from a Database
In addition to, or instead of, adding data to a data table manually, you can import data from an existing database into your table. You can use either Microsoft Query or Data Junction to import the data.
Editing the Data Table
The data table contains the values that WinRunner uses for parameterized input fields and checks when you run a test. You can edit information in the data table by typing directly into the table. You can use the data table in the same way as an Excel spreadsheet. You can also insert Excel formulas and functions into cells.
To edit the data table:
Use the File menu to import and export, close, save, and print the data table. WinRunner automatically saves the data table for a test in the test folder and names it default.xls. You can open and save data tables other than the default.xls data table. This enables you to use several different data tables in one test script, if desired.
The following commands are available in the File menu:
Use the Edit menu to move, copy, and find selected cells in the data table. The following commands are available in the Edit menu:
Use the Data menu to recalculate formulas, sort cells and edit autofill lists. The following commands are available in the Data menu:
Use the Format menu to set the format of data in a selected cell or cells. The following commands are available in the Format menu:
Technical Specifications for the Data Table
The following table displays the technical specifications for a data table.
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.