|The Message Content assertion has been superseded by the Smart Assertion as of ReadyAPI 3.9.0. It will remain available, but we suggest that you switch to the Smart Assertion.|
The Valid HTTP Status Codes assertion checks whether the target test step received the HTTP result with a status which is on the list of defined codes.
This assertion works with test steps which receive HTTP messages.
This assertion is available in multiple ReadyAPI applications. Depending on the application, it validates the following data:
|In...||Checks...||To learn more...|
|Functional tests||The response HTTP status codes.||See Working With Assertions in Functional Tests.|
|Security tests||The response HTTP status codes.||See Security Assertions.|
Create an assertion
Setting up properties
Specify HTTP codes the target service should return. To add multiple codes, separate them with a comma.
To pass the request when there is no content on the page, or it is partial, specify the following codes:
Other assertions for status codes and headers
Add more assertions for HTTP status codes and response headers: