:: 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                      
Categories >> Software >> Scripts >> VB Script


 PHP interview questions  PHP Interview Questions (659)
 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)
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  
# 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.

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.

The following examples use the ReportEvent method to report
a failed step.

Reporter.ReportEvent 1, "Custom Step", "The user-defined
step failed."


Reporter.ReportEvent micFail, "Custom Step", "The user-
defined step failed."
Is This Answer Correct ?    63 Yes 6 No
Chinmaya Khatua
# 2
By using this method we can report the user defined results in results window.

Reporter.ReportEvent Status,StepName,Description,Bmpfile
Is This Answer Correct ?    7 Yes 1 No
# 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."

Is This Answer Correct ?    9 Yes 5 No
# 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

Other VB Script Interview Questions
  Question Asked @ Answers
write a vb script to generate fibonnaci numbers   1
write a vb script to generate hello 5 times using do until loop   2
What is the use of "Option Explicit"?   2
Input = 124 output should be 124421 Please do not use any string functions/variables Cap-Gemini 6
How to write Descriptive programming in .VBS file i wrote this code but it is giving error.. Dim qtApp set qtApp=createobject("QuickTest.Application") qtApp.Launch qtApp.Visible=True Set objIE = CreateObject("InternetExplorer.Application") objIE.visible = True objIE.Navigate "" browser("title:=gmail").title("title:=gmail")   2
How to return a value from function...? you should not tell msgbox, print.. etc.,   5
How to write functional test cases for send button in gmail. Arctern 1
What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>   1
Why to add checkpoint in QTP What's the purpose of checkpoints & how to add it   2
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30   1
Hi, can any one tell this Actually I AM NEW TO QTP I have one qtp script in which it calls the vbs file during it's run TIME by using the ExecuteFile "absolute path" If the vbs file is executed seperately it will give the output in a msgbox In the same way if qtp script is executed the result will be displayed in w result window right? Now the question is how to get that vbs file output in the qtp result window when I run the qtp script which calls the vbsfile during it's run TIME   1
For more VB Script Interview Questions Click Here 

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