In my user code i set up a new thread, that periodically checks for any popups. If a popup appears, i want the test case to fail.
How do i fail the test case in code?
I tried :
Code: Select all
Validate.NotExists(repo.ScriptError.SelfInfo);
I have also tried:
Code: Select all
Report.Failure("Validation", "my message");
Report.Log(ReportLevel.Failure, "failure message 2");
Any help would be appreciated.