This is an article from Naveen Nischal, India. He will discuss a quick but important tip which can potentially save a lot of documentation time.

Say you want to include a piece of text every time you insert a new action. This piece of text can be some VBScript statements or a part of documentation information like date when the test was created, variables that are used by the test, change history to maintain log of all the changes etc. Something like what is shown in image below:


QTP does not provide any out-of-the-box way to include a piece of text -template- in every new action.  However there is a roundabout way of doing this. We will call it as Action Template.

  1. Go to <dat> folder inside QuickTest Professional installation <UFT installation>\dat folder.  Normally it can be found under C:Program Files\Mercury Interactive\QuickTest Professional\dat for versions of QTP below 11 and under C:Program Files\HP\Unified Functional Testing\dat for UFT 11.0 or above.
  2. Inside <dat> folder create a file by the name ActionTemplate.mst Open it in notepad and include the information you would like to see whenever a new action is created.
  3. Done. Insert a new action in QTP and see it working!

Thanks Naveen. I’m sure our blog readers will like this tip.

Like Naveen, If you also want to share any QTP tips with the QTP community, do let me know through the contact form.

If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by Email and have new UFT articles sent directly to your inbox.

Subscribe to get free updates on UFT!

LearnQTP is the most popular site on UFT (formerly QTP).

Enter your first name and email address below to instantly subscribe and download an eBook on Optimizing UFT Scripts. In future, we will make sure you get new tips & tricks on UFT delivered direct to your email box.

Please check your email and confirm free subscription!