Skip to main content

Manage a Test Case’s Data Collection

Add and maintain variables for a Test Case version, choose the relevant data version and iteration, and reuse the values in your Test Script.

A Test Case Data Collection stores reusable variable names and values for a Test Case version. Use it to maintain test data separately from the instructions in your Test Script.

Open the data collection

  1. Open the Test Case and select the version you want to work with.

  2. Select the Test Data Collection button beside the version selector.

  3. Check the Test Case version shown in the collection. Where version and iteration selectors are available, choose the data set you intend to edit.

Test Data Collection button beside the Test Case version selector.

Add a variable

  1. Select Add Variable.

  2. Enter a clear Variable name, such as customer_email. Use a name without spaces.

  3. Enter the Value and optionally a Description explaining how to use it.

  4. Select Save. Wait for confirmation and check that the variable appears with the expected value.

Add Variable action in a Test Case data collection.

New variable row with name, value, optional description, and Save.

For example, use customer_email with the value [email protected], or order_total with the value 49.95. Enter useful sample values that match your testing task.

Use and maintain the variables

Insert a variable reference such as {{customer_email}} into the Test Script using the collection-variable picker. See Use Test Data Variables in Test Scripts for insertion and missing-variable steps.

To change a stored value, edit the relevant cell in the collection and confirm the change. Check the selected collection version and iteration before editing, then return to the script to verify the result.

A variable with an empty value may remain unresolved in the script. A variable in another Test Case or data version is not automatically the same reference.

Permissions and limits

  • You need permission to edit the Test Case and the data collection. If Add Variable or editing is disabled, ask your Vansah administrator to check your access.

  • A collection version supports up to 20 variables. Reuse an existing variable when its name already exists in that version.

  • The add row limits the variable name to 225 characters. Short names such as customer_email are easier to reuse.

Related guides

Did this answer your question?