2. Create a Data Source

Applies to ReadyAPI 3.9, last modified on July 29, 2021

The request you have created contains the address parameter. You can make ReadyAPI generate the parameter value automatically.

1. Create a data source

  1. In the request editor, click the Generate Values button:

    ReadyAPI: Generating values

    Click the image to enlarge it.

  2. In the Create Data-Driven Loop dialog, select the request parameters that will be configured automatically:

    ReadyAPI: Create Data-Driven Loop dialog

    ReadyAPI will automatically create a data source loop and add a property expansion that will refer to the address property in the DataSource test step:

    ReadyAPI: The project with the data source loop

    Click the image to enlarge it.

  3. Open the DataSource test step. As you see, ReadyAPI has automatically configured the data source to generate random addresses as values of the address property. Change Property type to City to generate random city names instead:

    ReadyAPI: The data source step

    Click the image to enlarge it.

2. Test the data source

To test your data source, you can use the data log:

  1. Open the Data Log panel.

    ReadyAPI: Switching to the data log

    Click the image to enlarge it.

  2. Click .

    ReadyAPI: Running the data log

    Click the image to enlarge it.

  3. ReadyAPI will ask you how many rows you want to get. Just click OK.

    ReadyAPI: Specifying a number of rows for the data log

The retrieved data will appear in the log.

ReadyAPI: Data log results

Click the image to enlarge it.

On the next step of the tutorial, you will add an assertion to validate test results.

Prev          Next

See Also

Data-Driven Functional Tests

Highlight search results