The HTTP Header Equals assertion checks whether the header exists in the request or response and has the value you need.
This assertion works with test steps and virtual APIs that 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...|
|SoapUI functional tests||The request or response header.||See Working With Assertions in SoapUI.|
|SoapUI security tests||The response header.||See Security Assertions.|
|ServiceV||The request header.||See Assertions in ServiceV.|
Specify the header name in the Header field.
Specify the expected header value in the Value edit box.
Select additional options to narrow down the expected value:
|Ignore case||Make the search case insensitive.|
Treat the entered value as a regular expression.
To learn more about the syntax of regular expressions, see the Oracle documentation.
Add more assertions for HTTP status codes and response headers: