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
How will you format a number in percetage format in vbscript?
Mention what is the difference between vbscript and vba?
Write a Script for ATM in QTP
Which constant is used for print and display functions and works as same as pressing enter key?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
How will you compare two strings in vbscript?
How will you reverse a string in vbscript?
Why is error handling required?
What are the naming conventions while declaring a variable in the vbscript language?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
What are the different types of operators and their order of precedence?
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
How to write VB script for login module?
What are the advantages of vbscript?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?