Reporter object
After running the script we can see the pass or fail status in test result file. This kind of status reporting to result file can also be achieved by using Reporter object.THis object is used in below scenario,
-> Report the status of the step execution like pass,fail,warning to the test file.
-> Retrieve the path where the test results are stored.
-> Retrieve the current run status at the current point of the run session.
-> Enabling or Disabling reporting of the steps in test results.
Reporter Event
Its used to report the result status to the test results file.
Syntax:
Reporter.ReportEvent EventStatus. ReportStepName,Details
RepartEvent - 0 or micPass
1 or micFail
2 or micDone
3 or micWarning
Reporter.ReportEvent micPass,"Demo Step","User Defined Step Pass"
Filter Property
Reporter.Filter = NewMode
NewMode may be 0 or rfEnableAll
1 or rfEnableErrorsAndWarnings
2 or rfEnableErrorsOnly
3 or rfDisableAll
Its filter the test result status as per in the filter property newmode.
Reporter.Filter = 2
Reporter.ReportEvent micPass,"Demo Step","User Defined Step Pass"
Test report displays only enable errors report.
ReportPath Property
path = Reporter.ReportPath
msgbox(path)
Its display the path name where the test result path are stored.
RunStatus Property
Reporter.RunStatus
Its display the run status as per in perticular steps.
Crypt Object
This object used to encypt the strings
encypStr=Cript.Encrypt("psswd")
Environment Object
No comments:
Post a Comment