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 can the spaces from the string be removed?
What are the environments supported by vbscript language?
Which operator can be used to check if two numbers are equal or not in vbscript?
filter the array values without using filter function?
What is the difference between do until loop and do while loop?
What are the advantages of vbscript?
Mention what are the rules to name variable in vbscript?
Explain about .wsf files?
how to comvert 120 into one hunderd twenty rupees only and vice varsa
Both Static and dynamic arrays are handled by VB script. Is it true?
How will you convert a string to lower case string using vbscript?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
What are the disadvantages of vbscript?
Explain about the support of asp for vb script functionality?