- 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 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: 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: 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 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.
Question: How can QTP understand virtual objects
and can it reusable

Answer: Actually in QTP we have an option called virtual object manager , by this we can map the objects (virtual objects) and assign the coordiantes to them and by this we can make it as a standard object. Source:
Question: Discuss QTP Environment.

Answer: QuickTest Pro environment using the graphical interface and ActiveScreen technologies - A testing process for creating test scripts, relating manual test requirements to automated verification features - Data driving to use several sets of data using one test script. Source:
Question: I am trying to use a template file (containing reference to settings file, comments etc..,). I have created 'ActionTemplate.mst' in the 'dat' folder .But when I open a new test file the template is not created.
Please help.

Answer: 1.)Open a text file

2.).type the contents what u need

3.)save it as ActionTemplate.mst"

4.)Choose Encoding as "UniCode" (if u don't select this UniCode ur file is not saved as .mst fle)

This is the reason why ur not able to access the template


What is the process for creating an automated test script using QTP assuming you have reviewed the manual test case and understand the requirements?

Answer: u have asked a very big question in a single line ...... transfering ur testing from Manual to Automation depends upon lot of factors.Depending upon these factors u decide the 'Framework'. Framework is nothing but the approach by which u implement QTP to ur project.There are various type of framework avilable....Data, Library, Keyword Driven to name few...
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: Can any one pls tell me about
how to configure the environment variables in qtp and how to use the variables, with example:

Answer: Setting the Environment Variable


Retriving the Environment Variable

Question: What is the extension for QTP Script file?
Is there any extension at all?

Answer: The Extension of code file is .mts
Question: What is the Diff between Image check-point and Bit map Check point?

Answer: Image checkpoints enable you to check the properties of a Web image. You can check an area of a Web page or application as a bitmap. While creating a test or component, you specify the area you want to check by selecting an object. You can check an entire object or any area within an object. Quick Test captures the specified object as a bitmap, and inserts a checkpoint in the test or component. You can also choose to save only the selected area of the object with your test or component in order Source:
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: 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: What is test object model in QTP?

Answer: The test object model is a large set of object types or classes that Quick Test uses to represent the objects in your application. Each test object class has a list of properties that can uniquely identify objects of that class and a set of relevant methods that Quick Test can record for it. A test object is an object that Quick Test creates in the test or component to represent the actual object in your application. Quick Test stores information about the object that will help it identify and c Source:
Question: How to retrive/update database by writing code in expert view

In my case database is Access
my dsn name="try"
database name="employee.mdb"

Answer: Dim samp

Set samp=createobject("ADODB.Connection")

samp.ConnectionString="DSN=try" strQuery="Select * from employee"

Set sampresults=samp.execute(strQuery)


Do until sampresults.eof

For i = 0 to a-1


reporter.ReportEvent 2,"column " & i , b






Set sampr Source:
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: What is meant by external files in QTP.

Answer: Vbs,Excel,dlls and any other files that for importing,Processing and Resulting can be treated as External files in QTP
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:

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