Response SLA Assertion

Applies to ReadyAPI 3.57, last modified on December 13, 2024

The Response SLA assertion checks whether the response arrives within the specific time limit.

A response SLA is not the same as a connection timeout. It works in the following way:

  • First, ReadyAPI downloads the response.

  • Then, after the download finishes, it compares the response time against the SLA.

Tip: The connection timeout is used to terminate test step execution when the server doesn't respond in a certain time frame. If the connection times out, the test step is considered failed. You can set the connection timeout in the Timeout property of a test step, or globally in Preferences > HTTP > Socket timeout (ms).

Availability

This assertion is available in multiple ReadyAPI applications. Depending on the application, it validates the following data:

In application Checks To learn more
Functional tests The response. See Working With Assertions in Functional Tests.
Security tests The response. See Security Assertions.

Create an assertion

Follow these steps:

Functional test: The Assertions panel

Click the image to enlarge it.

  1. Open a test step.

  2. Click Add assertion.

In the New Assertions dialog, search for the Response SLA assertion or select it manually in the SLA category.

Follow these steps:

Security tests: The Assertions panel

Click the image to enlarge it.

  1. Open a security test.

  2. Click Response Assertion next to any scan.

  3. Click in the Assertions panel

In the New Assertions dialog, search for the Response SLA assertion or select it manually in the SLA category.

Setting up properties

To set up the Response SLA assertion, specify the maximum expected response time:

ReadyAPI: Configuring the Response SLA assertion
Highlight search results