-
Junior Member
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
-
Junior Member
Re: How to relate validation result to output result?
can u give one example please
-
Junior Member
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?
-
Contributing Member
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
-
Forum Rules