Parameterisation
Parameterisation enables a test to be reused for different test data sets.
Parameters can be controlled both on the test level and on the sub test level.
Both page element identifiers (e.g. label text, name and ID) and user input can be parameterised with data from a spreadsheet file (semicolon separated), or from the built in parameterisation editor.
Parameterization is controlled in the Graphical Test Editor, on the Parameterisation property sheet of a Test.
The data from a parameter row is inserted into the test, and stored there. This is controlled by the parameter index.
To use parameters:
- Create a parameter file by right clicking on the "Create new parameter file" button on the parameterisation property sheet of a Test.
- Add data to the parameter file (Click Add key / Add Row)
- Save the parameter file and (on the parameterisation property sheet of the Test) press "Refresh parameters".
- Assign parameters to page element identifiers in the property tab of page elements.
To parameterise user input, choose "Enter parameter text" in the User Interactions dialog (in the dropdown of the Action Type column), and select the appropriate parameter name.
This "Enter parameter text" option is only available on action types that accept text input.
If the test is used as a sub test, the parameter index can be controlled independently on the sub test level.
Running a test with different data sets
Create a new "wrapper-test" (a normal test) and add the test to be parameterized as a sub test multiple times (one for each parameter index), and set the index on the subtests accordingly.
In the future, there will probably be a an option in the runner to loop over all the indexes automatically.
