Results 1 to 4 of 4

Thread: How to relate validation result to output result?

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    6

    How to relate validation result to output result?

    Hi All

    If we use a conditional validations in our script then how we can relate the results to the final output result(i.e test pass or fail) which is display at the end of the test.

    Can any one give me a sample code.

    In my case i implement the conditions & a checkpoint but the result get fail as it pass at the validations.

    Pravin


  2. #2
    Junior Member
    Join Date
    Apr 2007
    Answers
    23

    Re: How to relate validation result to output result?

    can u give one example please


  3. #3
    Junior Member
    Join Date
    Jul 2007
    Answers
    6

    Re: How to relate validation result to output result?

    In the script we have uses standard checkpoint and the Output value for comparison.

    For example:
    If the expected value is between the range 0-50 and by using if else condition we have validate it and actual value we are getting is 25.

    Here the validation is true but we are getting the result "Failed".

    How to change the status of result panel from fail to pass according to the validation?


  4. #4
    Contributing Member
    Join Date
    Nov 2007
    Answers
    48

    Re: How to relate validation result to output result?

    Hi,

    Basically reporter object is used for sending information to the test results window.

    Syntax:

    Reporter.ReportEvent EventStatus, ReportStepName, Details [, in]

    Where Event Status is the status of the reported step. It can be Pass, Fail, Done, Warning

    ReportStep Name is the name of step

    For Example

    Reporter.ReportEvent 1, "CheckValidation", "Validation Check is Failed."

    or

    Reporter.ReportEvent micFail, "CheckValidation", "Validation Check is Failed."


    Cheers
    CPS



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