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

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 can i execute QTP scripts through commandprompt?



Answer: Here it goes:"C:Program FilesMercury InteractiveQuickTest PlusUtilitiesCommandLineQuickTestLauncher.exe" /t "C:Automated ScriptsRegressionReg_Drilling" /r "D:results1" /logThe Syntax will be:"" /t "" /r "" /log Source: CoolInterview.com
Question: How can i call a external action which is not added external action of an action. Means I want to call ActionC from ActionA. but ActionC is not an exteranl action of ActionA.

Answer: Yes u can do it by copying the Action c to Action A...

In QTP 8.2 there is an menu called insert-Copy of Action...
Source: CoolInterview.com
Question: How does QTP identify objects in the application?

Answer: QTP identifies the object in the application by Logical Name and Class. Source: CoolInterview.com
Question: How to handle dynamic objects in QTP?



Answer: USE THE CONCEPT OF MODIFYING OBJECT DESCRIPTION:
by changinf the property that Quick test uses to identify that object.
for example:object repository learnt an image propert ,
object name or image is dynamic,
in such case you can use a property which identifies the location of object on your AUT. 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: I have a list box in my .net application. This list box is having some items. Each item is a check box and to its side a label. When i record such a object QTP understands the item selected in terms of coordinates. How do i make QTP recognise such a object.



Answer: I have the same type of the application.I used Object property for the list box to know the status of the check box in side the list and selected/deselected according to my testing. 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: How to load a .tsr file(object repository) in QTP thru code as it is in the Winrunner like, gui_load. Is there any script exist in QTP8.2



Answer: This might be helpful....

Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
Dim qtTestResources 'As QuickTest.Resources ' Declare a Resources object variable


' Specify an external Data Table file and a shared object repository
qtTestResources.DataTablePath = "C:ResourcesDefault.xls"
qtTestResources.ObjectRepositoryPath = "C:ResourcesResource.mtr"
' Make this shared repository the default for all new tests
qtTest Source: CoolInterview.com
Question: HOW CAN I IMPLEMENT ERROR HANDLING IN QTP,I KNOW WITH RECOVERY MANAGER BUT HOW PLZ GIVE ME DETAILED TO HOW TO HANDLE GIVING AN EXAMPLE?



Answer: U can do it thru Recovery Manager..

Eg...

Suppose there is an Edit box called Uname n PWD...

Just type in uname n don't enter in PWD..

It displays a pop up msg called plz,,enter PWD...

Then stop recording..

Goto Recovery MGR and call POPUP exception handling./../
Source: CoolInterview.com
Question: Which environments does QTP support?

Answer: Quick Test Professional supports functional testing of all enterprise environments, including Windows, Web,..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services. Source: CoolInterview.com
Question: When a script is recorded in quick test for connecting 10 rows in the database, can we change script later for 20 rows
either using vbscripting or from front-end can we make that particular change? If 'yes' how?




Answer: yes, parmetrize the SQL statement Source: CoolInterview.com
Question: what is the use of command tab in Debug viewer ?can we execute any user defined queries



Answer: while debugging your script, using command tab you can execute a line of script to change or set the current value of a variable or object. Further execution of your test will use the changed value. Source: CoolInterview.com
Question: What is the Difference Between Bit map Check point & Image Check point
Please explain in detail

Text & text area check point?



Answer: For Bit map Chkpoint we need not have any image, It goes by the screen area.

But for image chk point we need to have an image.
Source: CoolInterview.com
Question: How to create database checkpoint while testing any web application



Answer: The syntax of Database Check point is

DbTable.check checkpoint("DbTable")

DbTable is nothing but Data Table which contains all info.regarding database

Source: CoolInterview.com
Question: I am create the test script in qtp.?when i am open the it is telling readonly mode now i want to modify the script?can any one explain the process.



Answer: While opening the test the open dialog box opens

there is check box like as read only as it is on

then the test is read only

"while open the test uncheck the read only"
Source: CoolInterview.com
Question: What is the procedure of doing SQL/database testing?Is a tester suppose to create procedures,functions,views,triggers etc?




Answer: Please refer the QuickTest Plus Helpfile and refer the link

Libraries Funtions->Microsoft Object->Database function collections

here you would get database releated functions

Source: CoolInterview.com
Question: What are envirnment variables in qtp?



Answer: There are two types of environment variables

1)Builtin

2)User defined
Source: CoolInterview.com
Question: How do we test Links using Quick Test Professional and confirm that the page we are requesting is seen after clicking?



Answer: The links are tested using the property of 'href' and 'url' of that link. Here the link can be image or any. If the link is an image then the image has the properties as follows.Href or URL : check the hyperlinkAlt: Specifies the text of an imageSrc: Specifies image sourcefilename: specifies the name of the image file Source: CoolInterview.com
Question: How to call from one action to another action in QTP?



Answer: Using "Call to Existing Action" we can call one action from another action.

Go to Insert ->select Call to Existing Action

Select which action wants to call.
Source: CoolInterview.com
Question: What is meant by Keyword driven testing and what is Data Driven testing?kindly tell me the meaning with actual differences



Answer: Keyword driventesting is new concept in qtp.

QTP has two views:

1.Keyword view

2. expert view

in keyword view one can see the object ,the operation performed on it and it's value

In keyword driven testing you use the recorded object to generate operations on it.

i mean you select a object and press f7 or right click the mouse and select insert step menu.that way you can generate code without having to generate it manually.

This is called keywo Source: CoolInterview.com

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