Professional Documents
Culture Documents
com
QTP FAQS
1. What are the Features & Benefits of Quick Test pro (QTP)..?
Operates stand-alone, or integrated into Mercury Business process Testing and
Mercury Quality C enter. Introduces next-generation Zero-configuration
Keyboard Driven testing technologies in Quick Test Professional 8.0 allowing for
fast test creation, easier.
2. Differences between QTP 6.5 and 8.2 what are extra features in 8.2?
Multimedia Add-in is available in QTP 6.5. Multimedia Add-in is not available in
QTP 8.2. Parameterization is the extra Features in QTP 8.2. compared to QTP 6.5.
3. How to handle the exceptions using recovery scenario manager in
QTP?
There are 4 trigger events during which a recovery scenario should be activated.
They are A pop up window appears in an opened application during the test run.
A property of an object changes its state or value.
4.What is the use if Text output value in QTP?
Output values enable to view the values that the application takes during run
time. When parameterized, the values change for each iteration. Thus by creating
output values, we van capture the values an object in runtime.
5. How to use the object spy in QTP 8.0?
To view the Run time objects and Test objects properties and
Methods of an
object.
6. What is the extension of the object repository files in QTP?
Two types of Object repository there are shared repository (extension .tsr) and
Action repository(extension .mtr)
7. Explain the concept of object repository & how to QTP recognizes
objects?
With QTP 8.2, there available QTP plus, setup. It provides Repositories Merge
Utility. The Object Repository Merge Utility enables user to merge Object
repository files into a single Object repository file. To recognizes a object using
properties.
8. What are the properties you would use for identifying a browse &
page when using descriptive programming?
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
answer to this question. We can write scripts without recording and it would still
work fine.
26. How long have you used the product?
Depending up on the Licence.
27. How to do the scripting. Is there any inbuilt function in QTP?
Yes, theres an in-built functionality called step Generator in Insert>Step>step
Generator F7, which will generate the scripts as you enter the appropriate
steps.
28. What are the differences between check point output value.
An output value is a value retrieved during the run session and entered into
runtime table or data table subsequently it can be used as input value in your
test.
29. If we use batch testing. The result shown for last action only. In that
how can I get result for every action?
Click in the Expend icon in the tree view to view the result of every action.
30. How the exception handling can be done using QTP?
www.ramupalanki.com
www.ramupalanki.com
to
connect
with
data
base.
The
syntax
is
>CreateObject(Adodb.connection) .
42. What is the procedure to test flash application using QTP?
Using Multimedia Add-ins Support.
43. If a error occur during the execution of QTP script. How can we
handle it.
Using Recovery Scenerio manager.
44. How to merge the object repository files.
Using a repository merge tool. It is available with QTplus tool.
45. Can we update the database though QTP.
Yes. We can update.
46. How can we pass parameters in a actions?
Using Input and output parameters.
47. How can you write a script without using a GUI in QTP?
Object repository? Without OR, tester need to write descriptive tests, where you
would directly assign property values and write methods.
48. How to load the *.vbs or test generating script in a new machine?
By using Test->setting->resources->libraries option.
49. How did you add run-time parameter to a datasheet?
Using dt sheet object.
50. What is descriptive programming?
Executing the test script with out object repository.
51. How you write scripts in QTP?
Using vbscript.
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
QTP (b)
1). How to create the dynamic object repository in QTP?
Property values of objects of applications may change dynamically each time
your application opens, or based on certain conditions, to make the test object
property values match the property values run time object, we can modify test
object properties manually while design the test or component or using 'SET TO
PROPERTY" Statements during run session.
2). What is difference between global sheet and action sheet?
A Test is comprised of 1 or more actions. The Global sheet can be accessed by
all the Actions in the Test. An action sheet is local to the particular action. The action
sheet is named after the name of the action.
The default behavior of the global sheet is that the test iterates for all the
rows in the Global sheet. If there are 10 rows of data in the global sheet...the test
iterates for 10 times.
The default behavior of the Action sheet is 1st iteration no matter how many
rows are available. This default behavior can be modified by right clicking on the
action and modifying the action's properties.
3). How to pass parameters from one action to another action.
You can store the variable you want to pass as Environment Variable in One
action and then if you need to access the same variable in another action first you
www.ramupalanki.com
5). What conditions we go for Reusable Scripts and how we create and call
that into another script?
When we are going to call the action to another actions we are going to set the
calling action as reusable. By setting this then only you are going reuse some other
action. Otherwise you cannot call that action.
Ex: - Login
We can record the script for one action and set in the action Properties as
Reusable. Whenever you need Login script you can call that Reusable Action.
6). Is it possible to test a web application (java) with WinRunner?
Otherwise is it possible to check with QTP?
Which one is best?
We find some difficulties, when we use WinRunner to test with the Java based web
application,
But at the same time we dont find any problem in using the QTP to test the java
based web application
These are some of the web application supported by QTP: XML, HTTP, WSDL, SAP,
J2EE, .net
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
19) What are the new features available in QTP 8.2 compared with earlier
versions?
Setting parameters to the actions step->action properties->parameters tab here we
can set the input and output parameters.
www.ramupalanki.com
24) What are different execution modes available in QTP & explain them.
There is 3-execution mode in QTP they are
1. Normal - the default mode where expected & actual results are verified & output is
given.
2. Update - When u want to update the expected result then update mode is used.
3. Debug- this requires Microsoft debugger..
25) How can we recognize objects in Flex application using QTP?
If you are recording in the low level mode. In this mode every object is identified as
under only 2 classes.
a) Win Object b) Windows
26) How to write QTP test results to an Excel application
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
35) Can any body explain me the differences between a reusable and a
external action with example?
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...
37) How good is QTP for testing siebel applications? Whether QTP
recognizes siebel objects?
QTP supports siebel Application. It is the best Automated tool, which supports
SIEBEL Application.
www.ramupalanki.com
Expert view
Keyword view
Expert View: Displays the action performed during recording in script view, i.e. VB
Script
Keyword view: Displays the action performed during recording in terms of objects.
www.ramupalanki.com
www.ramupalanki.com
47) What is QTP framework? When we prepare the data for data driven
testing?
QTP framework is like Test Plan for automation using QTP. It contains information
regarding naming conventions, variables, data for DDT, about the OR path, how the
scripts should be commented and what is the purpose of each script etc..
48) You are trying to test a web-based application. You invoked QTP from
TD to test the web application. While the TD itself runs on a browser, how
do you ensure that these two browsers do not clash?
TestDirector is management tool; it would be used to invoke QTP or WinRunner
scripts one after another. So before we open application (whatever may be the
application like web based or stand alone application) we should open TD so there is
no clash between TD and web based application.
49) What are environment variables in qtp?
The Environmental Variables in QTP are 1) User-Defined 2) Built-in
50) What is keyword driven testing please give process one example.
What is the different between data driven and keyword driven testing?
Keyword Driven: In the Keyword Driven testing, user can defined screen objects.
Suppose, user is adding page title, label name. When scripts are running...these
objects will be verify with the scripts.
Data-driven scripts: In Data-driven testing, user is giving set number of values and
replace these columns name with the declared one in the data driven database.
51) How many number of actions possible in QTP?
There are 3 types of actions available in QTP
1. Reusable
2.non-reuseable
3. Extern Action
www.ramupalanki.com
QTP (c)
1. How Does Run time data (parameterization) is handle in QTP?
A). You can then enter test data into the Data Table, an integrated spreadsheet
with the full functionality or Excel, to manipulate data sets and cteate multiple
test iterations, without programming, to expand test case coverage. Data can
be typed in or imported from databases, spreadsheets, or text files.
2. What is keyboard view and Expert view in QTP?
A). QuickTests keyword Driven approach, tet automation experts have full access
to the underlying test and object properties, via an integrated scripting and
debugging environment that is round-trip synchronized with the keyword
view.
Advanced testers can view and edit their tests in the Expert View, which
reveals the underlying industry-standard VBScript that QTP aucomatically
generates. Any changes made in the Expert View are automatically
synchronized with the keyword View.
3. Explain about the test Fusion Report of QTP?
A). 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,
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
www.ramupalanki.com
XML :
www.ramupalanki.com
www.ramupalanki.com
be
45.When we try to use test run option Run from Step, the browser is
not launching automatically why?
A). This is default behaviour.
46.Does QTP is Unicode compatible?
A). QTP 6.5 is not but QTP 8.0 is expected to be Unicide compatabile by end of
December 2004.
47.How to Turn off QTP results after running a script?
A). Goto Tools>Option>Run Tab and Deselect View results when run session
ends. But this suppresses only the result window, but a log will be created
and can viewed manulaly which cannot be restricted from getting created.
www.ramupalanki.com
www.ramupalanki.com