How many types of Parameters are available in QTP? and Pls
Explain with example.

Answers were Sorted based on User's Feedback



How many types of Parameters are available in QTP? and Pls Explain with example...

Answer / saikrishna reddy.k

You can use the parameter feature in QuickTest to enhance
your test or component by parameterizing the values that it
uses. A parameter is a variable that is assigned a value
from an external data source or generator.

You can parameterize values in steps and checkpoints in
your test or component. You can also parameterize the
values of action parameters.

If you wish to parameterize the same value in several steps
in your test or component, you may want to consider using
the Data Driver rather than adding parameters manually.

There are four types of parameters:

Test, action or component parameters enable you to use
values passed from your test or component, or values from
other actions in your test.
In order to use a value within a specific action, you must
pass the value down through the action hierarchy of your
test to the required action. You can then use that
parameter value to parameterize a step in your test or
component.

For example, suppose that you want to parameterize a step
in Action3 using a value that is passed into your test from
the external application that runs (calls) your test. You
can pass the value from the test level to Action1 (a top-
level action) to Action3 (a child action of Action1), and
then parameterize the required step using this Action input
parameter value (that was passed through from the external
application).

Data Table parameters enable you to create a data-driven
test (or action) that runs several times using the data you
supply. In each repetition, or iteration, QuickTest uses a
different value from the Data Table.
For example, suppose your application or Web site includes
a feature that enables users to search for contact
information from a membership database. When the user
enters a member's name, the member's contact information is
displayed, together with a button labelled View <MemName>'s
Picture, where <MemName> is the name of the member. You can
parameterize the name property of the button so that during
each iteration of the run session, QuickTest can identify
the different picture buttons.

Environment variable parameters enable you to use variable
values from other sources during the run session. These may
be values you supply, or values that QuickTest generates
for you based on conditions and options you choose.
For example, you can have QuickTest read all the values for
filling in a Web form from an external file, or you can use
one of QuickTest's built-in environment variables to insert
current information about the machine running the test or
component.

Random number parameters enable you to insert random
numbers as values in your test or component. For example,
to check how your application handles small and large
ticket orders, you can have QuickTest generate a random
number and insert it in a number of tickets edit field.

Is This Answer Correct ?    35 Yes 5 No

How many types of Parameters are available in QTP? and Pls Explain with example...

Answer / shankar

A parameter is avariable that is assigned a value from an
external data source or generator.You can parameterize
values in steps and checkpoints in your test or component.
You can also parameterize the values of action parameters.
There are four types of parameters:

1. Test, action or component parameters
2. Data Table parameters
3. Environment variable parameters
4. Random number parameters

Is This Answer Correct ?    23 Yes 2 No

How many types of Parameters are available in QTP? and Pls Explain with example...

Answer / vikas choubey

Parameterization

A parameter is a variable that is assigned a value from an
external data source or generator.

You can parameterize values in steps and checkpoints in your
test or component. You can also parameterize the values of
action parameters.

You can use the parameter feature in QuickTest to enhance
your test or component by parameterizing the values that it
uses.

If you wish to parameterize the same value in several steps
in your test or component, you may want to consider using
the Data Driver rather than adding parameters manually.

There are four types of parameters:

Test, action or component parameters enable you to
use values passed from your test or component, or values
from other actions in your test.

In order to use a value within a specific action, you
must pass the value down through the action hierarchy of
your test to the required action. You can then use that
parameter value to parameterize a step in your test or
component.

For example, suppose that you want to parameterize a
step in Action3 using a value that is passed into your test
from the external application that runs (calls) your test.
You can pass the value from the test level to Action1 (a
top-level action) to Action3 (a child action of Action1),
and then parameterize the required step using this Action
input parameter value (that was passed through from the
external application).

Data Table parameters enable you to create a
data-driven test (or action) that runs several times using
the data you supply. In each repetition, or iteration,
QuickTest uses a different value from the Data Table.

For example, suppose your application or Web site
includes a feature that enables users to search for contact
information from a membership database. When the user enters
a member’s name, the member’s contact information is
displayed, together with a button labelled View <MemName>’s
Picture, where <MemName> is the name of the member. You can
parameterize the name property of the button so that during
each iteration of the run session, QuickTest can identify
the different picture buttons.

Environment variable parameters enable you to use
variable values from other sources during the run session.
These may be values you supply, or values that QuickTest
generates for you based on conditions and options you choose.

For example, you can have QuickTest read all the values
for filling in a Web form from an external file, or you can
use one of QuickTest’s built-in environment variables to
insert current information about the machine running the
test or component.

Random number parameters enable you to insert random
numbers as values in your test or component. For example, to
check how your application handles small and large ticket
orders, you can have QuickTest generate a random number and
insert it in a number of tickets edit field.

Is This Answer Correct ?    3 Yes 2 No

How many types of Parameters are available in QTP? and Pls Explain with example...

Answer / suhasairody

Thank you Saikrishna Reddy. I know there are 4 types but I
used only variable through Data Table.
I will try other 3 in the script. Thanks a lot once again.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More QTP Interview Questions

If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

0 Answers   Ordain Solutions,


what is the extension for the test version of the script?

5 Answers   TCS,


What are associated files in QTP?

2 Answers  


Write a script to delete the a specific row (say 3rd) in a webtable.

0 Answers  


what is the difference between quality and testing ?

2 Answers  






in Qtp,how to display user name and pwd (script)in data table(global sheet).

2 Answers  


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

0 Answers  


What is the difference between QTP 8.2 and QTP 9.2

0 Answers   Nokia,


Hello, I am facing problem to check textpoint for mercury application . I have inserted checkpoint to check flight summary for place of departure and arrival with datatable and script look like "Browser("Find a Flight: Mercury").Page("Book a Flight: Mercury").Check CheckPoint("Book a Flight: Mercury_4")" but while I am executing this script at last my check point gets fail and display Text Checkpoint: captured "" between Summary and 4/31/2008FLIGHT , expected "Acapulco" Match case: ON Exact match: OFF Ignore spaces: ON I think value from data table is not fatched so please guide me what I have to do to overcome this problem.. Thanks

0 Answers  


Is it possible to check the Run time value property of a field through a Database Checkpoint ? Further, is it possible to localize and mention a particular cell , in the database dynamically. My requirement is that I would need to check the status of a particular field , that would change from an "Active" state to a "Stopped" state dynamically.

1 Answers   CTS,


what is the main process in QTP?

3 Answers   Ordain Solutions,


Hi All, I am new to QTP but i was trained on winrunner before. My problem is..QTP 8.2 was unable to record my application which is a java app. By selecting smart identification, i was somehow able to record the test BUT QTP cant run the test! Can anyone help me in walking through this problem..Is java addin really necessary for this?? Is there anyways i can run the test successfully? I am not sure whats going wrong in my testing.Please do help me asap as i need to submit the report early. Thanks in advance

4 Answers  


Categories