ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Scripts >> VB Script
 
 


 

 
 PHP interview questions  PHP Interview Questions (658)
 ASP interview questions  ASP Interview Questions (251)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (174)
 VB Script interview questions  VB Script Interview Questions (342)
 JSP interview questions  JSP Interview Questions (100)
 Shell Script interview questions  Shell Script Interview Questions (158)
 Python interview questions  Python Interview Questions (5)
 Tcl interview questions  Tcl Interview Questions (19)
 Awk interview questions  Awk Interview Questions (6)
 AJAX interview questions  AJAX Interview Questions (24)
 Ruby on Rails interview questions  Ruby on Rails Interview Questions (21)
 Scripts AllOther interview questions  Scripts AllOther Interview Questions (48)
Question
what is the purpose of the Reporter.ReportEvent in QTP and 
also please give the brief description about 
Reporter.ReportEvent ?
 Question Submitted By :: VB-Script
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
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 ?    61 Yes 6 No
Chinmaya Khatua
 
Answer
# 2
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 ?    7 Yes 1 No
Mady
 
 
 
Answer
# 3
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 ?    9 Yes 5 No
Navin.k
 
Answer
# 4
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 ?    4 Yes 1 No
Pinks
 

 
 
 
Other VB Script Interview Questions
 
  Question Asked @ Answers
 
How to get path of the file through scripting? Hexaware 1
How to find a latest file from any folder Ness-Technologies 3
explain with example primitive data types of vb script.   1
Diff between web table ,datatable and data base (QTP) TCS 2
can u test the application without add-in?   1
Plz give the vb script for the following scenerio. In travel booking we have to select from delhi to mumbai from the combobox The prices will be display in another combo box .But i have to select the lowest price for it and submit it IBM 1
write a vb script to add two 2*2 matrix   2
How to remove the spaces in a string Ex: "Welcome to QTPWorld" ? Cap-Gemini 7
how to write code: to check whether the window of an Application Under Test exist or not . plz give with example   2
w r p syed then output was deys and click eysd and click ysde and click sdey and click deys and click eysd............ Igate 1
How to get 120 using 5 zeroes, you can use any operator(+, *, /...) in qtp. Cognizent 2
I have a webtable and many objects are embedded in side.(like buttons,checkboxes etc). How to know how many such objects are there? what is the class of that objects? TCS 1
 
For more VB Script Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com