A Test Data Collection stores reusable values for testing, such as a customer email address or a checkout URL. Reference a variable in a Test Script instead of typing the same value in every step.
For example, create a variable named customer_email with the value [email protected]. Insert {{customer_email}} through the script editor’s variable picker to reference it.
Understand the parts
Part | What it means |
Test Environment | An area such as QA or UAT that organizes Test Data Collections. |
Test Data Collection | A named group of variables and their values. A Test Case also has its own collection for the selected Test Case version. |
Variable | A reusable name and value, with an optional description and sensitive-value setting. |
Collection version | A separate version of a collection’s data. In Test Environments, you can copy an existing version and choose a default. |
Iteration | A numbered set of values within a collection version. Use it to organize different data sets for testing. |
Choose where to manage your data
Test Environments: open the environment and select a collection to manage its variables, versions, and iterations.
A Test Case: open the relevant Test Case version and its Test Data Collection to manage the values used by that case.
Check the selected collection version and iteration before editing values or testing. The same variable name in a different collection does not by itself connect the two collections.
Use a variable in a Test Script
Open the relevant Test Case and its Test Data Collection.
Add a variable, enter its value, and select Save.
Open the Test Script editor. Type
{{and choose the existing variable from the picker.Save the script, then check the displayed value before testing.
Vansah displays the resolved value when the variable exists and has a usable value in the script’s current data context. A missing or empty value can leave the reference unresolved. Sensitive values are masked in supported views.
For complete steps, see Use Test Data Variables in Test Scripts.
Manage changes with versions and iterations
In Test Environments, create a new collection version to copy existing variables and iterations before changing them. Set it as the default only when that is the intended default for the collection.
Use the Iteration menu to review the numbered data sets. Creating a new iteration requires access to Vansah’s advanced features as well as the relevant edit permission.
A version remains editable. Do not treat a version or the sensitive-value option as a read-only archive or a separate access-permission system.
