Add Parameters

 

The Parameters functionality allows testers to execute the same test case multiple times with different data inputs; without having to create duplicate test cases. The functionality allows QA teams to store reusable test data in one centralized location. It also helps you to keep your test data consistent and manageable.

Example:

Below are the parameters with values:

  1. Color Code

  2. Display

  3. Bluetooth Versions and

  4. Tracker Version

The combination of parameter values creates a data set. Hence, first we will create Parameters with their values, and then we will create Data Set using both.

Color Code

Display

Bluetooth Versions

Tracker Version

Color Code

Display

Bluetooth Versions

Tracker Version

1234

OLED

Bluetooth v4.0

Tracker Series 5

1237

LED

Bluetooth v4.5

Tracker Series 3

1236

MOLED

Bluetooth v4.3

Tracker Series 1

1234

OLED

Bluetooth v4.1

Tracker Series 2

 

Add Parameters

Parameters are added from Configuration > Project Configuration > https://qmetrysupport.atlassian.net/wiki/spaces/QTM4JS410/pages/2234067639.

Add Data Set

These added parameters are used in test steps as shown below.

  1. Open the test case detail page.

  2. Open the Steps tab. You can see the Parameters expandable section along with Step Details. To create a table of parameters, you need to add Columns and Rows. Columns will contain parameter names and rows will contain corresponding parameter values.

  3. To add a column, click on Add Column


A drop-down is enabled which has the list of parameters you entered in the Configuration section (Configuration > Project Configuration > Parameters).

  1. Select one parameter for the column. One parameter can be used only once for the column.

  2. Now add values to the parameter. Click Add Row to add a row under the column. The drop-downs display values in accordance with the parameter.

  3. Select a value for the parameter column. One parameter value can be used multiple times.

This way you can keep adding columns as per available parameters and their values.

A table of Data sets is created as shown below.

Use of Parameters in Steps

Till now you have created test data sets through Parameters. Now we will see how we can use the parameters in the test steps of a test case.

  1. Go to the Test Cases tab.

  2. Open the test case detail page and open the Steps tab. Parameters can be mentioned for Step Description, Input Data, and Expected Outcome.

  3. To use a parameter, write it in this syntax @parameter. When you press@ on your keyboard, the available parameters will populate.

The Step Details will look like below.

Sync Steps

If steps are updated in the test case, then the link to sync steps will be visible on the execution screen. Click on the provided link to get the updated content of the steps.

 

See Also

For understanding how to execute these parameters and use parameter values for execution, refer to https://qmetrysupport.atlassian.net/wiki/spaces/QTM4JS410/pages/2234067850.