what is the purpose of the Reporter.ReportEvent in QTP and
also please give the brief description about
Reporter.ReportEvent ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mady
By using this method we can report the user defined results in results window.
Syntax:
Reporter.ReportEvent Status,StepName,Description,Bmpfile
| Is This Answer Correct ? | 10 Yes | 4 No |
Answer / navin.k
actually the def of Reporter Utility object is
used for sending the user defined steph to the result window
with the help of "reportevent" method ]
Syntax :
Reporter.ReportEvent Status,"RepoterName","Details"
Example :Reporter.RepoterEvent 1,"myapp","sub operation is
not successful."
Status:
0=Passed
1=Failed
3=Done
4=Warnig
| Is This Answer Correct ? | 12 Yes | 8 No |
Answer / pinks
You can use Reporter.ReportEvent to report custom test
steps in QTP's test results tree
Syntax -Reporter.ReportEvent EventStatus, ReportStepName,
Details [, ImageFilePath]
Event Status can have values
0 or micPass sends a pass status to test result window
1 or micFail sends a pass status to test result window
2 or micDone sends a message to test result window without
affecting the Pass/Fail status
3 or micWarning sends a warning message to the result window
| Is This Answer Correct ? | 6 Yes | 3 No |
hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?
how to validate the text in a web table
How to create a cookie using vbscript?
Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji
Which function is used to perform string comparison?
write a vb script to display ***** ***** ***** ***** *****
Explain the string concatenation function in vbscript?
What are the special sub-types in vbscript?
Why is the use of exit do or exit for statements within loops discouraged?
I want to import the sheet from the Excel to the Datatable using VB Script. I used the Syntax as 'Datatable.ImportSheet "Filename","SourceSheet","Destinat ionSheet" Ex: Datatable.ImportSheet "D:\Data1.xls","Sheet1","Global" Qtp producing run time error,How I can solve the problem
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....