TABLE OF CONTENTS
2. Options for Generating Test Data in an API Test Automation Process
1.Overview
This article explains how to generate test data in a separate YAML file using different options.
2.Options for Generating Test Data in an API Test Automation Process
- Data Decoupling Option:
- Navigate to the Settings page by clicking on Settings button in the Side Panel window.
- In the Settings page, select the Data Decoupling option.
- This will trigger the generation of a separate YAML file.
- Data Set Option:
- Navigate to the Generate Scripts screen by clicking the Generate Scripts button in the Side Panel window.
- In this screen, you can enable the data set option by selecting the More Menu option corresponding to the Request Name.
- Upon selecting the data set option for the first time, a YAML file will be generated automatically.
- Upload Data Set Option:
- If you have an existing data set, upload it onto the Platform using the Upload option, the test data values will be generated in a separate YAML file.
- To access Upload option, in the Generate Script screen, select the More Menu corresponding to the Request Name.
3.Accessing the Test Data
Upon generating test data in a separate YAML file, perform the following:
- Navigate to the Project Directory folder in the left pane and expand the Test Cases folder to access the YAML file, as shown:
A system-generated separate YAML file is as shown in the following screenshot:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article