Results 1 to 5 of 5

Thread: Checkpoint failed

  1. #1
    Moderator
    Join Date
    Oct 2005
    Answers
    305

    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]


  2. #2
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    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


  3. #3

    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_"


  4. #4
    Junior Member
    Join Date
    Dec 2007
    Answers
    13

    Re: Checkpoint failed

    Thanks... very useful...


  5. #5
    Junior Member
    Join Date
    Jul 2007
    Answers
    14

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact