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 (660)
 ASP interview questions  ASP Interview Questions (252)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (176)
 VB Script interview questions  VB Script Interview Questions (343)
 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 ?    65 Yes 7 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 2 No
Pinks
 

 
 
 
Other VB Script Interview Questions
 
  Question Asked @ Answers
 
a;;b;c;;;d in this string output is abcd will come how can we do that in vbscript in QTP testing?   2
what is descriptive programming in QTP and what is environment variable in QTP? where we store and what is its use? Perot-Systems 4
What is a difference between scripting language and programming language?   1
Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)   2
write a qtp script to count the number of minimized windows   1
how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me TCS 3
Explain the difference between POST and GET Method.   1
Hi, Anybody could tell me What is the script for Reverse of Given number. Ex:236--632. Thanks in Advance.. Amazon 9
Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?   2
how to declare a variable in vbscript using vbscript   4
who you define variables and functions in VB?   1
what is the function to get the ascii value of the character? Netxcell 6
 
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