Basic knowledge required to work on QTP/UFT projects

Basic knowledge required to work on QTP/UFT projects

1.    Basic programming knowledge on VB scripting – just to modify the recorded scripts. QTP/UFT allows record/play back, using that application transactions can be recorded and later modified based on requirements. Need to learn usage of functions. Instead of functions, QTP/UFT inbuilt feature “reusable” actions can be used.

2.    Looping and Parameterization – Parameterization is required to change the already recorded data. Basically the user id, password, input values to be entered in the AUT. To repeat a transaction, looping is used. For looping “For-Next” , “Do-while” etc are used

3.    Object Spy & Object Repository– QTP developer can view the run-time/Application object properties and methods of any object in the application. This is helpful during debug mode and find out Dynamic objects. Object Repository is the place where recorded objects are stored by displaying the object properties and values. QTP developer can do some changes on values – using regular expression as an example to handle Dynamic objects.

4.    Import / Export data sheet – This is used for very basic reporting where coding is done to store AUT values, some error validations and input values in QTP datasheet or already imported spreadsheet.

1.       What is action in QTP and what are the types

Action are set of scripts logically divided, which makes the scripts more reusable and understandable. Types of actions are,

1)      Non reusable action – this scripts cannot reused or called to some other scripts.

2)      RE- usable action – this scripts can be reused and called to some other scripts.

2.       What is QTP Repositories and their types

QTP stores objects of the AUT – application under test while recording. Also manually can be added to QTP object repository. Types of object repositories are,

1)      Per action type – which cannot be shared or its local level by usage.

2)      Shared object repository – which can be shared and it is global level by usage.