Page 1 of 1

Expected Failures

Posted: Fri Sep 25, 2015 9:20 pm
by tchasid
Hi!

I'm in the process of composing a test module and would like to test it out. Yes, I want to test my test. To do so I want to make sure that I'm failing when I'm supposed to. Is there a way to expect failures without actually failing the test (of the test)?

Best,
t

Re: Expected Failures

Posted: Mon Sep 28, 2015 2:05 pm
by Support Team
Hello tchasid,

If you expect your test to fail, one way would be to change the 'Report Level On Failure' for the validation action.

First, please open the properties-grid of the corresponding action.
open_properties.png
Please change the 'Report Level On Failure' to 'Success' and 'Report Level On Success' to 'Failure'.

Additionally, please set the option 'Continue On Fail' to 'True'.
validate_action_properties.png
If the validation-step fails, it will be logged to the report as a successful step and the test will continue.

Please let me know if you need more information.

Regards,
Johannes