Variable Manager
Last updated
Last updated
A test case can be parameterized by test data. This example shows a login example, where different user data has to be entered into a login screen. Open a test case and open the Variable Manager by left-click on the button:
Here, data is specified similarly to Excel (including formulas). The rows represent the test value set, and the columns represent the test variables. You can specify the data as follows:
You can import and export the test data into Excel if you want to handle large amounts of data or if you want to reuse existing test data. Furthermore, you have the possibility to Clear the content or copy cells and rows. Following the specification, you can close the Variable manager. Now, open the Step designer in order to parameterize the test steps. You can insert your parameter Username by clicking on Insert Variable and then clicking on Username. The placeholder is inserted.
If you close the step designer, you can start the test execution. A new window opens where you can choose the value set by selecting the specific row.
All values are displayed in order to choose a correct value set. After entering the optional value for Tested Version, you can Run the test case. As you can see in the following screen, the value is inserted into the value placeholder.
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 open the variable manager. Select the test case, whose data you want to use, drag it over the variable manager and drop it here.
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'.