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

How to use eValid to support regression testing.

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

Postby kingjs » Wed Nov 28, 2012 4:13 pm

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?
kingjs
 
Posts: 1
Joined: Wed Nov 28, 2012 1:07 pm

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

Postby eValid » Wed Dec 05, 2012 1:30 pm

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
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Regression Testing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons