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
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.
What is the output of a + b in vbscript if a = 5 and b = 10?
How will you get the last occurrence of one string within another string using vbscript?
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..
Explain the .wsf files?
Explain about tristate constants in vbscript?
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.
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
What is the use of option explicit statement?
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
Mention what if you do not specify anything when you call a procedure?
Explain vbscript in detail?
How can constants be declared in the vbscript language?
How to take whole text output from screen of Bitmap Application.
Can u describe what kind of testing are for OTC derivates by banks.