Back to QMetry All Products Help Page
Using Parameters And Parameter Values
Before using parameters and parameter values in your project, refer to the following pages to understand:
Example:
Below are the parameters with values:
Color Code
Display
Bluetooth Versions and
Tracker Version
The combination of parameter values creates a data set. Hence, we will create Parameters with their values, and then we will create Data Set using both.
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 > Parameters
Add Data Set
These added parameters are used in test steps as shown below.
Open the test case detail page.
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.
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).
Select one parameter for the column. One parameter can be used only once for columns.
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.
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 Set 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.
Go to the Test Cases tab.
Open the test case detail page and open the Steps tab. Parameters