-
Moderator
Checkpoint failed
Whenever I get a checkpoint failed in result window,
How can I get the result as "checkpoint failed" by using reporter.reportevent function?
Note : [This question was asked by Venu]
-
Expert Member
Re: Checkpoint failed
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
-
Moderator
Re: Checkpoint failed
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_"
-
Junior Member
Re: Checkpoint failed
Thanks... very useful...
-
Junior Member
Re: Checkpoint failed
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules