Ask a Question

ReadyAPI Functional Tests: Is it possible to have an assertion produce a WARNING instead of a FAIL?

jasonrene
Frequent Visitor

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.

1 REPLY 1
KarelHusa
Super Contributor

@jasonrene,

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
cancel
Showing results for 
Search instead for 
Did you mean: