Skip to main content

Adding Test Data Variables as parameters in your Test Script

Updated today

You can add Test Data Collection Variables as parameters in a Test Script by typing {{, followed by the variable name, and closing with }}

{{variablename}}

As you type the variable name, Vansah automatically searches for a matching variable in the Test Data Collection linked to the current Test Case version.

If no matching variable is found, you can create a new Variable by providing a Variable name and Value. Once added, the variable is automatically saved to the associated Test Data Collection version and becomes available for reuse within the Test Script.

Example: Variable name is entered which does not exist within the Test Data collection.

Once you enter the Variable into a Test Script it will be displayed as follows:

Highlighted in Light Blue. This represents the Variable Value for the inserted variable.

Click in the editor will display the Variable name again

If you see the Variable highlighted in red you should be able to hover over this Variable to see a + sign allowing you to add the Variable and provide a Variable value.

Clicking on the + icon will display the dialogue to quickly add the Variable along with a value and description

Alternatively you can click on the Test Data Collection button to display the collection and manage existing or new Variables

Did this answer your question?