Page 1 of 1

How do I organize a PASS in case a test is supposed to fail?

PostPosted: Wed Nov 28, 2012 4:13 pm
by kingjs
How do I organize a PASS in case a test is supposed to fail? I mean, when the outcome of a test is supposed to be bad...and that means the test passes?

Re: How do I organize a PASS in case a test is supposed to f

PostPosted: Wed Dec 05, 2012 1:30 pm
by eValid
What you mean is that the test is a "negative test" and YOUR test PASSes when the negative test performs as you expect, and fails.

The problem is to keep the sense of PASS and FAIL separate. If you want to record that a test PASSes when it makes an error, then the way to trap that is to lay an OnErrorGoScript command in the test script file AHEAD of where you antitipate an ERROR state.

Now, when the ERROR occurs, control goes to a script page of your choosing. This one should be set up to end normally. The normal (non-ERROR) termination of the test will be seen as a PASS by the eV.Manager module.

Technical Support