Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Capture screen shot for unexpected Errors.
#5
Solved: 10 Years, 8 Months, 3 Weeks ago
HI,
The method suggested by you to include the screenshot code in the function invoked by recovery scenario is just taking the screenshot of the QTp window without the runtime error window.
I am unable to figure out how to take the screenshot of the runtime error window (thrown due to object identification failing) and save it in a location. I am able to invoke my recovery scenario and call the function (below is the code for the function called by the recovery scenario):

Code:
Function RecoveryFunction1(Object, Method, Arguments, retVal)

path_error_file="C:\automation\qtp_screenshot\screenshot_app.png"
Desktop.CaptureBitmap path_error_file,True
Reporter.ReportEvent micFail,"Recovery scenario invoked","Recovery scenario invoked due to runtime error", path_error_file
End Function


But unfortunately its not takeing the screenshot of the runtime error window.
Can anyone pls help!!!
Thanks
Akankhya
Reply


Messages In This Thread
RE: Capture screen shot for unexpected Errors. - by akankhyap@yahoo.co.in - 01-07-2012, 02:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using QTP to capture screen shot ravi.gajul 12 75,640 08-10-2017, 06:58 AM
Last Post: pauljo.kld@gmail.com
  Test Director Errors Autobot 0 1,697 10-23-2015, 10:21 AM
Last Post: Autobot
  Run time errors in SAP when QTP running dverlaque 3 5,249 07-25-2012, 11:26 AM
Last Post: Ankesh
  Unexpected file Format vinayaksarode 3 6,508 01-30-2012, 09:49 PM
Last Post: ravi.gajul
  Getting unexpected Pop up message while using Datatable.import Punam K 2 3,848 08-20-2011, 08:48 PM
Last Post: Arul

Forum Jump:


Users browsing this thread: 1 Guest(s)