×
Menu

Defining Data - Using Variable Manager for Parametrization

A test case can be parameterized with test data. Open a test case and open the Variable Manager by clicking the Data tab in the navigation bar on the left.
 
The screenshot below shows two sets of data (Rick and Morty) for testing a login. Here, data is specified similarly to Excel. The Set name represents the name of the test value set, and the columns represent test variables (name, surname, username, password and loginresult).
 
 
Open the Step designer in order to parameterize the test steps. Insert the variable Username by clicking on Insert Variable and then clicking on Username. A placeholder $Username is inserted.
 
 
If you run the test case, you can choose the value set via a drop down menu.
 
 
As you can see in the following screenshot, the placeholder is replaced with the given value.
 
 
As soon as you make changes to the variable names, you will be asked whether the variables should be updated in the test steps in which they are used. If you confirm with Ok, the variable names are updated in the steps. If you click Cancel, the variable names in the steps are not replaced and will not be printed in future test executions.
 
 
If two or more test cases should share their test data, you can reuse it. To do so, open the test case that should use the data from another test case and go to 'Data'. Click on . Select the test case, whose data you want to use and klick on 'Reuse data from selection'.
 
 
You can now use the data from the other test case in this test case. If you want to keep the variables locally in this test case, click 'Copy over'.
 
 
If you want to execute all or a selection of parameterized tests as a group of tests, you can take a look at Test scenarios.