3. Create a Data Source

Applies to ReadyAPI 3.53, last modified on May 15, 2024

The request you have created contains the email 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 email property in the Data Source test step:

    ReadyAPI: The project with the data source loop

    Click the image to enlarge it.

  3. Open the Data Source test step. As you see, ReadyAPI has automatically configured the data source to generate random email addresses as values of the email property:

    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