Valid HTTP Status Codes Assertion
Download
Source Code:Â https://github.com/testify/ValidHTTPStatusCodesAssertion.git
Latest Snapshot:Â Coming Soon
Latest Release:Â Coming Soon
Description
The Valid HTTP Status Codes Assertion is a Testify assertion service that checks that the response code from the processor is on a provided list of valid codes. To use this assertion, the user must provide the assertion name, "ValidHTTPStatusCodesAssertion" (not case sensitive), followed by "::" and assertion information.
Assertion Information
The assertion information is the comma separated list of codes that are valid. The example text below shows the format for this assertion. This example text would be successful if the processor response code is 200, 201, or 202. The assertion text below must be placed within the assertion block.
ValidHTTPStatusCodesAssertion::200, 201, 202