CoolInterview.com - 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
COOLINTERVIEW.COM TESTING INTERVIEW QUESTIONS QTP INTERVIEW QUESTIONS 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: 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.

Source: CoolInterview.com
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.


Source: CoolInterview.com
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.
Source: CoolInterview.com
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: CoolInterview.com
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: CoolInterview.com
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.

Source: CoolInterview.com
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.
Source: CoolInterview.com
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: CoolInterview.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: CoolInterview.com
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: CoolInterview.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: CoolInterview.com
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
error
object state
application crash Source: CoolInterview.com
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.

and

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

Source: CoolInterview.com
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

Source: CoolInterview.com
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
Source: CoolInterview.com
Question: How to resolve, When QTP throws: verify that parent properties match an object currently displayed in your application.

I would appreciate your early replys



Answer: If u get that errror, please click on the Details Option in the Pop UP message that comes, Then u will know where the error is.

After that Go to Object Repository, and Highlight the particular object,if it highlights , then there may be problem in ur script.Otherwise , Add the Object to the Repository by clicking on the Add Objects Button..

Source: CoolInterview.com
Question: I am using QTP testing tool,What is micclass? and how to refer the different DLL's?



Answer: To make use of Dlls..CreateObject can be used.

like ;

set obj = CreateObject("mydll")

mydll.customfunctions

Source: CoolInterview.com
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")
else
f1.writeline("Step1 Login details is Fail")
End If
Source: CoolInterview.com
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).
Source: CoolInterview.com
Question: How can we insert Text check point and Bit map check point ? if provide example script, it is greatefull



Answer: Text check point is inserted to check static data in the page but for checking dynamic data like Date we can't use Text Check point.

Source: CoolInterview.com

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