1)How to capture screen shots of Errors/Exceptions during Runtime?2).In which folder the snapshots are stored in QTP?3).Wat is the use of Accessbility Checkpoint A).To check access to the files B).To check tool tips c).To check the links D). To check the database.4).Does QTP supports Unix Environment?5).Which object model doesnt supported by QTP?a)DOM b)DECOM c).COM d).DCOM6).Wat are the maximum actions we can create in QTP?a)255 b)256 c)No Limit

Questions by muralisqa   answers by muralisqa

Showing Answers 1 - 8 of 8 Answers

KodumuruRamesh

  • Oct 15th, 2006
 

hi,

     we take screen shots of Errors/Exceptions during Runtime by using this option

CaptureBitmap & 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 not

Ex: Desktop.CaptureBitmap "ramesh.bmp",1

For more informatio contact me on

kodumururamesh@yahoo.co.in

or call on +919441014057

  Was this answer useful?  Yes

kavitha

  • Oct 23rd, 2006
 

hi.....can u plz tell me where is the capture option available & in syntax in what basis v have to mention 0/1

  Was this answer useful?  Yes

Ashish Nainwal

  • Nov 13th, 2006
 

Hi Ramesh,

Can you please elaborate your answer. I have used following piece of VBScript code-

Dialog("Login").WinEdit("Agent Name:").Set "ashish"
Dialog("Login").WinEdit("Password:").SetSecure "455943ebe415becfff154afc8d4530221460"
Dialog("Login").WinButton("OK").Click
Desktop.CaptureBitmap "ramesh.bmp",1
Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click


Per your justification, it should save a bitmap on desktop.

Thanks

Ashish

  Was this answer useful?  Yes

Ahalya

  • Nov 17th, 2006
 

Hi,

Accessability CheckPoints are used to check whether the WebPage is satisfing the W3C (World Wide Web Construction) compliance. This CheckPoint can only be used for wed pages.

There is no limitation for creating Maximum no.of actions in QTP. But recommanded Max limit is 255. If more than this count the actions are created then the performance of the script my decrease.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions