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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 screenshots of Exceptions/Errors during run-
time?
 Question Submitted By :: Srikanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 1
when ever error occurs ,take a snap shot that window by 
pressing the "PRINT SCREEN" button in the keyboard and 
paste the sanpshot on MS-Paint and save that in a file and 
send it where ever u required
 
Is This Answer Correct ?    0 Yes 1 No
Sridhar Reddy
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 2
Thanks Sridhar,

But im asking in QTP through script without tester 
interaction
 
Is This Answer Correct ?    0 Yes 0 No
Srikanth
 
 
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 3
Hey I don't think that it is possible.
After all QTP is automation tool...it doesn't think like 
human brain...you have to feed it all the scenarios,then 
only it will follow the instructions.

Go to Tools>Recovery scenario manager : here you can give 
the instructions to QPT to respond to errors.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 4
as for my knowldge there are no functions to capture them. 
But one thing we can do that we can capture the scenario-
description and log them using recovery scenario functions 
available.
 
Is This Answer Correct ?    0 Yes 1 No
Siva Reddy (us)
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 5
if you QTP is associated with Quality Center then it will 
take the screen shot automatically by setting an option in 
the settings/run... but I am also looking for with out 
Quality center I have come across with an option in 
checkpoints properties to capture the screen Image... I am 
doing some sort of research once I get thru it I will 
definetly let you guys know..
 
Is This Answer Correct ?    0 Yes 0 No
Giridhar Reddy
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 6
YOU CHECK IN RESULT OF YOU QTP SCREEN SHOT IS THERE
 
Is This Answer Correct ?    0 Yes 0 No
Mangesh
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 7
There will be a syntax in QTP for capturing
the Exceptions in Runtime by
if (error occurs...) then
capturebitmapimage("c:\....")
end if
 
Is This Answer Correct ?    0 Yes 0 No
Anil
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 8
By using object.capturebitmap("c:\snap.bmp")
we can capture the screenshots of any screen at runtime.
 
Is This Answer Correct ?    0 Yes 0 No
Arunsingh
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 9
When error occurs you can take screenshot of the desktop 
and send the bitmap to result file.

if error occurs then

Desktop.CaptureBitmap("c:\bitmap.bmp")

Reporter.ReportEvent micFail, "Error Name", "&lt;<img 
src="c:\bitmap.bmp>"

end if

The above code will send the screen shot to the Result File.
 
Is This Answer Correct ?    0 Yes 0 No
Ravi_kanakam
 
  Re: How to capture screenshots of Exceptions/Errors during run- time?
Answer
# 10
Hello,

In QTP8.2, we can choose the run setting:
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"
 
Is This Answer Correct ?    0 Yes 0 No
Julia
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
what's the difference in between function and sub and give some code as well Patni1
How u perform exception handling in QTp,what is other name for ths Lehman-Brothers1
How to identify flash application when the qtp is not identifying the flash application objects.  2
What is BPT?  2
how to create the varibles and how these are connect to qtp? plz tell me  2
Does QTP provides any tools for parametarization? BirlaSoft2
How to handle the exceptions using recovery secnario manager in Qtp?  2
Where should we turn Smart Identification ON in QTP?  4
What r the diffrernt file extentions in QTP?  1
How to do excception handling ( error handling ) in QTP Institute-for-Medical-Education5
Give a comment on Regular Expressions using QTP?  3
What is iteration? How it is related to Test Results in QTP Virinchi-Technologies2
Does we use Classes and methods in realtime..?How wud we access methods in a class..?Thanq Guys..!  1
Explain abt the File System Object in QTP with ex Ordain-Solutions3
hi is there any chance to change encoding the password  3
Is it possible for QTP to capture the objects in word document.If so please give me the code.Thank you.  1
Explain the concept of how QTP identifies object. Ordain-Solutions2
what is the use of VIRTUAL OBJECTS? explain ? TCS5
How can we QTP Scripts in xml format? is there any way to do so? Apex2
I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded? Syntel3
 
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