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

1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1514


What is the output of a + b in vbscript if a = 5 and b = 10?

2086


How will you get the last occurrence of one string within another string using vbscript?

679


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

2018


Explain the .wsf files?

529






Explain about tristate constants in vbscript?

605


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1411


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2389


What is the use of option explicit statement?

581


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2057


Mention what if you do not specify anything when you call a procedure?

569


Explain vbscript in detail?

615


How can constants be declared in the vbscript language?

550


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

1864


Can u describe what kind of testing are for OTC derivates by banks.

1664