i have a new question

Code: Select all
try
{
...
PopupWatcher popupWatcher = new PopupWatcher() { EnableReportMessages = true };
Action<RxPath, Element> callback = (path, element) =>
{
throw new TestException("Unknown messagebox", element);
};
popupWatcher.Watch("/form[@class='#32770']", new PopupPathCallback(callback));
popupWatcher.Start();
...
}
catch(TestException exc)
{
Report.Snapshot(exc.Message, exc.Element);
TestReport.EndTestModule(TestResult.Failed);
TestReport.EndTestCase(TestResult.Failed);
}
00:09.486 Error Popup Watcher Error in popup dialog handler.
Show/Hide Stacktrace
at Test.Program.<CreateModuleTest>b__1(RxPath path, Element element) in c:\Users\...\Documents\Visual Studio 2012\Projects\Test\Test\Program.cs:line 64 at Ranorex.PopupWatcher.FindPopups(PopupItemCallback itemCallback, PopupPathCallback pathCallback, RxPath absPath, String itemName, RepoItemInfo optionalInfo)
However, I would like to stop the test run in the callback method. What do I need for it?
And sorry for my "English"

Greetings
Geci