4. Get Data Into the Test Case

Applies to ReadyAPI 3.9, last modified on July 16, 2021

Now, you have a project with a test case, so you can add the data source to it.

  1. Open Functional Tests and select your new test case.

    ReadyAPI: A functional test case

    Click the image to enlarge it.

  2. To get the data for your test case, you need a data source test step.

    Click .

    ReadyAPI: Adding the data source test step

    Click the image to enlarge it.

  3. Enter a name for the test step.

    ReadyAPI: Entering a name for the test step
  4. Click OK.

  5. Data sources are most efficient, when you use them with a loop. ReadyAPI will suggest that you automatically generate parameter values and add a Data Source Loop to your test case. Usually, you will do that right away, but for the tutorial purposes, you will add the loop later.

    ReadyAPI: The loop creation confirmation window

    Click No. Do not select Don't show again.

The data source test step will appear in the navigator.

ReadyAPI: The new data source

Click the image to enlarge it.

The order is important in the test step execution, so you need the data source to come before the request that will use it.

ReadyAPI: The test step order

Click the image to enlarge it.

Drag the data source above the request if needed.

Now, you can configure the test step to use a JDBC connection.

Prev          Next

See Also

Microsoft SQL Databases as Data Sources

Highlight search results