The request you have created contains the address parameter. You can make ReadyAPI generate the parameter value automatically.
1. Create a data source
-
In the request editor, click the Generate Values button:
-
In the Create Data-Driven Loop dialog, select the request parameters that will be configured automatically:
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:
-
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:
2. Test the data source
To test your data source, you can use the data log:
-
Open the Data Log panel.
-
Click
.
-
ReadyAPI will ask you how many rows you want to get. Just click OK.
The retrieved data will appear in the log.
On the next step of the tutorial, you will add an assertion to validate test results.