How many types of Parameters are available in QTP? and Pls
Explain with example.
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What is use of Global Sync Timeouts in QTP9.2?
several browsers opened. write QTP script to close all browsers except gmail.
Hi I am new to QTP. we are planning to implement automation for the application. I am trying to execute the following script: Set ExcelObj=CreateObject ("Excel.Application") ExcelObj.WorkBooks.Add Set NewSheet=ExcelObj.Sheets.Item(1) NewSheet.Name="Order" ExcelObj.Cells(1, 1).Value = "Name" ExcelObj.Cells(1, 2).Value = "Ordernum" ExcelObj.Cells(2, 1).Value = "nam" ExcelObj.Cells(2, 2).Value = "21" ExcelObj.ActiveWorkbook.SaveAs "c:\test1.xls" ExcelObj.Quit Set ExcelObj = Nothing in the above script for the line(ExcelObj.Cells(2, 2).Value = "21") it is inserting the value 21 successfully.this is fine But if i want to insert a variable instead of the constant value then what should be the modification in the script. For example: If user retrives a value throug "GetRoProperty" and wants to insert the value into then how the script changes?
What is the difference between "call" and "callclose"
Can we test internet application using QTP?
write script for bitmap image?
what are the metrics in general we use in testing
Explain me in deatail about DATADRIVEN framework including scripts ?(realtimes plz)(Chandana)
Why we are selecting QTP for testing ?
How do u write regular expression for a window name which is changing for each build ? i.e. in first build the window name is : "computer graphics are very ...." . in second build the window name is : "computer graphics can be created" . - Appreciate proper replies
assume i have few url link how will i dynamically call then using descriptive programming?
If you are using descriptive programming and you have two objects with the same name, so you are identiying them by name and index, how can you avoid errors if a third object with the same name is added at the begining of the page?