Important
The Message Content assertion has been superseded by the Smart Assertion as of ReadyAPI 3.9.0. The assertions will continue to be available, but we recommend transitioning to Smart Assertions.
The HTTP Header Exists assertion checks whether the header with the name you have specified exists in the request or response.
Important
This assertion works with test steps and virtual APIs that receive HTTP messages in the response.
This assertion is available in multiple ReadyAPI applications. Depending on the application, it validates the following data:
In... | Checks... | To learn more... |
---|---|---|
The request or response header. | ||
The response header. | See Security Assertions. | |
The request header. |
Specify the header name. To check multiple headers, add more Header Exists assertions.
![]() |
Add more assertions for HTTP status codes and response headers: