How to improve Debug engine capabilities of QTP






If you want to earn from reading mails, Click Here

Yes, You can improve the debug engine capabilities of QTP with an installation of Visual Studio 2008. Surprise for you!!! Let us see how we can improve it. But Do we need to compromise with the test machine by installing VS.Absoutely NO!!! NO!!! NO!!!. Only with the installation of small DLL called PDM.DLL

Let us see how can we do it :

Step 1 : get the DLL first by downloading VS2008 from Microsoft(click here to get VS) or else google it and get it installed.Hope you installed it successfully.

WOW !!! Congrats!! We have completed most important task.Let us move forward

Step 2 : copy the DLL and paste it in "C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG" (make sure of back up of original DLL .Always it is a best practice)

Step3: Go to Run from start menu and type cmd

and run the follwoing command : RegSVR32 C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\pdm.dll

Step 4 : Now Restart the Machine . You will see the upgradation of Debugging capabilities of QTP.
hey !!! Now QTP scrpting is easy with this right...

So this explains withput compromising the efficieny of test machine , we enhanced one built in functionality of QTP.
Note here We are not installing entire VS.but only a tiny DLL.

Now Your may ask, Mr., How can I use this. let us see how can we put in practise.

When you add a watch to an object in QTP,, it will display as "", with out any more description. in some cases, it will display '+' sign which exposes the properties of the object.

as an example, you can see here .


in above image, the oDic object has + sign with the related properties and its values
but remember if you write a script for oDic object , it has many items like Add,Remove which are not shown by QTP with out installation of VS DLL.

You can see them after installation of VS DLL as in below image:


Now Debug mode shows unseen properties of oDic object.

Now Let us see for any web application how the debug view appears after DLL installation.


See the improvement in debug view of the QTP. Similarly You watch the new Reporter Object view after installation:


Still I would like to stress there are some things remain same in case of environment objects and some .NET forms.Still you can use it in your projects for improvements.

Dear Reader, Do you have any questions or comments on this, Please let us know to improve further.







Comments :

0 comments to “ How to improve Debug engine capabilities of QTP ”

Post a Comment