Wednesday, July 30, 2014

Associating Function Libraries with QTP Actions and the different ways to do it.


What is Associating Function Libraries ?

Associating means a way of connecting Function Libraries with the QTP Actions.

Why should we Associate Function Libraries ?

Normally while we write code , we could also write it in Actions , but it is best practise to write it in Function Libraries as we can Load it whenever necessary or Unload it whenever we want , but this cannot be done in Actions

Because , a single action can contain n number of Function Libraries associated with it , but Action will be only 1.

Ways to Associate/Disassociate Function Libraries
There are 2 ways

Other than Runtime:
1) Right clicking in Function Library Tab
2) File Settings

At Runtime:
1) LoadFunctionLibrary

Lets see in detail with screenshots

1) Right clicking in Function Library Tab



2) File Settings



At Runtime:
1) Using LoadFunctionLibrary Keyword in Action









Tuesday, July 22, 2014

Menubar functionality in QTP- HP UFT 11.53 to be exact

Let us see some of the Menubar functionalities in QTP ,HP UFT 11.53 to be exact.Many of the QTP enthusiasts and learners focus on concepts , but also learning these concepts make you a more indepth learned person in QTP.

These are the functionalities in EDIT Menubar, maybe if you are new to QTP and VBScripting you can learn the syntax of VBScript using this.



If i click on If...Then , i would be getting something like this...



Edit ->Format , all the formatting options and its shortcuts would be displayed.


Now , coming to the Record Menubar , you will find the usual  recording options and also an additional recording option in UFT 11.5 called as the "Insight Recording".



Options in Run Menubar.



Options in View Menubar


Thursday, July 17, 2014

Exporting and Importing Test using QTP/UFT

Now , let us see how we can Export or Import Tests using QTP/UFT.At times , maybe the Client may ask you to share the Test that you have created or you need to share the entire Script in other machine.Well ,you can share the codes by pasting it in a notepad , but what about the Object Repository and other stuffs.

Hmm , even if you give them your files , again he need to copy those and paste it in QTP.If its less then its ok , but when the data is large , this is not a easy task.

Therefore , we can use the QTP inbuilt mechanism to Export the Entire Test.Basically what this does is , its packs all the Test folder and its neccesery packages and Zips it into a Zip Folder, which you can send it to the person required.

After extracting the Zip file , the folder would contain Action0,Action1 Folders and Watches (no no not the watch in your wrist,but QTP watches) and other packages for smooth running.

Below are the steps for Exporting a Test.

QTP ->File -> Export Test












Let us see about Importing Test in next post.

Wednesday, July 16, 2014

Addins In UFT 11.53

Addins In UFT 11.53


Hey Guys , Here are some of the addins that would be default in QTP / UFT .These could be a interview question in some of the companies.

I am attaching the screenshot.



Suppose, if you need to associate or disassociate Addins to your QTP Test , you can do it in two ways.

1) At QTP Startup.
2) QTP-> File Settings

The first one everyone knows.So lets see how to do the second one.

1) Go to QTP File-> Settings




2)Click on Modify





3) Select or disselect the Addins you may need for your Project.




Introduction to this qtpmasters Blog

Hi Guys, This is a Blog to learn and understand QTP and VBScripting in a easy way , the way of teaching would be like 1 on 1 manner.Please hare your comments if you have any doubts and any improvments that could be done.