QTP Interview Questions

QTP Interview Questions

Q) What is QTP?

QuickTest Professional, it is a Functional and Regression Test Tool.

Q) What is UFT?

Unified Functional Testing, new launch of QTP,
UFT = QTP + Service Tools

Q) What is the major difference between QTP and UFT?
QTP supports GUI Test Automation, where as UFT supports GUI and API Testing.

Q) What is API Testing?

Application Programming Interface Testing

Q) Is API Testing and Unit Testing are same?

No API Testing is different from Unit Testing?

Q) Who is the vendor of QTP Tool?

HP (Hewlett-Packard)

Q) What is Add in?

Add in means Environment compatible files

Q) Is QTP supports Database Testing?
Yes, QTP has integrated SQL engine, we can execute SQL commands from QTP Tool editor?

Q) What is the Scripting Language in QTP? 
VBScript (Microsoft Visual basic Scripting Edition)

Q) What is the purpose VBScript in UFT (formerly QTP) Test Automation?
Using VBScript we can apply programming logic to our tests, in addition we can use all VBScript features in our tests, ex: Variables, constantans, Operators, Conditional statements, Loop statements, Functions (Built-in and User defined), objects etc…

Q) Is QTP Client-Server Application?
NO QTP is I-Tier (Stand-alone) Application, It doesn’t have any Database.

Q) How QTP stores its resources?
QTP stores its resources using file format on Hard disk.

Q) What are the import resources (files) of QTP Tool
•    Shared object repository files (extension .tsr)

•    Function Library files (extension .vbs)

•    Environment variable files (extension .xml)

•    Recovery scenario files (extension .qrs)

Q) How design tests in UFT (formerly QTP)?
In two ways we can generate Tests or Test Scripts in QTP,

1)    Using Object Repository
2)    Using Descriptive Programming (without using object repository)
And QTP supports hybrid approach also for generating tests, means some tests using object repository and some tests using Descriptive programming.

Q) What is Test recording?
During recording QTP generates statements for each and every user operation on AUT (Application Under test), simultaneously stores objects information into Object Repository.

Q) How many record modes available in UFT (formerly QTP)?
Four Recording modes

1)    Normal Recording
2)    Analog Recording
3)    Low level Recording
4)    Insight Recording (newly added in UFT 11.5 version)

Q) What is Normal Recording?
It records user mouse and keyboard (context-sensitive) operations based on objects.

Q) What is Analog Recording?
It records user operations based on either desktop or application window x, y coordinates. User (Tester) can select the option.

Q) What is the default Recording mode in QTP?
Normal Recording

Q) Why Normal Recording is default Recording mode in QTP?

Without selecting Normal Recording mode, we can’t switch to other modes.

Q)  What are Internal Add ins in QTP?
1)    Standard Windows (Built-in Add in)
2)    Activex
3)    Visual Basic
4)    Web

Q) What are the two types of license of QTP?

1)    Seat or Node Locked
2)    Concurrent or Float

Q) is there any Add in for testing Oracle database?
No Add in is required for Database testing using SQL engine QTP supports Database Testing?

Q) What about Oracle Add in?
Oracle Add in for supporting Oracle Apps Applications, not for Oracle RDBMS.

Q) What is the Add in for testing Mainframes Applications?
TE (Terminal Emulators)

Q) How to select appropriate Add ins for testing?
QTP is an object based test tool, based on front-end objects it supports test operations.

We need select Add ins based on UI (User Interface) design technology.

Q) Can we schedule Tests for execution using QTP?

Q) Is QTP support UNIX operating environment?
No, it supports windows operating environment only?

Q) Is LoadRunner support UNIX operating environment?
Yes, LoadRunner has 2 types of license

1)    LoadRunner for Windows
2)    LoadRunner for UNIX

Q) Give a brief idea about UFT (Formerly QTP) IDE?
IDE (Integrated Development environment)

QTP has 3 types of features support

1)    Direct features (means features available in QTP Tool Main window)
Ex: Recording, Step generator, Object Repository, Object Spy, Checkpoints etc…

2)    Integrated Tools from HP
Ex: Password encoder, Test batch Runner, Test Result deletion tool etc…

3)    Integrate Tools from others
VBScript engine, SQL Engine, MS Script debugger

Q) What is Object?
Object is something, which has structure and properties

Q) Give some examples for software objects in windows based Application?
Window, Dialog, Edit box, check box, button, Radio button, Drop down box, List box, Combo box etc…

Q) Give some examples for software objects in web based Application?
Browser, Page, Link, Image, Edit box, check box, button, Radio button, Drop down box, List box, Combo box etc…

Q) We work with four types of Objects in UFT (formerly QTP) Test Automation, what are they?

1)    Run-time objects
2)    Test Objects
3)    Utility Objects
4)    Automation objects

Q) What is Property?

It is an attribute of Object, which describes the Object?

Q) What is method?

An Operation on Object

Q) What is the major challenge in UFT test automation?

Object Identification


Post a Comment