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


Please Help Members By Posting Answers For Below Questions

Which function allows you to instantiate an object given its programmatic identifier or progid?

647


how to operate webobjects in a webpage using getobject function and then using generic methods?

2639


What are lbound and ubound in the vbscript language?

703


How will you format a number in percetage format in vbscript?

668


Mention the rules for using option explicit statement?

572






By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

720


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1548


Differentiate javascript and vbscript?

645


What are the uses of vb script?

663


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..

2117


Difference between dim,public and private variables in vb script?

613


How to take whole text output from screen of Bitmap Application.

1942


What are the 2 ways in which a variable can be declared in the vbscript language?

661


How to Convert Hex color code to color name in VB Script?

4031


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.

1658