How to Terminate test run : How To …

How to Terminate test run

Best practices, code snippets for common functionality, examples, and guidelines.

How to Terminate test run

Postby omayer » Fri Oct 28, 2011 9:50 pm

How to Exit out of specific test case and terminate the entire test suite,

if (Host.Local.TryFindSingle("/form[@title='Windows Internet Explorer']/button[@text='OK']",2000, out button))
{
Report.Screenshot("/form[@title='Windows Internet Explorer']");
button.Click();
...how do I exit after click on Ok button and terminate the testsuite

Thank you in advance
Beginner
Tipu
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm

Re: How to Terminate test run

Postby Support Team » Mon Oct 31, 2011 12:10 pm

Hi,

Please take a look to following post
command-to-stop-iteration-t2399.html#p9575

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: How to Terminate test run

Postby omayer » Tue Nov 01, 2011 3:05 pm

Thank you Peter, this code worked - throw new RanorexException("text");
Omayer
Tipu
omayer
 
Posts: 240
Joined: Thu Oct 28, 2010 7:14 pm


Return to How To …

Who is online

Users browsing this forum: No registered users and 0 guests