A valid QTP license or in the case of a learner a trial version on their computer.
QTP Download: Here is a link to download the QTP trial version:
In the above link, go to the ‘Trials and Demos’ tab and select the ‘Micro Focus QTP Essentials 11.0 English Evaluation (web GUI Testing only) option’. You can also select the latest version Micro Focus Unified Functional Testing 11.50 CC English SW E-Media Evaluation. Let us know if you want more detailed instructions on downloading and installing QTP trial version on your machine.
There are two kinds of licenses – Seat license and concurrent/floating license. Seat license is for a single machine at one time whereas a current license is for a particular number of concurrent users.
Now that we have some background information about QTP, let’s examine the tool itself starting with the UI.
QTP GUI:
When a test is recorded or created it can be viewed in one of these two views:
- Keyword view: This view is a tabular representation of all the objects and the actions that are performed on them. Every row in the table is a step performed on the AUT and can be modified. Some of the most common columns displayed are the item, operation, value, and documentation.
- Expert view: As the name indicates, this view is for more technical users who would want to tweak the source code as per their requirements.
Both the views are available simultaneously so the user can switch between them anytime during the test creation or modification.
Let’s record a little something to get started
Step #1): Launch QTP. The first thing that comes up is an Add-in manager. It displays all the add-ins that are available and the user can check or uncheck the ones as needed. Active-X, Web and Visual Basic are available by default. (This feature can be turned off if required).
Step #2) On Clicking OK in the Add-in Manager QTP start page comes up. (click on image to enlarge)
Step #3) On choosing the “Record” option (F3 key) the ‘Record and Run settings’ screen comes up with ‘Web’ and ‘Windows Application’ Tabs. Click OK without changing any settings. However, all the features of this screen will be discussed at length later on.
Step #4) For our example, I am going to launch the ‘Flight’ application from the samples that come with QTP. I am going to enter the ‘Agent Name’ and ‘Password’ in the Login screen. Now, let’s examine the code it generates.
The following is the keyword view. As you can see, the actions are in the form of a table with columns: Item, Operation, Value, and Documentation. Item corresponds to the object in the AUT on which we performed an action, the operation is the action itself, value is a data we set the particular object to and documentation is more or less like a description. (click on image to enlarge)
The corresponding keyword view of the same test is as follows. As you can see this view contains the source code for all the actions performed.
Step #5) The code can be manipulated from either of these view