3. Configure the Test Step

Applies to ReadyAPI 3.8, last modified on June 03, 2021

To enable your test step to use the data source, you need to place the test step and the data source in the correct order. Then, you should configure the test step to use the data stored in the data source.

Now you have a test case that includes a data source, a REST Request and a data source loop. You need to place the data source before the request if you want the request to use it.

By default, the wizard tries to populate the request's empty fields with data from the data source. If you are using the sample file, it should already contain the ${DataSource#City} value. You can check it now:

  1. Open the Request 1 test step editor.

  2. Switch to the Request tab:

    ReadyAPI: The request with a dynamic value

    Click the image to enlarge it.

    If you are using a custom file or the wizard did not get the value correctly, select the City property from the data source:

    1. Select the Value field.

    2. Right-click in the field and select Get Data.

    3. In the subsequent Get Data dialog, select the Data Source test step and the City property:

      ReadyAPI: Selecting the data source property

      Click the image to enlarge it.

    4. Click Add.

The field should now include a property expansion that refers to a data source property.

ReadyAPI: The request with a Property Expansion

Click the image to enlarge it.

Now you can run the test.

Prev          Next

See Also

Excel Files as Data Sources

Highlight search results