7. Run the Test

Applies to ReadyAPI 3.10, last modified on September 23, 2021

You have completed all necessary preparations, and now you can run your test.

To run the test, click on the test case toolbar.

ReadyAPI: The test case

Click the image to enlarge it.

While the test case is running, you can see the details in the transaction log.

ReadyAPI: Opening the transaction log

Click the image to enlarge it.

To open it, click Transaction Log on the test case toolbar.

Here, you can see the run details.

ReadyAPI: The transaction log

Click the image to enlarge it.

You did not use any assertions to validate requests, so the assertion status for the request is UNKNOWN. You can see it in the Status column. The data source and the data source loop are always Passed, since it is impossible to assert them.

Add assertion

  1. Switch to the REST Request and click Smart Assertion:

    Functional API testing: Smart Assertion button

    Click the image to enlarge it.

  2. ReadyAPI will create an assertion based on the most recent response and automatically configure which values are expected for which data fields:

    Functional API testing: Smart Assertion

    Click the image to enlarge it.

  3. You can uncheck boxes to exclude certain fields from the assertion or configure comparison operators and expected values. When you are done, click Save:

    Functional API testing: Configure assertion

    Click the image to enlarge it.

You have added the Smart Assertion to your test request. It will verify that the response data matches the expected values. You can find the added assertion in the Assertions panel:

ReadyAPI: The REST request with the assertion

Click the image to enlarge it.

In this tutorial, you have learned how to read data from a MySQL database. You can use the same approach for Microsoft SQL and other databases.

Prev

See Also

MySQL Databases as Data Sources

Highlight search results