How to capture screen shots when an error occurs?

Answers were Sorted based on User's Feedback



How to capture screen shots when an error occurs?..

Answer / poonam

Browser("browser_name").Page("page_name").CaptureBitmap
"C:\snap.bmp"

Is This Answer Correct ?    3 Yes 0 No

How to capture screen shots when an error occurs?..

Answer / jayadev acharam

If(----------) Then 'Error Occurs
Browser("abcd").micType micALT+micPRTSCR

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

cud anybody please tell me the full form's of the extention files that we use in real time---.tsr,.mtr,.qrs

7 Answers   Symphony,


what is standalone database

1 Answers   Wipro,


describe common problems of test automation?

3 Answers  


what is main difference between QTP 8.2 AND QTP 9.0/9.2 HOME PAGE?i mean what are extra thing in QTP 9.0 than in QTP 8.2?

1 Answers   Infosys,


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

0 Answers  






write a script to close all open browser in qtp except one browser whose name is xyz

6 Answers   Cap Gemini,


what is test scheduleling?

0 Answers   IBM,


Hi How to retrieve data from web element line by line?

0 Answers  


What is wrong in my code?

3 Answers  


Do we have to Enable Smart Identification while running Or will it automatically be enabled ?

2 Answers  


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

0 Answers  


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

0 Answers   Livetek,


Categories