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
Which function allows you to instantiate an object given its programmatic identifier or progid?
how to operate webobjects in a webpage using getobject function and then using generic methods?
What are lbound and ubound in the vbscript language?
How will you format a number in percetage format in vbscript?
Mention the rules for using option explicit statement?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Differentiate javascript and vbscript?
What are the uses of vb script?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
Difference between dim,public and private variables in vb script?
How to take whole text output from screen of Bitmap Application.
What are the 2 ways in which a variable can be declared in the vbscript language?
How to Convert Hex color code to color name in VB Script?
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.