2. Add the Data Source

Applies to ReadyAPI 3.5, last modified on December 29, 2020

To perform data-driven testing, you need to use the DataSource test step. Let’s add it to the test case.

  1. Open the created test case.

  2. Click to add the DataSource test step.

    Functional API testing: Adding the DataSource test step

    Click the image to enlarge it.

  3. ReadyAPI offers you to generate parameter values automatically and create the DataSource Loop test step. Click Yes.

    Functional API testing: Creating the DataSource test step

    Click the image to enlarge it.

  4. Leave the default settings in the Create Data-Driven Loop dialog and click OK.

    Functional API testing: Creating the DataSource Loop test step

    Click the image to enlarge it.

ReadyAPI creates the DataSource test step with a property obtained from the request.

Functional API testing: Created the DataSource test step

Click the image to enlarge it.

ReadyAPI also adds a property expansion as the value of the request parameter. The property expansion refers to the property in the data source:

Functional API testing: Property expansion in the request

Click the image to enlarge it.

The next step will show how to configure the data source.

Prev          Next

See Also

Text Files as Data Sources

Highlight search results