ReadyAPI header exists assertion failures
Hey all,
Noticed something a little strange with the ReadyAPI "Header Exists" assertion.
Having a specific header checked to exist seems to be giving me mixed results between test run.
We have a data driven test and need to validate specific header information is returned in the header response. Therefore, we are using the "Header Exists" assertion to ensure that information is returned in the header response.
The test will fail on one (or more) of the "Header Exists" assertions, yet when I view that response in Splunk, I see the expected response header information of that assertion which failed in the Splunk log, thus it should not have failed.
Executing the same test again, the same request might successfully assert the previously failed header exists assertions, yet fail on one (or more) of those "Header Exists" assertions for a different request which passed all header exists assertions in the previous test. Once again, checking the Splunk log for those which failed, shows the header information was in the header response for that request.
Has anyone else had this issue or seen something similar for the "Header Exists" assertion during test execution?
Thanks in advance !
Stu
The issue with the header exists was on our side as when a specific query parameter was used in the request, the header information was not returned. The assertion helped us be able to narrow down the exact query parameter in the request which was failing he assertion. Once the updated code was in place, the header exists assertion was successful.
Just another example of how useful the header exists assertion can be in finding an internal issue.