PopupWatcher and Report.Failure
Posted: Thu Jan 23, 2014 3:32 pm
Hello,
I'm using PopupWatcher to handle some "unexpected" dialogs that could appear in our app. Once the dialog is detected a method is triggered, in which is taken a screenshot of the dialog, a message is logged about the appearance of the dialog and then the dialog is closed. So far so good.
The problem is that even though I use Report.Failure("message") to log the dialog, the test case/iteration is still marked as green/success... And the problem is that in report with hundreds of iterations, it's really hard to find the iteration with triggered PopupWatcher.
I guess my problem is related to the fact that PopupWatcher is run in a separate thread, am I right? I found several discussions on that subject but at that time, there was no known solution to overcome this problem.
Is there something I can do to mark the testcase/iteration failed? Thank you in advance!
I'm using PopupWatcher to handle some "unexpected" dialogs that could appear in our app. Once the dialog is detected a method is triggered, in which is taken a screenshot of the dialog, a message is logged about the appearance of the dialog and then the dialog is closed. So far so good.
The problem is that even though I use Report.Failure("message") to log the dialog, the test case/iteration is still marked as green/success... And the problem is that in report with hundreds of iterations, it's really hard to find the iteration with triggered PopupWatcher.
I guess my problem is related to the fact that PopupWatcher is run in a separate thread, am I right? I found several discussions on that subject but at that time, there was no known solution to overcome this problem.
Is there something I can do to mark the testcase/iteration failed? Thank you in advance!