Professional Documents
Culture Documents
Module 008 - Using Parameters: Creating Basic Test
Module 008 - Using Parameters: Creating Basic Test
So, what are we waiting for? Let us now explore the Unified
Functional Testing 12.0
CS-6306 UNIFIED FUNCTIONAL TESTING
Using Parameters Page|2
Module Objectives:
After completing this module, you should be able to:
Parameterize a checkpoint
For example, you can run a test on your Web site using
ten separate sets of data. You can create ten separate tests, each
with its own set of data, or you can add ten sets of parameters
to a single test. If you add the parameters, your test runs ten
times, each time using a different set of data.
For example, you can run a test on your Web site using
ten separate sets of data. You can create ten separate tests, each
with its own set of data, or you can add ten sets of parameters
to a single test. If you add the parameters, your test runs ten
times, each time using a different set of data.
Global Sheet
Input parameter names and their values are located in the Data
Table.
Input parameter names and their values are located in the data
table.
CS-6306 UNIFIED FUNCTIONAL TESTING
Using Parameters Page|7
Constant
The constant is a manually defined value that remains
unchanged for the duration of the run. You can edit the value
directly in the Constant box.
CS-6306 UNIFIED FUNCTIONAL TESTING
Using Parameters Page|8
Parameter
A parameter is a value that is defined or generated externally
and is retrieved during a run session. The parameter section
displays:
Click the Configure Value icon and can enter multiple values for
an object. Go to the Keyword view, under the Value field select
the Fly From: object you want to parameterize and then click
configure. This brings up the Value Configuration dialog box.
Change the value from Constant to Parameter. Enter the Name
and Location in the Global data table. Observe how the new
column is created in the data sheet for that parameter.
CS-6306 UNIFIED FUNCTIONAL TESTING
Using Parameters Page|9
Run one iteration only – Runs the test only one time, using
only the first row in the global data table
Run on all rows – Runs the test with iterations using all rows
in the global data table
Output Parameters
An Output parameter is the value of a property captured
from the AUT during test execution. When you run a test, UFT for
GUI Testing retrieves the value of the property and enters it in
the run-time data table as an output value. You can then use this
output value as an input variable in your test.
1. Go to active screen for the step which contains the object for
which you want to specify the output value.
3. Select the Object from the object tree and click the OK button.
Output Value. or
Parameterizing a Checkpoint
Parameterized expected values can make checkpoints
dynamic. A dynamic checkpoint is a checkpoint that can check
for any value generated at run time.
You can also use a checkpoint and parameterize it. You can
apply a checkpoint for Agent name while you log into the Flight
Booking application.
Now when you run the test and it opens the window where you
need to enter Agent Name and Password, you must run the
agent name all three times. Ideally, for all checkpoints to pass,
you should enter Agent Name in the sequence you defined in
the global data sheet.
CS-6306 UNIFIED FUNCTIONAL TESTING
Using Parameters P a g e | 12
Parameterizing an Object
To parameterize an object property’s value in the object
repository, perform the following steps:
Environment Parameter
With a test, action, or scripted component in focus,
CS-6306 UNIFIED FUNCTIONAL TESTING
Using Parameters P a g e | 13
select File, then Settings, then Environment.