ReadyAPI Functional Tests: Is it possible to have an assertion produce a WARNING instead of a FAIL?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β07-15-2022
12:53 PM
β07-15-2022
12:53 PM
ReadyAPI Functional Tests: Is it possible to have an assertion produce a WARNING instead of a FAIL?
I would like to construct my functional tests to include Response SLA assertions but not produce a FAIL when the API call responds outside of the anticipated response time. I would rather see a WARNING result for that assertion. This would allow us to note areas for improvement but not fail the tests outright.
I see that there is the ability to disable the assertions, but I don't want them disabled. I simply don't want them to be failures. (Think: PASS, BUT I DON'T LIKE IT.) π
I'm hopeful this capability exists somewhere and I'm just not seeing it.
Labels:
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β07-17-2022
11:19 PM
β07-17-2022
11:19 PM
the assertions are either on or off; there is no warning level.
If you need to log a warning message, you can create:
- a script assertion that only checks the response time but does not fail
- a teardown test case script, loop over all relevant (e.g., REST) test steps, and check their response time
Best regards,
Karel
Karel@apimate.eu
https://apimate.eu
https://apimate.eu
