Generate Test Data in a Separate YAML File

Modified on Mon, 18 Mar 2024 at 04:22 PM

Data Decoupling

The concept of Data Decoupling in the context of the test case generation involves separating the test data used in test cases from the detailed implementation of the application under test.

When using Data Decoupling option, the data entered by the user will be generated in the Feature File's examples table. If Data Decoupling option is chosen, the user-fed data will be stored in a separate YAML (YML) file.


The Data Decoupling option is available in the Project Settings page. To view the test data file, follow the steps:

  1. Create an offline model for a given scenario, record a scenario, and generate a test case by selecting the Data Decoupling option. 
  2. Selecting the Data Decoupling option
    1. Navigate to Project Settings Page, choose the Data Decoupling option.
    2. Click Submit.

  3. Accessing the Test Data YML file.
    1. Navigate to the Project Explorer pane, search for your project.
    2. Select the down arrow corresponding to the Project name > Test Cases folder > Test Data YML file.


Open the TestData.yml file. Values generated for keys are stored in the TestData File. If any test data value is changed, the details will be updated in this file. Feature Files contain keys, and the corresponding values are stored in the TestData file.

Test cases are downloaded and these test cases are used to generate Test Scripts.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article