Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fail statement

Status
Not open for further replies.

xilefx

Technical User
May 28, 2008
3
0
0
US
I'm looking for an exit statement with status Failed. For instance, if I have a condition that is not met, I need to exit the test with a failed status. Is there a way to do that.
 
use Reporter.ReportEvent with a micFail to report the fail.

Then look at the ExitTestIteration which will step out and attempt the next iteration.

There's also ExitTest which steps out of all iterations.

Cheers,
Dave

"Yes, I'll stop finding bugs in the software - as soon as you stop writing bugs into the software." <-- Me

For all your testing needs: Forum1393
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top