Managing the Add Assertion Panel
Use the Assertion panel to validate the behavior and responses of the test step against the expected outcome.
In the Assertion Source, assertion methods are the same for the response body and the response header. There are two options for Actual Value Type in a response body, Static and RelativeJSON. For a response code, the default assertion method is AssertResponseCode and the actual value path is StatusCodeValue. You can choose numeric, string, null, JSON, and Boolean values from the list of assertion methods. Build an expected value, add the actual value path, and enter a customized message.
- Static
- ExtractedVariable (visible only from test step 2)
- TestDataVariable
- EnvironmentVariable
An example of building an expected value expression of type 10+((6-2)*2)/2 is shown below.