Quick Test Professional Questions & Answers Part 2
11.Keyword view in QTP is also termed as
Icon based view
12.What is the use of data table in QTP?
parameterizing the test
13.What is the use of working with actions?
To design a modular and efficient tests
14.What is the file extension of the code file and object repository file in QTP?
The extension for code file is .vbs and the extension for object repository is .tsr
15.What are the properties we can use for identifying a browser and page when using descriptive programming?
The name property is used to identify the browser and the title property is used to identify the page
16.What are the different scripting languages we can use when working with QTP?
VB script
17.Give the example where we can use a COM interface in our QTP project?
COM interface appears in the scenario of front end and back end.
18.Explain the keyword createobject with example
createobject is used to create and return a reference to an automation object.
For example:
Dim ExcelSheetSet
ExcelSheet=createobject(“Excel.Sheet”)
19.How to open excel sheet using QTP script?
You can open excel in QTP by using the following command
System.Util.Run”Path of the file”
20.Is it necessary to learn VB script to work with QTP?
Its not mandate that one should mastered in VB script to work with QTP. It is mostly user friendly and for good results we need to have basic VB or concepts which will suffice
21.If WinRunner and QTP both are functional testing tools from the same company. Why a separate tool QTP came in to picture?
QTP has some additional functionality which is not present in WinRunner. For example,you can test(Functionality and Regression testing) an application developed in .Net technology with QTP,which is not possible to test in WinRunner
22.Explain in brief about the QTP automation object model
The test object model is a large set of object types or classes that QTP uses to represent the objects in our application. Each test object has a list of properties that can uniquely identify objects of that class
23.What is a Run-Time data table?
The test results tree also includes the table-shaped icon that displays the run-time data table-a table that shows the values used to run a test containing data table parameters or the data table output values retrieved from a application under test
24.What are all the components of QTP test script?
QTP test script is a combination of VB script statements and statements that use QuickTest test objects ,methods and properties
25. What is test object?
Its an object that QTP uses to represent an object in our application. Each test object has one or more methods and properties that we can use to perform operations and retrieve values for that object. Each object also has a number of identification properties that can describe the object.
26.What are all the rules and guidelines want to be followed while working in expert view?
Case-sensitivity
VB script is not case sensitive and does not differentiate between upper case and lower case spelling of words.
Text strings
When we enter value as a string, that time we must add quotation marks before and after the string
Variables
We can use variables to store strings,integers,arrays and objects. Using variables helps to make our script more readable and flexible.
Parentheses
To achieve the desired result and to avoid the errors,it is important that we use parentheses() correctly in our statements.
Comments
We can add comments to our statements using apostrophe(’),either at a beginning of the separate line or at the end of a statement
Spaces
We can add extra blank spaces to our script to improve clarity. These spaces are ignored by the VB script


raju | Aug 9, 2007 | Reply
hai friends,
its very urgent, how can handle the variable objects in qtp except regular expression , but most testers says through smary identification, bit i didn’t get the solution, for this any descriptive programming is there.please mail to me.
vishala | Sep 10, 2007 | Reply
Hello,
This web site is very helpful for those people who are looking job in testing. I read ur qtp interview qns i felt very happy for getting important ans.
Tanks To You.
seetharam | Sep 14, 2007 | Reply
please tell me how to data base operation and methods in QTP 9 vertion
Ashok Kumar | Sep 21, 2007 | Reply
Please send me the QTP Script for Registration Form for regression testing?
sunil | Sep 27, 2007 | Reply
it is my query.please answer,
i have downloaded 14 day’s trial version of qtp 9.2 for .net envinronment, to test a vb.net application.but my problem is that it is not accpepting this appplication neither it is identifing any object. Does it need external add in. if it needs external add in (that is not available without taking licence ?),then why the link from where i have down loaded this version had the title …for .net envinronment
Prashantha | Sep 27, 2007 | Reply
Hai,
I want to export the “Still Image Captured Results”.How can we do this…………
This is different from Exporting Result to HTML………
If anyone knows plese provide solution to this….
Thanks….
dhawal | Oct 8, 2007 | Reply
hello,
I want to know about the QTP error regarding Object not found during running of the test ?
suren | Oct 9, 2007 | Reply
hi,
the error is coming because , what the application u r running might not be on the desktop or in other words that appliction might not be under active state .
before running make sure that the application is kept open
with regards
Suren…
Shraddha | Nov 6, 2007 | Reply
Hi can any 1 tell how do QTP identifies the ‘Captcha’ (used for security purpose, while registering for any account)
John Vinay | Nov 30, 2007 | Reply
14th Answer is not correct, extension for code file is .mts, not .vbs
Ravi | Dec 20, 2007 | Reply
Dear friends can anyone let me know QTP addin for VB.net application and ASP.net application.
Ravi | Dec 20, 2007 | Reply
Hi is there any Addin for VB.net application and ASP.net Application.Please inform.Urgent
latha | Jan 3, 2008 | Reply
What is the file extension of the code file and object repository file in QTP
for the code file..ie., when we record the system & save it…saves in the form of .mts
as per the object repository..
if it is per action OR .mtr…
if shared OR …. .tsr
james paul | Jan 18, 2008 | Reply
open object repository “learn” the object,and store it in object repository
taufeeq | Jan 19, 2008 | Reply
Hi,
in this web site i got al da qustns i need,dis site is very help ful fr me
Shailesh | May 2, 2008 | Reply
what is Retesting….difference between Retesting and Regression.
Shyam | Jun 19, 2008 | Reply
Hi friends,can any one help me how to connect to Data base — how to bring back end data base to front end
sandeep | Jun 20, 2008 | Reply
Object not found during running of the test ‘
It means that when qtp runs the script then it is unable to relocate the object in the application that was recorded at the time of recording.
RATTAN | Jun 27, 2008 | Reply
Retesting:- is to test the application again.It can be testing of a complete application or module again.
Where as “Regression tesing” is selective retesting.We do regression testig when we modify or make some changes in some module to ensure that it has not affected any important functionality or any related functionality of the application.