How to capture screen shots when an error occurs?

Answer Posted / poonam

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

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.

1522


Without using gui map editor we can recognize the application in winrunner ?

594


what is the advantages and disadvantages of using functions instead of re usable actions

1418


How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?

3041


Thanks....But can u tell me how i use the QTP for GIS with one Example...

1418






What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2256


Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?

1511


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1292


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1632


What is regular expression?

569


How to start recording using quicktest professional?

596


give me the code to save all messages of inbox of gmail into a folder and notepad

1609


how can i pass a "cript"as a parameter in to a function

1451


How are actions and functions different in QTP?

645


is it possible to add sheets to excel at runtime

3224