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



what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description ..

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

what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description ..

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

what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description ..

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

what is the purpose of the Reporter.ReportEvent in QTP and also please give the brief description ..

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

Post New Answer

More VB Script Interview Questions

How to write functional test cases for send button in gmail.

2 Answers   Arctern,


What are lbound and ubound in the vbscript language?

0 Answers  


How will you get the last occurrence of one string within another string using vbscript?

0 Answers  


How to create pull down menu box using vb script

0 Answers  


Hello All, In QTP 9.2 for Mozilla Firefox, there is webelement in my application, I tried to click on that using decsriptive programming, but it does not work. and for this i tried this code too: Set obj = CreateObject ("Mercury.DeviceReplay") absx = Browser("").Page("").WebElement(".").GetROProperty ("abs_x") absy = Browser("").Page("").WebElement(".").GetROProperty ("abs_y") obj.MouseMove absx, absy obj.MouseClick absx, absy, 0 But it is not clicked. Can anyone help me out for this problem. Thnx in Advance

1 Answers  






What is variant in vb script?

0 Answers  


Can automation testing find ssame no. of bugs what we can find by manual testing?

0 Answers  


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

0 Answers  


What is vbscript?

0 Answers  


How to open excel in vb script?

0 Answers  


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

1 Answers  


Which date function is used in the vbscript language to find the difference between the 2 dates?

0 Answers  


Categories