Props
Props is an optional property that is used for two (for now) reasons:
Selections
This section is used to define selections that can be reused across the test suite without the need to write the same selections over and over again.
Warning
Its important to mention that selections defined here are not performed unless called from some of the test suites.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
In the example above we've defined two placeholder selections:
-
DepartmentAndStatus- this selection will select in two fieldsDepartmentandStatus. InDepartmentfield it will select three values -Production,SalesandOperationsand inStatusfield will selectPendingandComplete -
ProductionLastYear- this selection will selectProductioninDepartmentfield and2023inYearfield
Warning
Selections are performed in "order or appearance" (from top to bottom) and in sequence (second selection will be performed once the first one is applied, third after the second is applied etc.)
Variables (session)
This sections is for defining set of session variables. As the name suggests these variables will not be preserved in the app and will be destroyed once the session is closed (aka the tests suite is complete).
The purpose of these variables can be different but if there is a need for a variable during the test run then this is the place to define them.
The variables are defined as simple string property - the property name will be used as variable name and the property value will be the variable value:
1 2 3 4 5 6 7 8 | |