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 command is used for writing text on a page?

571


How to pass argument by reference to a function in vbscript?

530


What is vbscript procedures?

595


how does vb script help in web page designing? explain with example.

1582


What is purpose of scripting.filesystemobject class in vbscript?

616






How will you convert a string to upper case string using vbscript?

546


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1782


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

562


Does VB/Win make standalone .EXE files?

2893


Which data type/types are supported by vbscript language and what are their specialties?

586


write any ttest cases using check points and parameterization

1811


What is the use of option explicit in vbscript?

538


please can you help me to get a code of flames using a visual basic 6

1224


How to assign a numeric value to a variable?

610


What is vbscript language used for and which earlier language is it modeled upon?

523