You are on page 1of 14

Quick Test Professional Parameterization Session -6 VeriTest, Chennai

Session-6: Agenda
What is Parameterization

How to Parameterize
Global & Action Sheets Parameterization - using Parameterization icon Parameterization - using Data Driver Wizard Q &A

What is Parameterization

When you test your application, you may want to check how it performs the same operations with multiple sets of data. You can create a data-driven test with a loop that runs n-times: each time the loop runs, it is driven by a different set of data. A parameter is a variable which replaces a recorded value in the script.

At run time, Quick Test substitutes a value from a data source (Data Table) for the parameter. This is called parameterization.

How to Parameterize

Parameterization can be done by two methods: By clicking on the Parameterization icon By using Data Driver Wizard

Global Sheets & Action Sheets

Global Sheets & Action Sheets Contd.

Global Sheet: Choosing Global sheet enables you to create a new column or select an existing column in the Global sheet in the Data Table.You can use the columns in the Global data sheet for Data Table output values or Data Table parameters in any action. Local Sheet: Each action also has its own sheet in the Data Table so that you can insert data that applies only to that action.When you run your test, QuickTest inserts or outputs a value from or to the current row of the current action (local) data sheet during each action iteration.

Parameterization - using Parameterization icon


In the Keyword View, click in the Value column of the required step.

Parameterization - using Parameterization icon Contd..


Click the parameterization icon for the value that you want to parameterize. Value Configuration Options dialog box opens, showing the currently defined value. Select Parameter option and select the Column name in the Name field

Parameterization - using Parameterization icon Contd..

Click Ok button Following is the statement generated in the script after parameterizing the agent name Dialog("Login").WinEdit("Agent Name:").Set DataTable("p_Text", dtGlobalSheet)

Parameterization - using Data Driver Wizard


1. Display the action you want to parameterize. 2. Choose Tools > Data Driver.

10

Parameterization - using Data Driver Wizard Contd...


3. Select the value you want to parameterize from the Constants list and click Parameterize. The Data Driver Wizard opens.

11

Parameterization - using Data Driver Wizard Contd...

4. Select the type of parameterization you want to perform: Step-by-step parameterization or Parameterize all 5. If you select Step-by-step parameterization, click Next. Parameterize the Selected Step screen opens. 6. Click the Parameter Options button to set the parameterization options you want to apply to this step. Click Finish.

12

Parameterization - using Data Driver Wizard Contd...

13

Parameterization - using Data Driver Wizard Contd...

14

You might also like