Expected Failures

Ask general questions here.
tchasid
Posts: 1
Joined: Thu Jun 04, 2015 3:54 pm

Expected Failures

Post by tchasid » Fri Sep 25, 2015 9:20 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Expected Failures

Post by Support Team » Mon Sep 28, 2015 2:05 pm

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
You do not have the required permissions to view the files attached to this post.