what is the purpose of the Reporter.ReportEvent in QTP and
also please give the brief description about
Reporter.ReportEvent ?
Answer Posted / chinmaya khatua
The Main purpose of Reporter.ReportEvent in QTP is it is a
Reporting Machanism in Qtp.
It means Reports an event to the test results.
Syntax
Reporter.ReportEvent EventStatus, ReportStepName, Details
[, Reporter]
EventStatus:-Status of the report step:
0 for MicPass
1 for MicFail
2 for MicDone
3 for Mic Warning
ReporterStepName:-Name of the intended step in the report
(object name).
Details:-Description of the report event. The string will
be displayed in the step details frame in the report.
Example
The following examples use the ReportEvent method to report
a failed step.
Reporter.ReportEvent 1, "Custom Step", "The user-defined
step failed."
or
Reporter.ReportEvent micFail, "Custom Step", "The user-
defined step failed."
| Is This Answer Correct ? | 83 Yes | 9 No |
Post New Answer View All Answers
What is the difference between do until loop and do while loop?
Which command is used for writing text on a page?
How will you get the octal value of the given number in vbscript?
Explain about scrrun.dll?
Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com
Explain different types of segment?
Explain How do you create a recordset object in vbscript?
Mention what is the use of option explicit in vbscript?
give me any information abou vb script books learn quckly
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
Write a code to print numbers from 5 to 0?
Explain about the asc function?
How to write functions and sub in vb script?
How will you get a string with the specified character the specified number of times in vbscript?
how to comvert 120 into one hunderd twenty rupees only and vice varsa