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

can QTP works on LINUX platfom

2 Answers  


what is the present location of nageshwara rao's institute in hydrabad along with institute phone no. and name of institute.He has shifted from S.R Nagar.

3 Answers  


how can we group that these test cases only should be automated and in which order you execute that test cases?

2 Answers   BSL,


Hi Friends, Can you please answer these questions of QTP Certification? 1.) What are bitmap checkpoints sensitive to? A. Image size and object type B. Object type and image type C. Screen resolution and object type D. Screen resolution and image size 2.)What are the phases in the QuickTest workflow? A. Plan, Record, Enhance, Run B. Prepare, Record, Verify, Run C. Plan, Create, Verify & Enhance D. Prepare, Create, Verify & Enhance, Integrate 3.) What are the two most commonly used ADO objects? A. Fields B. Execute C. Connection, RecordSet D. Open, ConnectionString 4.)What options are available to filter objects in the Target Object Repository pane when merging object repositories? A. Show all objects or Show only objects with conflicting object types B. Show all objects or Show only objects with conflicting descriptions C. Show only objects with conflicting logical names or Show only objects with conflicting object types D. Show only objects with conflicting logical names or Show only objects with conflicting descriptions 5.)Which of the following is an example of a missing resource? A. An object B. Run Results C. A Regular Action D. An External Action 6.)What method is used to retrieve the number of columns in the query results? A. Fields.Count B. Fields.Item(EOF) C. Fields.Count(BOF) D. Fields.Count.Value 7.)In VB Script functions, which one is false among the following a. Variables must be declared before use b. Variables may not be declared before use c. Variables may be declared without data types None

2 Answers  


Write a QTP script to enter a keyword in to Google search engine?

0 Answers   Wells Fargo,






Now it appears to be more than enough... I have learn entire QTP, I did whatever I could do but still facing lots of problem and those problems could be removed only after working in professional atmosphere. But still unable to expose myself as professionaly. It is becoming panic, It has been two years I am in manual testing and looking for the change but all the recruiters ask for QTP, but my problem is I don't have working experience with QTP. Kindly suggest me I really need effective suggestions. I dont have more caliber to work with present organization cause of salary reasons...boo.. hooo...hooo. My email address is alkaa.dugaal@gmail.com

0 Answers  


Give answer with example what is orthogonal array testing technique?

1 Answers   CTS, Wipro,


How to connect QTP to Testdirector

4 Answers   BirlaSoft, Polaris,


What are the types of Object Repository’s in QTP?

1 Answers   Crea,


How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana)

6 Answers   Wipro,


how can we handle exceptional handling in qtp

6 Answers   NIIT,


Can any body explain me how to prepare QTP frame work with an example?? alexander.gdk@gmail.com

1 Answers  


Categories