- 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: How to execute qtp script from command prompt?

Answer: [Files]
File1=C:Program FilesMercury InteractiveQuickTest ProfessionalTestsmailobjectexample;1
File2=C:Program FilesMercury InteractiveQuickTest ProfessionalTestsatch2_test;1

this is just a sample hope this would help any dbts get back
Question: How to change a name of an object in a application?

Answer: As a tester u only check the functionalities of the ojects. Developes can do that one. okthe blow answer gives u a good idea.When recording an object QuickTest Professional uses one of the object's properties as the logical name for the object (the name displayed in the Expert View and in the KeywardView modes).You can change the property that is used to be a different one by specifying which property's value you want to use as the logical name for the object.For example in order to use Source:
Question: Explain the check points in QTP?

Answer: A checkpoint verifies that expected information is displayed in an Application while the test is running. You can add eight types of checkpoints to your test for standard web objects using QTP. A page checkpoint checks the characteristics of an Application. A text checkpoint checks that a text string is displayed in the appropriate place on an Application. An object checkpoint (Standard) checks the values of an object on an Application. An image checkpoint checks the values of an image on an App Source:
Question: Can you do more than just capture and playback?

Answer: I have done Dynamically capturing the objects during runtime in which no recording, no playback and no use of repository is done AT ALL.
-It was done by the windows scripting using the DOM(Document Object Model) of the windows. Source:
Question: Give me an example where you have used a COM interface in your QTP project?

Answer: Com inteface appears in the scenario of front end and back end.for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface.of which COM wil be one among those intefaces.
Question: How can i run the 2 GUI merge files?

Answer: Do u mean by merging Gui map files in WR?If so, by merging GUI map files in GUI map editor it wont create corresponding test script.without testscript u cant run a it is impossible to run a file by merging 2 GUI map files. Source:
Question: How do we connect to Oracle database from QTP ?

Answer: Either we can user Microsoft Query Wizard,or we can connect by harcoding the DB Connection string and all in Expert view.

We have to create a new DSN or we can use the existing DSN to connect to the database
Question: What is the method used to focus on particuler field.I need the script.
I will give example.
I flights application login page by default the focus is on username field. for this i will check the focus was there or not by using getroproprty method but if focue is not there which method i need to use.

Answer: The method used to focus on particuler fie is

getroproperty: retrives the pericula property.

setroproperty: set the property to perticula object....

to focus to the perticulat text we can use this method:

object.GetTextLocation (TextToFind, Left, Top, Right, Bottom, [MatchWholeWordOnly])

object.GetTextLocation (TextToFind, Left, Top, Right, Bottom, [MatchWholeWordOnly]
Question: Is it possible to change from Shared Object Repository to Per Action Repository or vice verse. if Yes then How

Answer: Go to Test-->Settings-->select the Resources Tab,There you can find Shared or Per action radio button,You can Select which ever you want. Source:
Question: What is the advantage of using action button in you presentation?

Answer: Action button is used to split ur recored scriped into number of action.this help to reduce complexcity of ur script. Scripts are divided in to action at the time of recording or after the complettion of recording also. u can make action as reusable action.the main advantage of action are1. U can call any existing action(reusable)- this save ur time and memory.2. U can call any copy of action plus u can also append action. Source:
Question: How does QTP recognize Objects in AUT?

Answer: Quick Test stores the definitions for application objects in a file called the Object Repository. As you record your test, Quick Test will add an entry for each item you interact with. Each Object Repository entry will be identified by a logical name (determined automatically by Quick Test), and will contain a set of properties (type, name, etc) that uniquely identify each object. Each line in the Quick Test script will contain a reference to the object that you interacted with, a call to the ap Source:
Question: How can you show the data from a particular row and a particular colum from Data Table in QTP

Answer: Try this below code

For i = 1 to NumRows
For j = 1 to NumColumns
tblCellText = Datatable(j,dtGlobalsheet)
If tblCellText <> "" Then
Msgbox "The Text in Row: " & i & " and Column: " & j & " is: " & tblCellText
End If

Question: What is Parameterizing Tests?

Answer: When you test your application, you may want to check how it performs the same operations with multiple sets of data. For example, suppose you want to check how your application responds to ten separate sets of data. You could record ten separate tests, each with its own set of data. Alternatively, you can create a parameterized test that runs ten times: each time the test runs, it uses a different set of data. Source:
Question: What the differences are and best practical application of each.

Answer: Per Action: For Each Action, one Object Repository is created.
Shared : One Object Repository is used by entire application Source:
Question: How to recall a function in QTP

Answer: There also u follow the same procedure. See the sample code

Function addition(x,y)
z= x+y
msgbox z
End Function

Call addition(1,2)
Call addition(2,2)

I think i am clear :)
Question: We are trying to avoid that anybody see our script after we wrote it. Did anybody know how to do this? Is there any tool/way to read an .exe or .dll so we can make our script then compile it and then include in a QTP script and not allow anybody to see our code?

Answer: this is a new feature which is present in qtp 9.0 silent runner .if we have a good knowledge of qtp we can run the qtp as silent in 8.2 also

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: Out if the given solution which is the way to find a window is minimized or not
a) Get the abs_x " and "abs_y runtime values and check if they are equal to 3200
b) ICheck weather the window exist or not
c) Try to click on a control in a window and if it fails, assume that the window is minimized
d) There is no option to check whether a window is minimized or not

Answer: A would be the right approach to do that Source:
Question: Can we mask a Code In .vbs file so that it is not viewable to others?

Answer: VBS file is visible in notepad only not in QTP. we can?add .vbs files in QTP, test menu->setting->Resource Tab.
Question: Explain the concept of object repository & how QTP recognizes 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 compiled the Source:

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.140625 Seconds