QTP Interview Questions and Answers
QTP Interview Questions and answers for beginners and experts. List of frequently asked QTP Interview Questions with answers by Besant Technologies. We hope these QTP Interview Questions and answers are useful and will help you to get the best job in the networking industry. This QTP Interview Questions and answers are prepared by QTP Professionals based on MNC Companies expectation. Stay tuned we will update New QTP Interview questions with Answers Frequently. If you want to learn Practical QTP Training then please go through this QTP Training in Chennai
Best QTP Interview Questions and answers
Besant Technologies supports the students by providing QTP Interview Questions and answers for the job placements and job purposes.QTP is the leading important course in the present situation because more job openings and the high salary pay for this QTP and more related jobs. We provide QTP online training also for all students around the world through the Gangboard medium. These are top QTP Interview Questions and answers, prepared by our institute experienced trainers.
QTP Interview Questions and answers for the job placements
Here is the list of most frequently asked QTP Interview Questions and answers in technical interviews. These questions and answers are suitable for both freshers and experienced professionals at any level. The questions are for intermediate to somewhat advanced QTP professionals, but even if you are just a beginner or fresher you should be able to understand the answers and explanations here we give.
UFT = QTP + Service Tools.
HP Unified Functional Testing is a Functional and Regression Test Tool, upgraded version of QTP Tool.
QTP QuickTest Professional is a supports GUI Windows and Web based Testing only, but UFT Supports GUI and API Testing.
Computer/Processor: Pentium IV or higher microprocessor (minimum 1 GHz)
Operating System: Windows 7 and higher
Ram: Minimum of 1GB when no more than three add-ins are loaded simultaneously an additional 1 GB of free disk space on the system disk.
Free Hard Disk Space: 1 GB of free disk space for application files and folders an additional 120 MB of free disk space on the system disk .
- Visual Basics
Get Environment details of application from Dev team based on UI get the addins
Ex : For SAP application need SAP Addin
- Seat Licence
- Concurrent Licence
They are UFT reserved objects used for Testing and Result Reporting
Definition Virtual object is an object that is recognized by QTP as non-standard but is instructed explicitly by the tester to behave like a standard object.
Default Synchronization Time is 20 seconds(Window) and 60 seconds(Web). But Tester can change it.
No, UFT works in Windows only
Yes, Using File system Object
- Shared object repositories in UFT,
- By Adding Objects
- By Exporting Local objects
Browser, Page, Image, Link, Edit box, text box, check box, List box, Drop down box, Combo box, Button, Radio button etc…
Based on its properties
While devloping the application developer will assign the id to uniqly identify the object, which is called Relative ID.
Yes, SAP add in need to be selected
Using Object Spy
OR stores the Objects and it will use to identify object in AUT. In Desc programming we will not use OR
Without using OR, based on properties in the coding it self, we will identify the object.
Window, Dialog box, Edit box, text box, check box, List box, Drop down box, Combo box, Button, Radio button etc…
User defined objects used to work with Drives, Folders and Files.
- Default Recording
- Low level recording
- Analog recording mode
- UI recording mode(New)
Yes, through utility object CreateObject(“Excell.Application”)
Function : Execute sequence of code and should return a Value
Action : Execute sequence of code and not mandatory to return a Value
We have 3 levels of Solutions:
- Tool Level solutions:
- Object Identification configuration.
- Use Low level and Insight Record modes.
- Use virtual object configuration.
- Organization level solution:
- Ask development team to provide properties information for unrecognized objects.
- Vendor level solution:
Raise ticket to vendor.
QTP Script File – .mts
Batch test File – .mtb
Environmental Variable File – .txt , .ini , .xml.
Input/Output Data (Datatable) – .xls
Recovery Scenario Files – .qrs
Library Files – .vbs , .qfl , .txt
Object repository (Shared) – .tsr
Object repository (Per Action/Local) – .mtr
Action File – .mst
Virtual Object Collection – .vot
– It records exact keyboard operations on an object and records exact coordinates of all mouse movements
Data folder inside of the QTP installation directory
Local Data Sheet, Local OR, Folder
function returns a value; a subroutine cannot
Prepare, Create, Verify & Enhance, Integrate
Retrieves the value of property from the test object
Array is a collection of data and different types of data type.
It stores 4 values.
Assigning values to the array:
arrayvalue (0) = 1
arrayvalue (1) = 2
arrayvalue (2) = 3
arrayvalue (3) = 4
Q43.) All characters from a string below are the code snippet which extracts all characters from a string?
a = “QAInsights”
l = Len(a)
For i = 1 to l
b = mid(a,i,1)
File extension of
Per test object rep: filename.mtr
Shared Object rep: filename.tsr
Code file extension id: script.mts
Getting files from ftp server is easy task.
You have to the below code to launch command prompt with all ftp commands in it.
Common ftp command are –
get – to download the single file from ftp server.
mget – to download multiple files from server
put – to store single file on server
mput – to store multiple files on server
delete – to delete files on ftp server
The code below can be used to read data from database in QTP.
Set db = createobject(“ADODB.Connection”)
db.Open “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\priy\vb6\admission_project.mdb;Persist Security Info=False”
Set rst = createobject(“ADODB.Recordset”)
rst.Open “select * from Course “, db,3
id = rst.RecordCount
For i=0 to id-1
print rst.fields(0) & rst.fields(1) & rst.fields(2) & rst.fields(3)
The prevent from system getting locked, you can use any of the 2 ways mentioned below
create a simple vbs file containing code to press numlock key andrun that vbs file
Or YOU can edit one registry key
DisableLockWorkstation = 1 to disable locking