4. Configure the Test Step

Applies to ReadyAPI 3.56, last modified on November 21, 2024

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. Make sure the data source is placed 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 ${Data Source#Email} 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 Email 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 Email 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

Now you can run the test.

Prev          Next

See Also

Excel Files as Data Sources

Highlight search results