- World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.

Get it now !!
Send your Resume to 6000 Companies
QTP Interview Questions & Answers - Learning Mode

QTP Interview Questions & Answers - Learning Mode

Quick Test Professional (QTP) is an automated functional Graphical User Interface (GUI) testing tool created by the HP subsidiary Mercury Interactive that allows the automation of user actions on a web or client based computer application.

Try QTP Interview Questions & Answers - Exam Mode

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Next

Sort By : Latest First | Oldest First | By Rating

QTP Interview Questions & Answers - Learning Mode
Try QTP Interview Questions & Answers - Exam Mode
Question: Can we call QTP test from another test using scripting.

Suppose there are 4 tests and i want to call these tests in a main script. Is this possible in QTP?

Answer: Yes, we can call Any numbers of Test Scripts from Main Script.

For this, whatever scripts you want to call, you need to make The Actions in those scripts are Re-Usable actions. And then you can give a call to these scripts.

Question: How to create the dynamic object repository in QTP?

Answer: we can catch the dynamic object(which changes its property during run time) .In qtp this object can be catched using smart identification method.

Question: What is action split and the purpose of using this in QTP? Also please explain calling an action. How is this done and why is it done?

Answer: split action is mainly used for re-usability of the application.

action split is nothing but spliting a action in to two parts saperatelly.

on calling an action go 2 call action properties and select call existing action.

for suppose use have save a file in your desktop then this property comes in picture.
Question: Differentiate the two Object Repository Types of QTP.

Answer: In Qtp there are 2 object repositories, they are
1.Shared Object Repository
2.Per Action Mode,
by default it's per action mode.we will use shared OR for calling a particular action,it's like calling external libraries.we will use per action for a particular action ie, for one action only. Source:
Question: How can we generate script for exception handler in QTP?

Please can any one explain script also?

Answer: We can generate the script for exceptions using recovery scenario manager or with in the script as well.
1)using recovery script get the properties of the exception object and add it in the resources by naming the exception. We can create the recovery scenario in the options and add it in the resources of the file menu.when generating the script after the exception comes in type wait() please specify some umber like 10 or any value in() so that it will wait and then add the recovery scenario Source:
Question: How to connect the database through QTP

Answer: if you know the "connection string" of your server and also the username, password and DNS name you can connect to the server.

these details are required at the time of creating the Database check point.

Question: What are advantages and disadvantages between internet explorer and netscape navigator (or) Internet Explorer Vs netscape Navigator

Answer: These two major browsers are coming closer to each other regarding the DHTML effects possible towards newer versions. However you will need to remember that IE is more flexible than Netscape and due to small differences something that works really well in IE might not work at all in Netscape. So you need to be really careful and alert when programming for both browsers. One hint you can follow in most cases is that if you get it working in Netscape it should most probably work in IE.

Anot Source:
Question: How to handle java tree in QTP

Answer: First of all we need to have a java add-in to handle a java tree.In tools option we have the "object identification" drop down list.There we have the java option to recognise the objects there select the tree option.Add the properties to be recognised.Then the QTP will start recognising the tree.

If not use the DOM to detect the tree.Here select code from the back ground and manipulate accordingly.
Question: What are the types of exception handling available in QTP and what is the difference between winrunner and QTP exception handling

Answer: There are four types pop up exception
test run
object state
application crash Source:
Question: Difference Between text and Textarea checkpoints in QTP

Answer: Text checkpoint enables us to check that the textis displayed in a screen , window, or web page , according to specified criteria. it is supported for all environments.

Text area checkpoint enables us to check that a text string appears within a defined areas in windows applications, according to specified criteria. it is supported for standard windows, visual basic and activex environments

Question: How to perform Cross platform testing and Cross browser testing using QTP?Can u explain giving some example?

Answer: Cross Platform Testing:

There is a provision of getting the Operating system in QTP by using the Built in Environment. Eg. Platform = Environment("OS"). Then based on the Platform you need to call the actions which you recorded on that particular platform.

Cross Browser Testing:

First get the type of browser you are using: Eg. Browser("Core Values").GetROProperty("version")

This will give you internet explorer 6 or netscape 5. Based on this value you call the actions Source:
Question: How many maximum actions can be performed in a single test

Answer: You can run any number of actions in your QTP test...However it is not recommended to do the same Source:
Question: What is the best way to do regression testing using QTP.

Answer: Regression testing is not tool dependent.

Firstly there should a regression test stratergy, based on this stratergy you can group functional test cases to form regression test suites.

Then these test suites are automated based on regression group
Question: Which the Object Model the QTP uses for the Object identify of an application ?
Choices are 1.DOM,2.DCOM,3.COM,4.ROM .

Answer: It is Component Object Model (COM).
Question: How many types of recording modes in QTP?describe each type with an example where we use them?

Answer: There are three types of recording modes available in QuickTest Pro.
1.Normal mode
2.Analog mode
3.Low-level recording modeNormal mode:
This is the default mode of recording in QTP ,Object and the Operation associated/performed with Object can be recorded.This mode takes full advantage of QuickTest's test object model,recognizing the objects in AUT regardless of their location on the screen.Analog mode:This mode records exact mouse and keyboard operations you perform in relation Source:
Question: 1. How to open multiple instances of an application from QTP?
2. How to recognize each instance and setting values and triggering events in a particular application?

Answer: Up to my Knowledge we cant open multiple instances at once.


For recognization we must have to add each instance in the repositary.

Question: How to write QTP scripts?
Any related website resource to learn QTP?
What steps the to be follwed to write scipts in QTP?
4. Is their any automation framework?

Answer: 1.First try to record any of the web application like google. So that, you will be understanding the syntax of the the script and try to learn basics of the VB script.<br>2.QTP tutorial is more than enough to learn QTP scripting.<br>3.To write scripts in QTP first we have to build Object Repository. So, first add objects to the object repository, then set the properties for the objects.<br><br>Then write script in QTP depends on your requirements.<br><br>4.F Source:
Question: How to reporting defects

Answer: As you encounter failures in the application when analyzing test results, you will create defect reports in Defect Reporting Tool. Source:
Question: How to write QTP test results to an Excel application,

Please provide the exact code if possible ASAP

Answer: Example

Dim fso, f1
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.CreateTextFile("D: estfile.xls", True)

and Then use If condition's

to store the results

If Browser("abc").Page("xyz").Exist Then
f1.writeline("Step1 Login details is pass")
f1.writeline("Step1 Login details is Fail")
End If
Question: How database testing is done using manual testing i.e., without using any automation tools

Answer: To do database testing manually means doing it at the backend using sql (or any query language)statements directly on the tables and retreiving the data, this is my view if i am wrong then anybody is free to correct it.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Next

India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.046875 Seconds