How we can capture Image in QTP for failed Step
Question ID: 104178
0
0

How we can capture Image in QTP for failed Step

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on August 5, 2010 12:17 pm
60 views
Answers (1)
1
Private answer

I would recommend setting up a Recovery Scenario and then have a function capture bitmap of the whole screen.

For example:


 

Function RecoveryFuncLostLink(Object, Method, Arguments, retVal)  

  Window(''text:=Program Manager'').CaptureBitmap ''C:snapshot.bmp'',True  
  Reporter.ReportEvent micFail, ''SnapShot'', ''<>''  

End Function 

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on August 6, 2010 8:01 pm
0
For the whole screen it would be: Desktop.CaptureBitmap ''C:\snapshot.bmp''
( at January 6, 2011 5:06 am)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top