How will we implement interrupt based programming using ranorex so that as soon as an error message appears the test case terminate from that
point without executing the rest of the test case.
try
{
Application.ErrorAsException = true;
form = Application.FindFormTitle("RanorexTestedApp");
Button button1 = form.FindButton("button1");
Mouse.ClickControl(button1);
...
Console.WriteLine("TEST PASSED");
return 0;
}
catch (RanorexException e)
{
Console.WriteLine("EXCEPTION Source={0} Sender={1} Message={2}
StackTrace={3}", e.Source, e.Control, e.Message, e.StackTrace);
Console.WriteLine("TEST FAILED");
return 1;
}Users browsing this forum: No registered users and 0 guests