Forum Discussion

jasonrene's avatar
jasonrene
Frequent Visitor
2 years ago

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

  • KarelHusa's avatar
    KarelHusa
    Champion Level 3

    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