ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How to capture screen shots when an error occurs?
 Question Submitted By :: Arpillai
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to capture screen shots when an error occurs?
Answer
# 1
Objectheirarchy.CaptureBitmap "path"

for ex 

to capture any window 

Window("Flight Reservation").CaptureBitmap "C:\pic1.bmp"

to capture combo box(tool) 

Window("Flight Reservation").WinComboBox("Fly 
From:").CaptureBitmap "C:\pic2.bmp"

This is used in QTP.

www.funandknowledge.blogspot.com
 
Is This Answer Correct ?    0 Yes 0 No
Lak
 
  Re: How to capture screen shots when an error occurs?
Answer
# 2
i am unable to understand can you explain in detail
 
Is This Answer Correct ?    0 Yes 0 No
Laxmi
 
 
 
  Re: How to capture screen shots when an error occurs?
Answer
# 3
Hi use RecoveryFunction to capture the image when error 
ocours.

Step1: Create a VBS file using following founction
Function RecoveryFunction1(Object, Method, Arguments, 
retVal)
 
   'Find the Test Folder Path
	Set qtApp = CreateObject("QuickTest.Application") 
	testpath = qtApp.Folders.item(1)
    'stores the image inside the test folder   
   image_name= testpath &"\imagename.png"
   Desktop.CaptureBitmap image_name
End Function 

Step2: Go to Recovery manager
step3: select "On Any error" or select u r own option
Step4: select function to call
step5: call the above mentioned file

Rest QTP will do it for you
 
Is This Answer Correct ?    0 Yes 0 No
Deepak K
 
  Re: How to capture screen shots when an error occurs?
Answer
# 4
In QTP8.2, we can choose the run settings
Test -> settings -> Run tab -> set ON save image of desktop
when error occurs checkbox

In QTP 9.2, follow the below navigation:
Tools -> Options -> Run tab -> In the drop down list box "On
Error"(default) is selected for "Save step  screen capture
to results"

And even we can also configure, whether we have to proceed
to next step or stop the test execution by following below
navigation:
File Menu -> Settings -> Run Tab -> Choose the required
action from the "Whenever an error occurs during run
session" drop down list box.
 
Is This Answer Correct ?    0 Yes 0 No
Uday Kumar_anem
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?  9
I would like to do some certifications in QTP. please suggese what kind of certifications can i do. I am currently put up at chennai. So please suggest some reputed centres where these courses are offered.  1
Pls explain me the difference between ........ Description.Create and CreateObject  1
what is the Command used to start the QTp from Run.(start-> Run) GE4
hi. I Am working in Small IT company as Test Engineer. But am looking for change. I have 2+yrs experience, but my problem is MCA 72%, remaining all are Second Division. plz give solution for my problem.am elgible for MNC's or not. if not plz give suggestion............ already i forwarded my resume to lot of MNC's but. I didn,t get CAL............ plz give any suggestion.  2
in flight reservation ex once u login, u go into next window where we hav an option of new, open and help etc.. how to fetch those options and to go to respectiv tab accordingly using qtp.. plz let me knw answer for tis as early as possible. Thanks in advance... asha  1
Can abody explain me Send keys concept Cap-Gemini1
Actually what is Quality center..is it Test Director or some other tool..Anybody can expalain it in detail..Thanks in advance.. Sony3
If you have given 1000 manual test scripts, what test you will do? and how?  2
how can we call an external library file in QTP apart from using the Executefile statement..?? is there any other way we can call the external library file in QTP..?? DST-Global-Solutions1
How to get line numbers in your editor in expert view?  2
What is the difference between Image Checkpoint and Bitmap Checkpoint?  4
What scripting language QTP of?  3
does qtp need record and playback in realtime. plz tell exactly wat happens HP3
Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.  1
DEFECT LIFE CYCLE,WHO PUT THE STATUS AS OPEN IGT3
how to add run-time parameter to a datasheet? Ordain-Solutions1
How do u write regular expression for a window name which is changing for each build ? i.e. in first build the window name is : "computer graphics are very ...." . in second build the window name is : "computer graphics can be created" . - Appreciate proper replies Semantic-Space3
Does QTP recognize two diff browser's at a time..?if possible how..? Is it possible run scripts on Mozilla which are recorded on IE..?..How..? Semantic-Space9
what is the Descriptive Progarmming? how it is help to testers in QTP? TCS3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com