Whenever I get a checkpoint failed in result window,
How can I get the result as "checkpoint failed" by using reporter.reportevent function?
Note : [I][This question was asked by Venu][/I]
Printable View
Whenever I get a checkpoint failed in result window,
How can I get the result as "checkpoint failed" by using reporter.reportevent function?
Note : [I][This question was asked by Venu][/I]
You can use if..else.. E.g. If browser(b).check (checkpoint(b)) then pass else fail end if note: braces in the checkpoint regards nawab
Venu, you can use the Reporter utility object to show a failed step in the Results file like this:
Reporter.ReportEvent micFail, "Your Step Failed", "_Why_Step_Failed_"
Thanks... very useful...:)
Hi,
You can give this condition when you give a check point or any other even.
If Window("MxWin.*").Dialog("MxWin .*").WinButton("OK").Exist then
Window("MxWin.*").Dialog("MxWin .*").WinButton("OK").Click
reporter.ReportEvent micPass,"Button window","Passed"
Else
reporter.ReportEvent micFail,"Button window","Failed"
end if
Good luck:
Fahed