# Defining context variables for the Route test data

Available in...

* Cloud API Services Platform
* Cloud Data Fabric
* Data Fabric
* Data Services Platform
* ESB
* MDM Platform
* Real-Time Big Data Platform

## Procedure

1. Go to the Context view of the test case.

   By default, the required variables have been created under the context named Default. You can define as many contexts as you need to perform your tests for different environments or using different text instances. For more information on how to define contexts and variables, see [Using contexts and variables](https://help.qlik.com/talend/en-US/studio-user-guide/8.0-R2024-04-and-earlier/contexts-and-variables).
2. Click in the Value field of the variable for the file you want to specify, click the ![Open](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/context_var_open_button.png) button, browse to your file in the Open dialog box, and double-click it to specify the file path for the variable.
3. In the Test Cases view, click each test instances on the left panel and select the related context from the context list box on the right panel.

   ![Test Cases view.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/studio_di_esb-route-test_instance-select_context.png)
4. Expand each test instance to show the test data, click each test data item on the left panel and check the context variable mapped to the data set. If needed, select the desired variable from the Context Value list box on the right panel.

   ![Test Cases view.](https://help.qlik.com/talend/en-US/studio-user-guide/Resources/images/studio_di_esb-route-test_instance-select_variable.png)