3. Create a Data Source

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
  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
  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

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
  2. Click run.png.

    ReadyAPI: Running the data log
  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

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

Prev Next

See Also

Publication date: