How to Generate Test Data in a Separate YAML File

Modified on Wed, 11 Sep at 3:35 PM

TABLE OF CONTENTS

1. Data Decoupling Overview

2. Accessing Data Decoupling Option

3. Accessing the Test Data YML file

1. Data Decoupling Overview

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.

2. Accessing Data Decoupling Option

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. Expand the Project Name by clicking the plus icon and then expand Test Cases folder to view the Test Data YML file.
  3. 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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article