Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to capture screenshots of Exceptions/Errors during run- time?




319
views
asked marvit August 20, 2014 12:32 AM  

How to capture screenshots of Exceptions/Errors during run- time?


           

1 Answers



 
answered By Dharma   0  
we take screen shots of Errors/Exceptions during Runtime by using this optionCaptureBitmap & it is saved "res" folder of the QTP saved file
syntax: object.CaptureBitmap "file_name","option"    
       (1) file_name  i.e  .bmp or .jpg       
       (2) 0 or 1 i.e  to over the present file or notEx: Desktop.CaptureBitmap "example.bmp",
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert