- 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

Previous 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: What is Expert view in QTP?Can you explain with example?

Answer: In QTP we have two script views:

Expert view
Keyword view
Expert View : Displays the action performed during recording in script view, i.e. TSL

Keyword view : Displays the action performed during recording in terms of objects.
Question: Explain the concept of object repository & how QTP recognises objects?

Answer: Object Repository: displays a tree of all objects in the current component or in the current action or entire test( depending on the object repository mode you selected).
we can view or modify the test object description of any test object in the repository or to add new objects to the repository.
Quicktest learns the default property values and determines in which test object class it fits.If it is not enough it adds assistive properties, one by one to the description until it has compi Source:
Question: How to execute a Parameterized SQL query in QTP script?

Answer: Actually my requirement is, query should be parametrized. i.e, query should be in the script and also it should change dynamically. i.e i have to pass different values in the query condition field based on different criterias. (Where condition)

In this procedure (Which you have mention)?can we change the SQL query? If we can plz let me know once.

For this i?am following the below process (Which i?came to know?recently). Here i am giving the procedure. Plz check it once.
Question: How Does Run time data (Parameterization) is handled in QTP?

Answer: You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files. 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 Object Spy in QTP?

Answer: Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected object?s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box. Source:
Question: Is QTP able to recognize objects in applications like Photo-Shop?
I want to record, run & edit actions in Photo shop

Answer: Photoshop is a .Net application and QTP does recognises the objects of a .Net application Source:
Question: What is the function for loading a repository in QTP

Answer: No function is available in QTP to load Object repository. when you open test ,associated Repository will be loaded automatically. Source:
Question: How to handle an exception in a script without using Recovery Manager?

Answer: With out recovery scenario manager,we can handle exxeption part in qtp through error object and on error resume next statement which is provided by vbscript.

On Error Resume Next : causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the On Error Resume Next statement. This allows execution to continue despite a run-time error. You Source:
Question: Explain about the Test Fusion Report of QTP?

Answer: Once a tester has run a test, a Test Fusion report displays all aspects of the test run: a high-level results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining Test Fusion reports with Quick Test Professional, you can share reports across an entire QA and development team. Source:
Question: In WinRunner some GUI functions are there (like GUI_load) so in QTP what r the methods r there?

Answer: Yes, we have few methods to load object repository file into object repository file into object repository.

try with this code to load object repository file in to object repository.

set a=createobject("Quicktest.Application")

a.test.settings.objectrepositoryfilepath="give the object repository file path here"

just try with that code. if there is any error go to Test->settings->click on Generate Script after that save that in any drive. and then open that file Source:
Question: Is there a debugging option in QTP while running the scripts? Where is it?
2.What kind of support is present for scripted components?
3.Can you store different versions of the script? Where can it be stored? If in the server does it require mapping to client?
4.Can QTP integrate with outside version control systems?
5.What are the installation prerequisites for QTP?

Answer: To Debug QTP Script first install the Microsoft Script Debugger in your machine then you can debug the script. To install this Microsoft Script Debugger in Control Panel -> AddRemove Programs -> AddRemove Components -> Select the Script Debugger. To install this place the Windows O/S CD and install it. Now you can start debugging in your QTP Script.

Question: How to click on the link available in the web table , link is an item in web table and link is not static, i mean it can be any where, you can not guess?

Answer: You can use Method "ChildItemCount" in WebTable to return the number of objects of a specified type.


for loop <rows>

for loop<cols>

if Browser("ss").page("SSS").webtable("ssss").childitemcount(row,column,"Link") = 1 then

<code for clicking the link>

end if


Question: how can i write a script to automate the page which contains random questions with corresponding answers as radio buttons
a b c d
question 2
a b c d

Answer: ACTUAL_ANS(0) = "2"
ACTUAL_ANS(0) = "1"
ACTUAL_ANS(0) = "3"
ACTUAL_ANS(0) = "4"


Browser("QUIZ").Page("QUIZ_PAGE").WebRadioGroup("FIRSTQN").Select "#"&RANDOM_ANS(0)
Browser("QUIZ").Page("QUIZ_PAGE").WebRadioGroup("SECONDQN").Select "#"&RANDOM_ANS(1)
Browser("QUIZ").Page("QUIZ_PAGE").WebRadioGroup("THIRDQN").Select "#"&RANDOM_ANS(2)
Browser("QUIZ").Page("QUIZ_PAGE").WebRadioGroup("FOURTHQN") Source:
Question: What are the Features & Benefits of Quick Test Pro (QTP 8.0)?

Answer: Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation zero-configuration Keyword Driven testing technology in Quick Test Professional 8.0 allowing for fast test creation, easier maintenance, and more powerful data-driving capability. Identifies objects with Unique Smart Object Recognition, even if they change from build to build, enabling reliable unattended script execution. Collapses test documentation and test creation 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: Explain the concept of object repository & how QTP recognises objects?

Answer: While recording a script QTP recognizes the objects by its properties. These objects properties and values are stored in Object repository. When you run your test, QTP compares these objects properties with the run time objects properties. Source:
Question: How can i insert database checkpoint in qtp-6.5

Answer: Can insert Db checkpoint thru Insert(Menu)- database checkpoint-> define query-> select data source..

remember that db checkpoint is not given in recording mode its specified first & then recording is done....
Question: How do you retrieve the Class name of a Test Object programmatically from within a script?

Answer: msgbox Browser("QTP : How do you retrieve").Page("QTP : How do you retrieve").Frame("google_ads_frame").Link("Fast Object Db/ODBMS").GetROProperty("micclass") Source:
Question: Can any body expalin me the differences between a reusable and a external action with example?

Answer: Reusable action:An action that can be called multiple times by the test with which it is stored(the local test) as well as by other tests....

External action: A reusable action stored in another test.....

Previous 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.642578 Seconds