ALM BPT Guide
ALM BPT Guide
User Guide
The only warranties for HP products and services are set forth in the express warranty
statements accompanying such products and services. Nothing herein should be construed
as constituting an additional warranty. HP shall not be liable for technical or editorial errors
or omissions contained herein.
The information contained herein is subject to change without notice.
Confidential computer software. Valid license from HP required for possession, use or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software,
Computer Software Documentation, and Technical Data for Commercial Items are licensed
to the U.S. Government under vendor's standard commercial license.
Copyright Notices
Trademark Notices
Acknowledgements
This product includes software developed by the Apache Software Foundation (http://
www.apache.org).
This product includes software developed by the JDOM Project (http://www.jdom.org).
2
Documentation Updates
The title page of this document contains the following identifying information:
• Software Version number, which indicates the software version.
• Document Release Date, which changes each time the document is updated.
• Software Release Date, which indicates the release date of this version of the software.
To check for recent updates, or to verify that you are using the most recent edition of a
document, go to:
http://h20230.www2.hp.com/selfsolve/manuals
This site requires that you register for an HP Passport and sign-in. To register for an HP
Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
Or click the New users - please register link on the HP Passport login page.
You will also receive updated or new editions if you subscribe to the appropriate product
support service. Contact your HP sales representative for details.
3
Support
Visit the HP Software Support web site at:
http://www.hp.com/go/hpsoftwaresupport
This web site provides contact information and details about the products, services, and
support that HP Software offers.
HP Software online support provides customer self-solve capabilities. It provides a fast and
efficient way to access interactive technical support tools needed to manage your business.
As a valued support customer, you can benefit by using the support web site to:
• Search for knowledge documents of interest
• Submit and track support cases and enhancement requests
• Download software patches
• Manage support contracts
• Look up HP support contacts
• Review information about available services
• Enter into discussions with other software customers
• Research and register for software training
Most of the support areas require that you register as an HP Passport user and sign in.
Many also require a support contract. To register for an HP Passport ID, go to:
http://h20229.www2.hp.com/passport-registration.html
To find more information about access levels, go to:
http://h20230.www2.hp.com/new_access_levels.jsp
4
Table of Contents
5
Table of Contents
6
Table of Contents
7
Table of Contents
8
Welcome to This Guide
9
Welcome to This Guide
10
Welcome to This Guide
11
Welcome to This Guide
Documentation Library
The Documentation Library is an online help system that describes how to
use ALM. You can access the Documentation Library in the following ways:
12
Welcome to This Guide
Reference Description
Using this Explains how to use the Documentation Library and how
Documentation it is organized.
Library
Guide Description
HP ALM User Guide Explains how to use ALM to organize and execute all
phases of the application life cycle management process.
It describes how to specify releases, define requirements,
plan tests, run tests, and track defects.
13
Welcome to This Guide
Guide Description
Guide Description
14
Welcome to This Guide
Guide Description
HP ALM Business Provides best practices for working with the Business
Models Module Best Models module.
Practices Guide
Guide Description
HP ALM Open Test Provides a complete online reference for the ALM COM-
Architecture API based API. You can use the ALM open test architecture to
Reference integrate your own configuration management, defect
tracking, and home-grown testing tools with an ALM
project.
HP ALM REST API Provides an online reference for the ALM REST-based API.
Reference You can use the REST API to access and work with ALM
data.
HP ALM Custom Test Provides a complete online guide for creating your own
Type Guide testing tool and integrating it into the ALM
environment.
15
Welcome to This Guide
Part Description
HP Software Support Opens the HP Software Support Web site. This site
enables you to browse the Self-solve knowledge base. You
can also post to and search user discussion forums,
submit support requests, download patches and updated
documentation, and more. Choose Help > HP Software
Support. The URL for this Web site is
www.hp.com/go/hpsoftwaresupport.
Most of the support areas require that you register as an
HP Passport user and sign in. Many also require a support
contract.
To find more information about access levels, go to:
http://h20230.www2.hp.com/new_access_levels.jsp
To register for an HP Passport user ID, go to:
http://h20229.www2.hp.com/passport-registration.html
HP Software Web site Opens the HP Software Web site. This site provides you
with the most up-to-date information on HP Software
products. This includes new software releases, seminars
and trade shows, customer support, and more. Choose
Help > HP Software Web site. The URL for this Web site
is www.hp.com/go/software.
16
1
Introducing Business Process Testing
17
Chapter 1 • Introducing Business Process Testing
18
Chapter 1 • Introducing Business Process Testing
19
Chapter 1 • Introducing Business Process Testing
Identifying Roles
The Business Process Testing model is role-based, allowing non-technical
subject matter experts to work on tests with automation engineers, both
together and in parallel. Two basic user roles are identified in the Business
Process Testing model and are referred to in this guide:
These two main roles are the key players designing and implementing
business process test. In addition to these two main roles, QA testers use and
run the business process tests and ALM administrators set up and configure
Business Process Testing.
Roles are flexible, depending on the abilities and time resources of the
personnel using Business Process Testing. There are no product-specific rules
or limitations controlling which roles must be defined in a particular
organization, or which types of users can perform which Business Process
Testing tasks (provided that the users have the correct permissions). For
example, in some organizations, the tasks of the subject matter expert may
be performed by multiple personnel.
Note: To control access to various modules and tasks, ALM enables you to
configure access permissions for users. For more information, see the
HP Application Lifecycle Management Administrator Guide.
20
Chapter 1 • Introducing Business Process Testing
21
Chapter 1 • Introducing Business Process Testing
➤ Executing the tests to verify that test was designed appropriately and
ran as expected.
➤ Reviewing test results to verify that the results are as expected.
➤ Maintaining test steps for each of the business components.
Automation Engineer
The automation engineer is an expert in QuickTest Professional (or another
testing tool) automated testing.
➤ The automation engineer can create and maintain application areas both
within ALM and other testing tools.
➤ The automation engineer can create function libraries with general scripts
which are encapsulated into general operation keywords.
➤ The automation engineer can populate the shared object repository with
objects that represent the different objects in the application being tested.
The automation engineer can rename the object repository, create more
appropriate keywords, and filter out objects which are not relevant. The
subject matter expert can use these objects to create steps in keyword-
driven business components.
Depending on your company’s organization and resources, automation
engineers may also be responsible for some of the tasks listed above for the
subject matter expert.
22
Chapter 1 • Introducing Business Process Testing
A Top-Down Methodology
Business Process Testing is flexible and does not enforce any one particular
model for incorporating business processes into your testing environment.
The actual workflow in an organization may differ for different projects, or
at different stages of the application development life cycle.
23
Chapter 1 • Introducing Business Process Testing
Business process tests, business components, and flows are created using
ALM’s Business Components module and Test Plan module.
24
Chapter 1 • Introducing Business Process Testing
After designing the test with automation in mind, you can use the Convert
to Component feature to create components from a test systematically and
effectively. For task details, see "Converting Manual Tests to Components"
on page 235.
25
Chapter 1 • Introducing Business Process Testing
Note: Flows are sets of business components that are executable. As such,
they are available from the Test Plan module, which allows them to share
the same functionality as business process tests (iterations, parameter,
coverage, and results). However, when designing flows, we recommend that
you consider them “compound components” and plan their design when
"Designing the Mid-level Structure."
Tip: As the subject matter expert creates the test or flow, he/she can request
the creation of new business components. The component request can be
very detailed (with a name, a description, a status, and implementation
requirements), or a basic shell of the component (for example, specifying
only a name). These component requests enable subject matter experts to
build business process tests even before the application is ready for testing
and make sure no duplicate business components are created.
After a business process test is complete, you can work with it in the
Requirements, Test Lab, Analysis, and Defects modules, just as for any other
test type.
You can use run conditions to enable components to run selectively, based
on earlier stages within the test or flow. This enhances the overall flexibility
of a test or flow. For more information, see Chapter 13, "Defining Run
Conditions."
This part of the design phase is typically performed by the subject matter
expert.
26
Chapter 1 • Introducing Business Process Testing
➤ Creating Flows
➤ Creating Business Components
➤ Linking to Other ALM Entities
➤ Adding Components to Business Process Tests and Flows
Creating Flows
The Test Plan module enables subject matter experts to build and configure
flows that represent logical sets of business components that can be
executed as a unit (“compound components”).
This part of the design phase is typically performed by the subject matter
expert.
You can use a component in multiple business process tests and flows.
When you modify a component or its steps, all business process tests or
flows containing that component reflect that modification.
27
Chapter 1 • Introducing Business Process Testing
This part of the design phase is typically performed by the subject matter
expert, but may also be done in conjunction with the automation engineer,
depending on available resources and skills.
28
Chapter 1 • Introducing Business Process Testing
29
Chapter 1 • Introducing Business Process Testing
Parameterization Example
If you want to create a business process test that tests the business process of
booking a flight from an online reservation application, you might structure
it from business components that: Log in to the application, select an
itinerary, enter credit card details, enter shipping details, and log out.
If you were planning such a test without Business Process Testing, you might
use the following diagram as part of your master test plan document:
30
Chapter 1 • Introducing Business Process Testing
Using Business Process Testing, you could directly create a business process
test containing business components, as shown below:
Using iterations and parameterization, the same business process test can be
used to answer many testing needs, for example:
➤ Testing the flight booking process for users with different login
permissions, such as new users, VIP customers, and so on.
➤ Testing the flight booking process for one itinerary, or for several
itineraries.
➤ Testing the flight booking process for one passenger, or for several
passengers.
31
Chapter 1 • Introducing Business Process Testing
The login and logout components could be used in most other tests or flows
on the same application. For example, you might be able to use the
component for entering shipping details in other business process tests that
check the business process of ordering online merchandise from the
application, or in a test for subscribing to a frequent flyer program.
Grouping Components
In certain business process tests or flows, you may want perform several
business components together as a group, perhaps as iterations. This form of
parameterization and iteration is done within a test or a flow, and not on an
entire test or flow as a whole. For task details, see "Grouping Components
and Flows" on page 222.
This part of the design phase is generally performed by the subject matter
expert.
Automating Components
If desired, test steps can be automated (this is decided during "Designing
with Automation in Mind" on page 25). For details, see Chapter 5, "Working
with Automated Component Steps." Automating test steps within ALM is
typically done by the subject matter expert in conjunction with the
automation engineer.
You can create basic application areas based on a default template in the
ALM Test Resources module. The default application area template is stored
in the System Application Areas subfolder and cannot be moved or
modified. For details, see the HP Application Lifecycle Management User Guide.
Use QuickTest to edit and enhance application areas created in ALM.
32
Chapter 1 • Introducing Business Process Testing
If automating the business components, you can check for problems arising
from the combination and order of components in a business process test or
flow by running the test in Debug mode from the Test Plan module.
QuickTest Professional (and other testing tools) automated components can
be used in the same business process test. The appropriate application is
launched to run the components.
You can also check for syntax or logic errors in specific business components
by running them individually in QuickTest Professional or another testing
tool.
Then, when you are ready to run a complete business process test or flow, or
to run it as part of a larger test set, you run it from the Test Lab module.
From the Test Lab module, you can view the results of the test run. These
results include the steps in each business component, the actual value of
each component parameter, and the results of individual steps.
For details, see Chapter 13, "Defining Run Conditions" and Chapter 14,
"Running Business Process Tests and Flows."
33
Chapter 1 • Introducing Business Process Testing
34
Chapter 1 • Introducing Business Process Testing
For example, the objects in a login window may be captured in the object
repository in QuickTest Professional as follows:
The automation engineer encapsulates all the activities and steps that
require programming into a set of function libraries. These function libraries
define the operations (or keywords) that your test needs to perform. With
keyword-driven components, you can use these operations to create the
component steps in the Business Components module in ALM.
The object repository location and associated function libraries for each part
of the application being tested are specified in an application area. The
application area provides all of the settings and resources required to create
the content of its associated keyword-driven business components. These
include representations of the objects from your application (contained in
the shared object repository) and user-defined operations (contained in
function libraries).
35
Chapter 1 • Introducing Business Process Testing
Note: You can create basic application areas based on a default template in
the ALM Test Resources module. (For details, see the HP Application Lifecycle
Management User Guide.) However, most application area functionality is
provided by the subject matter expert in QuickTest.
The resources and settings supplied by the application area apply to all
components that are associated with it. You can create multiple application
areas for different purposes. Each QuickTest Professional business
component must be associated with an application area. You cannot delete
an application area that is associated with a business component.
36
Chapter 1 • Introducing Business Process Testing
This section contains only a brief description of these resources and settings.
For more information on QuickTest Professional resources and settings and
the application area, see the HP QuickTest Professional for Business Process
Testing User Guide.
Object Repositories
The object repository stores all the information about the test objects that
are used in each business component. After you associate a shared object
repository with an application area, it can be accessed by any component
that is associated with that application area.
By using the same shared object repository file for multiple components, the
same objects can be used in multiple components, flows, and business
process tests in ALM, and object changes in the application can be updated
in one central location.
Function Libraries
Function libraries contain VBScript functions, subroutines, and so on, that
can be used as operations in a business component.
Associated Add-ins
The specified set of QuickTest Professional Add-ins that is associated with
the business component determines the types of objects that
QuickTest Professional recognizes and that can be tested using that business
component. Each add-in is associated with a development environment. For
example, QuickTest Professional includes built-in add-ins for testing in Web,
ActiveX, and Visual Basic environments. Additional QuickTest Professional
Add-ins are available for testing environments such as SAP Solutions, Java,
Oracle, Siebel, terminal emulators, and more.
37
Chapter 1 • Introducing Business Process Testing
Note: ALM assumes that the add-ins associated with the first component in
a business process test are required for all the components in the same test.
Therefore, it is important to make sure that all required
QuickTest Professional Add-ins are associated with the first business
component in the test. If they are not, you should ask the automation
engineer to add them to the application area used by the first component in
the test. Then update your copy of the application area. For more
information on updating the application area, see "Working with
Application Areas" on page 136.
Applications List
QuickTest Professional runs components only on the set of Windows-based
applications that are specified for the component. It can also run on
applications in any other environment for which the appropriate
QuickTest Professional Add-in is loaded.
Recovery Scenarios
Recovery scenarios are activated during the running of a business
component if an unexpected event occurs, such as an application crash, and
the run is suspended. Recovery scenarios define the operations necessary to
recover from the event and continue the run.
38
Chapter 1 • Introducing Business Process Testing
39
Chapter 1 • Introducing Business Process Testing
Scripted component steps can contain programming logic and can be edited
only in the applications in which they were created, such as
QuickTest Professional or Service Test. They cannot be modified by the
subject matter expert in ALM, but you can include these scripted
components in any business process tests.
In the Automation sub-tab, you can launch the component in the testing
tool in which it was automated.
Note: Most of the information, examples, and images in this guide focus
specifically on working with keyword-driven business components.
However, much of the information also applies to scripted components.
40
Chapter 1 • Introducing Business Process Testing
➤ "Licensing" on page 41
➤ "Prerequisites" on page 42
➤ "Accessing Business Process Testing" on page 42
Licensing
A license for Business Process Testing enables you to access the Business
Components module and provides the ability to edit business process tests
and flows in the Test Plan module.
Each user with the proper permissions who logs into an ALM Platform
server with a Business Process Testing license uses up both a Business Process
Testing license and an ALM license.
Note: You can run test sets containing business process tests in the Test Lab
module and you can also edit automated components in
QuickTest Professional, even if no Business Process Testing license is
available in ALM.
41
Chapter 1 • Introducing Business Process Testing
Prerequisites
To work with Business Process Testing, make sure the following prerequisites
are met:
42
2
Getting Started with Business
Components
43
Chapter 2 • Getting Started with Business Components
44
Chapter 2 • Getting Started with Business Components
Tip: You can navigate the Business Components module, and perform
many commands, using shortcut keys. For a list of shortcut keys, see
"Business Component Module Shortcuts" on page 415.
45
Chapter 2 • Getting Started with Business Components
➤ Component Steps tab. Enables you to create or view the manual steps
of your business component, and to automate it if required. For
general details, see "Understanding the Component Steps Tab" on
page 68. For task details on creating manual components, see "About
Designing Manual Component Steps" on page 121. For task details on
automating components, see Chapter 5, "Working with Automated
Component Steps."
➤ Parameters tab. Enables you to define input and output component
parameters and default parameter values for the business component.
This allows the component to receive data from an external source and
to pass data to other components or flows. For general details, see
"Understanding the Parameters Tab" on page 66.
➤ Dependencies tab. Displays the dependency relationships between
components, tests, flows, and resources (including application areas).
For details, see the HP Application Lifecycle Management User Guide.
➤ History tab. Displays a log of changes made to the component. For
details, see the HP Application Lifecycle Management User Guide.
➤ Live Analysis tab. When a folder is selected, this tab is available for
creating a graphical representation of data related to business
components.
Component Tree
Business components are displayed graphically in a hierarchical tree. This
includes components created in:
46
Chapter 2 • Getting Started with Business Components
47
Chapter 2 • Getting Started with Business Components
48
Chapter 2 • Getting Started with Business Components
<list of recently used ➤ Favorites Displays the four most recently used
favorite views> menu favorite views in the Business
Components module.
You can define the number of views
displayed on the menu by setting
the FAVORITES_DEPTH parameter in
the Site Configuration tab in Site
Administration. For details, see the
HP Application Lifecycle Management
Administrator Guide.
49
Chapter 2 • Getting Started with Business Components
50
Chapter 2 • Getting Started with Business Components
51
Chapter 2 • Getting Started with Business Components
52
Chapter 2 • Getting Started with Business Components
Find Next ➤ Edit menu Searches for the next item that
meets the previously defined search
criteria.
53
Chapter 2 • Getting Started with Business Components
54
Chapter 2 • Getting Started with Business Components
55
Chapter 2 • Getting Started with Business Components
56
Chapter 2 • Getting Started with Business Components
Text Search ➤ Edit menu Opens the text search pane in the
➤ Toolbar lower part of the Components
module window, enabling you to
search for records in predefined
fields. For more information, see the
HP Application Lifecycle Management
User Guide.
57
Chapter 2 • Getting Started with Business Components
The status of a business component affects the status of any business process
tests or flows of which it is a part. The component with the most severe
status determines the status of the test or flow. For example, a business
component with an Error status causes any business process test or flow of
which it is a part to have an Error status.
Additional statuses can be defined by updating the project list for business
component statuses. For details, see the HP Application Lifecycle Management
Administrator Guide.
58
Chapter 2 • Getting Started with Business Components
Color /
Status Icon Description
Symbol
59
Chapter 2 • Getting Started with Business Components
Color /
Status Icon Description
Symbol
➤ The above icons represent components that have been automated using a
testing tool such as QuickTest.
➤ A manual component is indicated by an M symbol on the appropriate
icon. For example, a component with an Under Development status that
has not been automated would be indicated by the icon.
60
Chapter 2 • Getting Started with Business Components
61
Chapter 2 • Getting Started with Business Components
You can change the business component’s status and other details displayed
in this tab by choosing alternative selections from the drop-down lists.
62
Chapter 2 • Getting Started with Business Components
Notes:
➤ You can add user-defined fields and change the label of the fields in the
Business Components module. You can also customize project lists. For
details, see the HP Application Lifecycle Management Administrator Guide.
➤ You can use the Script Editor to restrict and dynamically change the
fields and values in the Business Components module. For details, see the
HP Application Lifecycle Management Administrator Guide.
➤ For more information on the Details tab for a business component, see
"Providing Component Details and Implementation Requirements" on
page 94.
63
Chapter 2 • Getting Started with Business Components
➤ Version Check Out Date. The date the version was checked out.
➤ Version Check Out Time. The time the version was checked out.
➤ Version Checked Out By. The name of the user who checked out the
version.
➤ Version Number. The version number.
➤ Version Status. The status of the version (Checked Out or Checked In).
64
Chapter 2 • Getting Started with Business Components
65
Chapter 2 • Getting Started with Business Components
A green asterisk icon next to the Snapshot tab name indicates that the
selected component has one or more snapshots.
66
Chapter 2 • Getting Started with Business Components
Tip: The Parameters tab for flows is very similar to the Parameters tab for
business components.
The Parameters tab for Components (and flows) contains the following tabs:
The Input Parameters and Output Parameters sub-tabs each contain the
following buttons:
For details on the Parameters tab, see Chapter 9, "Working with Parameters."
67
Chapter 2 • Getting Started with Business Components
A green asterisk icon next to the Dependencies tab name indicates that
the selected component has one or more dependencies.
You can include this manual component in a business process test or flow
and then manually run the steps you created. Alternatively, you can choose
to convert a manual component to an automated keyword-driven or a
scripted component for a specific testing tool such as QuickTest.
68
Chapter 2 • Getting Started with Business Components
A green asterisk icon next to the Component Steps tab name indicates
that the selected component has one or more component steps.
69
Chapter 2 • Getting Started with Business Components
You create each step in the business component as a row in the Component
Steps tab. A step is an operation to be performed on an application. For each
step, you describe the procedure to be performed, and define a successful,
expected result. When a business process test or flow runs in ALM, the steps
defined in the associated business components are performed.
The rows in the Component Steps tab are divided into the following
columns:
➤ Step Name column. Displays an incrementing number for each step that
you create, for example, Step 1, Step 2, and so on. You can change this
default to a more descriptive name if required.
➤ Description column. Describes the step procedure to be performed on the
application.
➤ Expected Result column. Describes the expected result of performing the
procedure described in the Description column.
➤ New Step. Opens the New Component dialog box, enabling you to add a
step below the selected step. For more information, see "The New
Component Dialog Box" on page 83.
➤ Edit step. (or double-click a step) Opens the Component Step Details
Dialog Box, enabling you to edit the selected manual step. For more
information, see "The Component Step Details Dialog Box" on page 87.
➤ Renumber Steps. Rearrange the steps in a different order by renumbering
them.
➤ Delete Selected. Deletes the selected component steps.
➤ Copy steps. Copies the selected component steps to the clipboard. Use
this button in conjunction with the Paste steps button.
➤ Paste steps. Pastes the copied component steps to a new location.
70
Chapter 2 • Getting Started with Business Components
71
Chapter 2 • Getting Started with Business Components
➤ Save steps. Saves the component steps that you have created or modified.
New or changed steps are not saved until either you click this button or
you leave the Component Steps tab. For more information, see "Saving
Component Steps" on page 151.
➤ Move Up. Moves the selected step up or down in the list.
➤ Move Down. Moves the selected step up or down in the list.
➤ Export. This context menu command exports the information in the tab
to several formats. For more information, see "Exporting Component
Steps Data to a File" on page 73.
For more information on the Component Steps tab, see Chapter 4, "About
Designing Manual Component Steps."
To find a value:
1 Click the Find Text button in the toolbar.
2 In the Find in Field box, select the column in which you want to search
for a specific value.
3 In the Value to Find box, enter the value to find.
4 To find exact matches only, select the Exact Match box.
72
Chapter 2 • Getting Started with Business Components
➤ Manual Steps. Displays the manual steps that were originally displayed in
the Component Steps tab. These are the steps that you can automate
using the Automation sub-tab, adding automated steps that can be run by
a specific testing tool such as QuickTest.
For additional information on working with the Manual Steps sub-tab to
create manual steps, see Chapter 4, "Designing Manual Component
Steps."
73
Chapter 2 • Getting Started with Business Components
However, the individual steps in the scripted component are not shown in
the Automation sub-tab, and they can be edited only in the appropriate
testing tool. Click the Launch button in the Automation sub-tab to open the
applicable testing tool and edit the component.
74
Chapter 2 • Getting Started with Business Components
75
Chapter 2 • Getting Started with Business Components
You can select which columns to display in the Automation sub-tab and
their order in the tab. If you do not see one or more of the required columns
in the tab, you can use the Keyword View Options dialog box to display
them. You can display the Documentation column only, for example, if you
want to use the steps as instructions for manual testing. For more
information, see "Setting Keyword View Options" on page 144.
76
Chapter 2 • Getting Started with Business Components
Note: In the sample Automation sub-tab above, an application area has not
yet been chosen.
77
Chapter 2 • Getting Started with Business Components
78
Chapter 2 • Getting Started with Business Components
79
Chapter 2 • Getting Started with Business Components
➤ Item Column
➤ Operation Column
➤ Value Column
➤ Output Column
➤ Documentation Column
Item Column
The Item column displays the objects in your application on which you
perform operations. These objects are defined in the object repository that
was prepared for you by the automation engineer and associated with the
application area on which your business component is based.
You select the item from an icon-based list, which displays the item and all
sibling objects of the previous step, as well as any child objects for the
previous step.
For example, if the previous step specifies the Login Window object, then
the User name and Password objects might be displayed for the next step.
This column can also display the Operation item, which enables you to
select from operations defined in the function libraries associated with your
component’s application area. For example, operations that open an
application at the start of a business component or check the value of a
specific property.
If you want to add a comment to your business component, you can select
Comment from the list. Comments are displayed in a free-text cell that
extends the entire width of the row.
80
Chapter 2 • Getting Started with Business Components
Operation Column
The Operation column displays the operation to be performed on the item
selected in the business component step. This column provides a list of all
available operations that can be performed on the object selected in the
Item column, for example, Click or Select.
Value Column
The Value column displays the values for the selected operation. The Value
cell is partitioned according to the number of values that must or can be
supplied for the selected operation.
81
Chapter 2 • Getting Started with Business Components
Output Column
The Output column displays the parameter in which output values for the
step are stored. You can use the value stored in an output parameter later in
the business component or as an input parameter in other business
components or flows.
Similar to the Value column, you can use two types of parameters when
specifying an output parameter—a local parameter or a component
parameter.
For more information on defining the output type and settings for output
values, see "Defining Output Values for Steps" on page 159.
Documentation Column
The Documentation column displays read-only auto-documentation of
what the step does, in a plain-language textual description.
You can copy the contents of the Documentation column to the clipboard.
Right-click the column header row and select Copy Documentation to
Clipboard from the displayed menu. Right-click at the location you want to
paste the text and select Paste.
Checkpoint and output value steps are visible and editable in ALM. For
more information, see "Adding Checkpoints and Output Values to Steps" on
page 174.
82
Chapter 2 • Getting Started with Business Components
83
Chapter 2 • Getting Started with Business Components
Note:
➤ You can add user-defined fields and change the label of any of the fields
in the Components module. You can also customize project lists. For
more details, refer to the HP Application Lifecycle Management
Administrator Guide.
➤ You can use the Script Editor to restrict and dynamically change the
fields and values in the Components module. For more details, refer to
the HP Application Lifecycle Management Administrator Guide.
The New Component dialog box toolbar contains the following buttons:
For a list of available fields, see "Understanding the Details Tab" on page 62.
84
Chapter 2 • Getting Started with Business Components
Note:
➤ You can add user-defined fields and change the label of any of the fields
in the Components module. You can also customize project lists. For
more details, refer to the HP Application Lifecycle Management
Administrator Guide.
➤ You can use the Script Editor to restrict and dynamically change the
fields and values in the Components module. For more details, refer to
the HP Application Lifecycle Management Administrator Guide.
85
Chapter 2 • Getting Started with Business Components
The Component Details dialog box toolbar contains the following buttons:
➤ Send by E-mail. Sends an email with the component details. For more
information, see the HP Application Lifecycle Management User Guide.
➤ Spell Checking. Checks the spelling of the selected word or all the words
in the component.
➤ Thesaurus. Displays a synonym, antonym, or related word for the selected
word.
➤ Spelling Options. Configures the way ALM checks spelling.
The Component Details dialog box contains sidebar entries that provide
additional information about the component. For details on these sidebar
entries (tabs), see "Business Components Module Tabs" on page 45.
For a list of available fields, see "Understanding the Details Tab" on page 62.
86
Chapter 2 • Getting Started with Business Components
Click a component in the component tree and click the Add Step button or
Edit Step button on the toolbar to open the dialog box.
The Component Step Details dialog box toolbar contains the following
buttons:
87
Chapter 2 • Getting Started with Business Components
88
3
Working with Business Components
You create business components and define their details in the Business
Components module. You can then combine these components into
business process tests and flows in the Test Plan module, as described in
Chapter 6, "Getting Started with Business Process Tests."
89
Chapter 3 • Working with Business Components
You can also define manual steps for the component, and then choose
whether to convert it to an automated QuickTest keyword-driven
component, or QuickTest scripted component. For keyword-driven
components, you can begin implementing the automated steps in the
Keyword View. Components can be created and used to build business
process tests and flows even if the implementation of the application has
not yet begun.
You can define input component parameters that are required by the
business component and output component parameter values returned to
other components or flows.
90
Chapter 3 • Working with Business Components
Several of the component shell settings that you define in the Business
Components module, for example, the snapshot and the component
parameters, can be viewed and modified in the Business Component
Settings dialog box in QuickTest.
After the business component has been defined, the subject matter expert
and the automation engineer can work independently of each other, in
parallel or sequentially, depending on the status of the application being
tested.
At the top level of the component tree is the Components root folder, which
contains the:
91
Chapter 3 • Working with Business Components
5 Enter a descriptive name in the Component Folder Name box and click
OK.
The new folder is displayed under the folder you selected in step 3.
92
Chapter 3 • Working with Business Components
2 Enter a descriptive name in the Component Name box and click OK. The
new business component is displayed under the folder in the component
tree. Components in a folder are displayed in alphabetical order. New
components are automatically assigned the status of Under Development.
After you have created your business component, you define its shell and
content, as described in "Defining Business Components" below.
93
Chapter 3 • Working with Business Components
You can also edit business components in the Component Details dialog
box.
94
Chapter 3 • Working with Business Components
For a list of the fields available in the Details tab and the Component Details
dialog box, see "The Component Details Dialog Box" on page 85.
95
Chapter 3 • Working with Business Components
The status can also be modified by the automation engineer in the Business
Component Settings dialog box in QuickTest.
You can use the following section headings that are provided by default:
96
Chapter 3 • Working with Business Components
Notes:
97
Chapter 3 • Working with Business Components
Attaching Images
A snapshot of a specific part of the application provides a visual cue of the
contents or purpose of the business component. You can view the image for
each component in a business process test or flow in the Test Script tab of
the Test Plan module by clicking the relevant thumbnail image. Viewing the
sequence of these images can help you to better understand the business
process test or flow.
You can capture and attach an image associated with the business
component using the Snapshot dialog box, or you can load a previously
saved .png, .jpg, .gif, or .bmp image from your local drive.
For user interface details, see the HP Application Lifecycle Management User
Guide.
98
Chapter 3 • Working with Business Components
3 Display the object you want to capture on your desktop. The Snapshot
dialog box remains in view.
4 Drag and drop the camera icon from the Snapshot dialog box onto the
object you want to use for your snapshot image. The image is captured
and displayed in the Snapshot dialog box.
5 Click the Attach button. The image is saved and displayed in the
Snapshot tab of the component.
Loading an Image
You can load an image for your component from a local drive.
99
Chapter 3 • Working with Business Components
3 Browse to the location of the snapshot you want to attach and click
Open.
Note: The image that you attach or load in the Business Components
module Snapshot tab can be viewed in the Test Script tab of the Test Plan
module, as described in "Test Script Tab" on page 196.
Component parameter names, descriptions, and default values (in the case
of input component parameters) are initially defined in the Business
Components module. Actual values for input component parameters are
assigned in the Test Plan module.
For task details on working with parameters, see Chapter 9, "Working with
Parameters."
100
Chapter 3 • Working with Business Components
To modify a component, select it in the tree and edit the data in the
displayed tabs. Alternatively, double-click the component and edit the data
in the Component Details dialog box. For more information, see "Defining
Business Components" on page 93.
To filter or sort the business components in the tree, click the Filter/Sort
button in the toolbar to open the Filter components dialog box. Any
currently applied filters or sort orders are displayed under the component
tree toolbar.
When defining a filter, you can also include a cross filter, which is available
in the Cross filter tab of the Filter components dialog box. This is an
advanced, second filter on fields in the Test Plan module. For example, you
can define the cross filter to display the components in the component tree
that exist in a specific business process test.
For more information on filtering and sorting a tree, and on using a cross
filter, see the HP Application Lifecycle Management User Guide.
101
Chapter 3 • Working with Business Components
102
Chapter 3 • Working with Business Components
103
Chapter 3 • Working with Business Components
104
Chapter 3 • Working with Business Components
105
Chapter 3 • Working with Business Components
106
Chapter 3 • Working with Business Components
You can delete business components from the Obsolete folder if they are no
longer being used by any business process test or flow.
Tip: You can simultaneously delete from the Obsolete folder all the business
components that are no longer being used by any business process test or
flow. Right-click the Obsolete folder and select Clean unused components.
107
Chapter 3 • Working with Business Components
Business components that are not being used by any business process test or
flow are permanently deleted. Components that are being used by one or
more business process tests or flows are automatically transferred to the
Obsolete folder. Obsolete business components cannot be copied, modified,
or added to other tests and flows. For more information on the Obsolete
folder, see "Understanding the Obsolete Folder" on page 107.
If you delete a component folder in the component tree, its subfolders and
all the business components in the folders are removed. Components
contained in the folders that are being used by one or more business process
tests or flows are transferred to the Obsolete folder.
Before you choose to remove a business component, you can check whether
any business process tests or flows are using that component by selecting it
in the tree and clicking the Dependencies tab.
108
Chapter 3 • Working with Business Components
You can view the folder in which the business component was located when
it was last deleted in the Original Location field in the Component Details
tab. The date that the component was deleted is also displayed in the
Deleted on field.
109
Chapter 3 • Working with Business Components
Note: You can also select the component in the Obsolete folder and drag it
to the appropriate folder in the component tree. This method must be used
for business components whose original location folders have been deleted
in the component tree.
Mailing Components
You can send an e-mail about a component to another user. A link is
included in the email message that enables the recipient to go directly to the
component in the Business Components module.
110
Chapter 3 • Working with Business Components
After a component request has been submitted from the Test Plan module, it
is automatically displayed in the Component Requests folder in the
component tree of the Business Components module. Component requests
cannot be copied in the Component Requests folder, but they may be edited
and version control is supported. Component requests can also be edited in
the Test Plan module.
You can select the Dependencies tab to view details of the business process
tests or flows that are already using the requested business component.
You can also delete the request if an existing component already answers the
same needs as the request, or you otherwise determine that the requested
component is unnecessary.
111
Chapter 3 • Working with Business Components
1 Click the Refresh All button above the component tree to ensure that the
most recent component requests are displayed in the tree.
2 Select the required component request and drag it to the appropriate
folder in the component tree.
The request is displayed in the new position in the tree and its
component tabs are displayed. The status of the request changes from Not
Implemented to Under Development.
3 To rename the request, select it in the tree and then click it. Alternatively,
right-click the request and select Rename. Edit the request name and press
ENTER.
4 Edit the component in the Details, Snapshot, and Parameters tabs, and
create component steps in the Component Steps tab, as described in
"Defining Business Components" on page 93.
112
Chapter 3 • Working with Business Components
Before you choose to remove a component request, you can check whether
any business process tests or flows are using that component request by
selecting it in the Component Requests folder and clicking the
Dependencies tab.
You can delete component requests from the Obsolete folder only if they are
no longer being used by any business process test or flow.
113
Chapter 3 • Working with Business Components
You can also create Business Process Testing standard reports (quick reports)
and graphs in the Analysis menu of the Business Components module (and
the Test Plan module). You can use these quick reports for one-time
reference, or you can save them in the Dashboard module, where you can
continue to configure their data and appearance. The Dashboard module
allows you to define the data that the report or graph includes, and add
extra layers of related data in sub-reports.
For a list of available predefined reports and graphs for Business Process
Testing, see "Predefined Standard Reports" on page 115, and "Predefined
Standard Graphs" on page 116.
114
Chapter 3 • Working with Business Components
To define what data appears in a graph, and how the data is organized, see
the HP Application Lifecycle Management User Guide.
In addition, you can use the Graph Wizard from the Business Components
module or the Dashboard module to create graphs of component data
(Select Analysis > Graphs > Graph Wizard.) You use the Graph Wizard to
create graphs of component data in the same way as you create graphs in
other ALM modules. For task details on the wizard, see the HP Application
Lifecycle Management User Guide.
115
Chapter 3 • Working with Business Components
➤ Components Used By. Shows all the components currently in the ALM
project, including some detail fields, the component descriptions, and the
business process tests and flows that use each component.
➤ Components with Application Area. Shows all the components currently
in the ALM project, including some detail fields, the component
descriptions, and the application area (if any) used by each component.
➤ Report Selected. Lists the components currently selected in the tree.
The following business process testing report is available in the Test Plan
module:
➤ Business Process Tests with Script. Shows all the business process tests
and flows currently in the ALM project, including some detail fields, the
test or flow descriptions, and the components included in each test or
flow. This report also includes information about groups, iterations, On
Failure status, and contents of flows inside business process tests.
116
Chapter 3 • Working with Business Components
117
Chapter 3 • Working with Business Components
118
Chapter 3 • Working with Business Components
Click the Filter & Sort button to specify the criteria for
selecting requirements. For details on using the Filter
dialog box, see the HP Application Lifecycle Management
User Guide.
Full page layout Use to customize the page layout. Click the Customize
button to choose the information that you want to
appear in the document, such as the component status,
description, and whether iterations of the component are
allowed.
Page break after Inserts page breaks in the project document after each
each component component.
Tests that use the Includes a list of business process tests or flows that use
component the component.
119
Chapter 3 • Working with Business Components
120
4
Designing Manual Component Steps
Use the Component Steps tab in the Business Components module to create
or modify manual business component content in the form of steps and
expected results. Combine your manual components into business process
tests and flows and follow the steps to manually test your application.
➤ Creating and Modifying Steps in the Component Steps Tab on page 122
➤ Parameterizing Steps on page 122
➤ Automating Steps—Optional on page 123
121
Chapter 4 • Designing Manual Component Steps
When you finish designing your manual steps, you can run tests containing
components manually using the Test Lab module. You can check the actual
results in the application against the expected results, and then indicate
whether the individual steps of the components passed or failed.
Note: You can use your manual steps as guidelines for creating automated
steps at a later time, using an applicable testing tool. You can use your
manual steps even before the application is ready to be tested automatically,
or before automated tests are complete. For more information, see
Chapter 5, "Working with Automated Component Steps."
In the Component Steps tab for manual components, you create each step
in the component using the Component Details dialog box. For user
interface details, see "The Component Details Dialog Box" on page 85.
Parameterizing Steps
You can expand the scope of your tests, flows, and business components by
using variable input and output parameter values in your manual steps.
Using variable values in your components can affect test results. When you
run your component manually, the parameter is replaced with an assigned
value.
122
Chapter 4 • Designing Manual Component Steps
You can insert input and output parameters into your steps if required.
When you enter parameters, you enclose the parameter names between
three sets of angle brackets (<<<parameter>>>). (Parameters that you insert
into your steps using the Select Parameter feature are automatically
displayed between <<< >>> brackets.)
Note: ALM recognizes the text between <<< >>> brackets as parameter
names, and displays the parameters, or their defined values, for your use
when you manually run the component. Therefore it is recommended that
you avoid using < or > symbols in parameter names or text in your steps.
Automating Steps—Optional
Later, you can convert your manual component to an automated
component. After you automate a component, you can still view its steps in
the Manual Steps sub-tab in the Component Steps tab, and you can still run
the tests containing this component manually, using the descriptions of the
automated steps.
123
Chapter 4 • Designing Manual Component Steps
124
Chapter 4 • Designing Manual Component Steps
2 In the Component Steps tab toolbar, click the New Step button.
The Component Step Details dialog box opens.
3 In the Step Name box, enter a descriptive name for the step.
125
Chapter 4 • Designing Manual Component Steps
4 In the Description box in the Details tab, enter a full description of how
to perform the first manual step.
5 In the Expected Result box, enter the expected application response to
performing the step.
6 If you want to include parameters in the descriptions or expected results
of your manual step, enter the parameter name at the appropriate point
in the text, enclosed in three sets of angle brackets < > (that is,
<<<parameter>>>). The parameter name is automatically validated when
you move to another step.
Note: If you apply any text formatting to the parameter name, you must
apply the same formatting to the three sets of angle brackets <<<>>>. If
you do not, a validation error message opens when you close the step.
7 In the Component Step Details dialog box toolbar, click the Save Step
button while you work to ensure you do not lose any data.
8 In the Component Step Details dialog box toolbar, click the New Step
button to create another new step.
9 After saving your steps, click OK in the Component Step Details dialog
box. The manual steps are displayed in the Component Steps tab.
10 In the Component Steps tab toolbar, click the Save Steps button.
126
Chapter 4 • Designing Manual Component Steps
127
Chapter 4 • Designing Manual Component Steps
You can also create and insert parameters directly from the Component
Steps tab, as described in this section.
The parameters that you insert are enclosed in three sets of angle brackets,
for example, <<<user_name>>>.
128
Chapter 4 • Designing Manual Component Steps
2 At the point in the text where you need to enter a parameter, click the
Insert Parameter button in the toolbar.
The Parameters dialog box opens. The dialog box contains a list of all the
existing input and output parameters in the component, and enables you
to create a new parameter.
Note: If the required parameter is not in the list, you can create it by
clicking the New Parameter button in the toolbar. For more information,
see "Inserting Parameters into Manual Steps" on page 128.
For details on the Parameters dialog box, see "The New Parameter and
Parameter Details Pages" on page 297.
3 Select the required parameter in the list and click OK. The parameter is
inserted into the text, enclosed in <<< >>> brackets.
129
Chapter 4 • Designing Manual Component Steps
130
5
Working with Automated Component
Steps
131
Chapter 5 • Working with Automated Component Steps
132
Chapter 5 • Working with Automated Component Steps
For business process tests or flows to perform properly, this folder and its
subfolders should not be renamed or deleted.
Note: In previous versions of Quality Center, the BPT Resources folder was
created in the Test Plan module. When upgrading from Quality Center
version 9.2, a BPT Resources folder that already exists in the Test Plan
module must be moved to the Test Resources module using the QuickTest
Asset Upgrade Tool for Quality Center.
The BPT Resources folder contains all the QuickTest resources available for
business components in the project, and includes the following subfolders:
133
Chapter 5 • Working with Automated Component Steps
➤ Recovery Scenarios. Contains all the recovery scenario files available for
business components in the QuickTest project. Recovery scenarios define
special operations to recover from errors and unexpected events during
the component run. By default, the Recovery Scenarios folder contains
the DefaultWeb.qrs file, which is a recovery scenario file that can be used
in the Web environment.
Generating a Script
You create manual components in the Component Steps tab. For more
information on manual components and steps, see Chapter 4, "Designing
Manual Component Steps."
You can then automate the manual components using the applicable testing
tool and use the existing manual steps as guidelines to create automated
steps.
For conceptual details about generating the script for automation, see
"Generating a Script to Automate Components" on page 140.
For task details about generating the script for automation, see "How to Start
Automating Manual Component Steps by Generating a Script" on page 141.
For details about adding operations and steps, see "Creating Steps in the
Keyword View" on page 149.
134
Chapter 5 • Working with Automated Component Steps
For more information, see "Adding Checkpoints and Output Values to Steps"
on page 174.
135
Chapter 5 • Working with Automated Component Steps
Note: The automation engineer can change the behavior of these objects
in the application using the RegisterUserFunc utility statement in
QuickTest. For more information, see the QuickTest Professional Object
Model Reference.
136
Chapter 5 • Working with Automated Component Steps
Note: The shared object repository, function libraries and scenario files that
comprise an application area are links to the actual repository and files
stored in ALM. Changes to the stored repository and files affect all the
components that reference them, and it is not necessary to update the
application area for such changes.
When you create a new application area, you define all of the application
area settings and resources needed to create a new business component.
137
Chapter 5 • Working with Automated Component Steps
➤ Either the subject matter expert or the automation engineer in the Test
Resources module in ALM. The application area entity that is created in
ALM provides the structure for automation, using default resources.
You can view the associations between the application area and the other
resources in the Dependencies tab in the Test Resources module in ALM.
138
Chapter 5 • Working with Automated Component Steps
“To create steps, you must first select an application area by clicking the Select
Application Area button.”
139
Chapter 5 • Working with Automated Component Steps
Note: Changing an application area may affect the business component and
prevent it from running correctly. For example, if a component step uses an
object that is not contained in the object repository of the new application
area, the step fails.
140
Chapter 5 • Working with Automated Component Steps
2 In the toolbar, click the Generate Script button. The available automated
component types are displayed in a list.
3 Select the applicable component type from the list to automate your
manual component. The Automation sub-tab is displayed, and the format
of the Automation sub-tab changes to one of the following views,
according to your selection.
➤ Selecting QuickTestKeyword-Driven converts the component to an
automated QuickTest business component. The Automation sub-tab
displays the existing manual component steps as Manual Step
operations in a keyword view format. For more information, see
"Automating Using the Keyword-driven Automation Type" on
page 143.
141
Chapter 5 • Working with Automated Component Steps
Scripted component steps can contain programming logic and can be edited
only in the testing tools in which they were created, such as
QuickTest Professional. They cannot be modified by the subject matter
expert in ALM, but you can include these scripted components in business
process tests.
Note: The manual steps of a scripted component that was created in ALM
can be modified in the Manual Steps sub-tab and used in manual tests if
required.
142
Chapter 5 • Working with Automated Component Steps
In keyword view, columns divide the items into individual cells. You can
choose which columns to display, and you can modify the contents of the
cells, if required. Steps are automatically documented in the Documentation
column of the Automation sub-tab, providing a plain-language textual
description of what the step does in the component. For information on
selecting which columns to display in the Automation sub-tab, see "Setting
Keyword View Options" on page 144.
Each component step you create comprises a row in the Automation tab.
143
Chapter 5 • Working with Automated Component Steps
➤ "To select columns to display or hide in the Keyword View Options dialog
box:" on page 145
➤ "To display or hide specific columns using the context menu:" on
page 146
144
Chapter 5 • Working with Automated Component Steps
In the Columns tab, the Available columns box lists columns not
currently displayed in the Automation sub-tab. The Visible columns box
lists columns currently displayed in the Automation sub-tab.
2 Double-click column names, or select column names and click the arrow
buttons (> and <), to move them between the Available columns and
Visible columns boxes.
145
Chapter 5 • Working with Automated Component Steps
3 In the Visible columns box, set the order in which columns appear in the
Automation sub-tab by selecting one or more columns and then using the
Up and Down arrow buttons.
Note: The order of the columns in the Automation sub-tab does not affect
the order in which the cells need to be completed for each step. For
example, if you choose to display the Operation column to the left of the
Item column, you select the item first, and the Operation column list is
then refreshed to match the selection you made in the Item column.
4 Click OK to close the dialog box and apply the new column display.
Tip: You may want to display only the Documentation column, for
example, if you want to use the steps as instructions for manual testing.
You can do this by selecting Documentation Only. The Documentation
column and any comments defined in the business component are
displayed.
146
Chapter 5 • Working with Automated Component Steps
147
Chapter 5 • Working with Automated Component Steps
Tip: Click Reset all to change all your selections back to the default.
148
Chapter 5 • Working with Automated Component Steps
It is important to note that when the business component runs, the context
of each step in the component must be set by an earlier step or steps. This
means that for an operation on an object to be performed successfully, the
object must be currently displayed.
149
Chapter 5 • Working with Automated Component Steps
2 Define the step by clicking in the cell for the part of the step you want to
add content, as described below. Each cell in the step row represents a
different part of the step.
For each step, you can define the following:
➤ Item. Either an object on which you perform a step, or a user-defined
function (Operation). You must select an option from the Item column
before you can add additional content to a step. For more information,
see "Selecting an Item for a Step" on page 152.
Alternatively, you can choose to add a Comment, which enables you
to add a manual step or other text information between steps. For
more information, see "Entering Comments in the Keyword View" on
page 162.
150
Chapter 5 • Working with Automated Component Steps
or
151
Chapter 5 • Working with Automated Component Steps
After you select an item, you specify an operation for it. For more
information, see "Selecting an Operation for a Step" on page 157.
152
Chapter 5 • Working with Automated Component Steps
If you want to select an item other than a sibling or child object of the
previous step’s object, you can select the Select another object item. The
example below shows the objects available for the step following a
userName edit box object.
Notes:
153
Chapter 5 • Working with Automated Component Steps
For more information on the shared object repository, see the HP QuickTest
Professional for Business Process Testing User Guide.
154
Chapter 5 • Working with Automated Component Steps
Tip: You can search for the object you require by entering the object name
(or the beginning letters of the name) in the Name box and clicking the
Find Next button. You can also limit the number of objects displayed in
the list by selecting the type of object you require from the Type list, for
example, Check Box, or Button.
3 Select an object from the shared object repository tree and click OK. The
selected object is displayed in the Item cell and is also added to the Select
an Item list.
You now need to specify an operation for the step. For more information,
see "Selecting an Operation for a Step" on page 157.
155
Chapter 5 • Working with Automated Component Steps
Business Process Testing provides a set of basic keywords for you to use. The
automation engineer can add to or enhance the keywords in
QuickTest Professional. These keywords are derived from built-in methods
and properties, as well as user-defined functions associated with the
application area. The automation engineer manages the keywords and
selects which of them should be available in the Item list when creating
automated components.
You now need to specify an operation for the step. For more information,
see "Selecting an Operation for a Step", below.
156
Chapter 5 • Working with Automated Component Steps
If you select an application object in the Select an Item list, the Operation
list for that object includes built-in operations and any operations that were
created for that specific object type in the application area’s function
libraries. For example, if you selected a button object, the list contains the
most commonly used methods available for the button object, such as Click.
If you select Operation in the Item column, the list contains the operations
defined in the function library or libraries associated with the component’s
application area. For information on function libraries, see the HP QuickTest
Professional for Business Process Testing User Guide.
Tip: When you position the cursor over an operation in the list, a tooltip
describes the operation.
157
Chapter 5 • Working with Automated Component Steps
Argument Argument
Instructions
Partition Type
158
Chapter 5 • Working with Automated Component Steps
You can parameterize the value for an argument using a local or component
parameter. For more information, see "Parameterizing in the Keyword View"
on page 164.
You can modify the output parameter, as required. If you select a local
parameter, you can modify its name and description directly in the Output
Options dialog box. If you select a component parameter, its name and
description are read-only. You can modify the parameter details in the
Parameters tab of the Business Components module. For more information
on local and component parameters, see "Parameterizing in the Keyword
View" on page 164.
If, after you specify an output value, you choose not to save the output
value, you can cancel it. For more information, see "Canceling Output for a
Parameter" on page 161.
159
Chapter 5 • Working with Automated Component Steps
160
Chapter 5 • Working with Automated Component Steps
Tip: If you click in the Output cell after you specify an output parameter
for an item, the icon is displayed in the cell for a local parameter, and
the icon is displayed in the cell for a component parameter.
161
Chapter 5 • Working with Automated Component Steps
The icon indicates a comment in the Automation sub-tab. You can use
comments for several purposes. For example, you may want to use
comments to plan steps to be included in a business component before your
application is ready to be tested.
Then, when the application is ready, you can use your plan (comments) to
verify that every item that needs to be tested is included in the component
steps.
162
Chapter 5 • Working with Automated Component Steps
Note: You can also click the Add Step button in the toolbar and select
Comment from the list.
To delete a comment:
Select the comment and click the Delete Step button in the toolbar. The
comment is permanently removed from the business component.
163
Chapter 5 • Working with Automated Component Steps
After you define a parameter you can use it to parameterize a value. You can
also change the parameterized value back to a constant value by entering it
directly in the Value cell.
164
Chapter 5 • Working with Automated Component Steps
165
Chapter 5 • Working with Automated Component Steps
166
Chapter 5 • Working with Automated Component Steps
4 Click OK. The local parameter is displayed in the Value cell of your step.
When the business component runs, it uses the value specified in the
parameter for the step.
Tips:
167
Chapter 5 • Working with Automated Component Steps
2 Select the Parameter radio button and then select Component Parameter
from the list. Click the list arrow to view the available component
parameters and their descriptions. Select the component parameter you
want to use for the parameterized value.
3 Click OK. The component parameter is displayed in the Value cell of your
step. When the business component runs, it uses the value specified in
the parameter for the step.
Tips:
168
Chapter 5 • Working with Automated Component Steps
169
Chapter 5 • Working with Automated Component Steps
2 In the Output Types box, select Local parameter. The details for the local
parameter type are displayed.
Tip: If you click the Output cell after you define a local parameter for it,
the icon is displayed in that partition of the cell.
170
Chapter 5 • Working with Automated Component Steps
2 In the Parameter box, click the list arrow to view the available
component parameters and their descriptions. The details for the
component parameter are displayed in read-only format. Select the
component parameter you want to use to store the output value.
171
Chapter 5 • Working with Automated Component Steps
Tip: If you click a partition of the Output cell after you define a
component parameter for it, the icon is displayed in that partition of
the cell.
When working in the Automation sub-tab, you can use the standard editing
commands (Cut, Copy, Paste and Delete) in the context-sensitive menu to
make it easier to modify your steps, operations, or comments. You can also
drag and drop these items to move them to a different location within a
business component.
172
Chapter 5 • Working with Automated Component Steps
Note: You cannot delete a step if one of its cells is in edit mode.
173
Chapter 5 • Working with Automated Component Steps
Checkpoints
When creating a component, automation engineers working in QuickTest
can add standard checkpoints. A checkpoint compares the current value of a
specified property with the expected value for that property, and can help
identify whether your application is functioning correctly.
174
Chapter 5 • Working with Automated Component Steps
175
Chapter 5 • Working with Automated Component Steps
The dialog box displays the following information about the checkpoint:
Information Description
Check box You can accept the selected checks or modify them
accordingly.
➤ To check a property, select the corresponding
check box.
➤ To exclude a property check, clear the
corresponding check box.
Additional References
Related Concepts "Output Value Steps" on page 178
176
Chapter 5 • Working with Automated Component Steps
177
Chapter 5 • Working with Automated Component Steps
You can use standard output value steps to output property values of most
objects. For example, you can use an output value step to output text strings
by specifying to output the text property of an object.
The output value steps determine where the values are stored during the run
session and how they can be used. When you run a component containing
one or more output value steps, QuickTest retrieves each value at the
specified point and stores it in the specified location. When the value is
needed later in the run session, QuickTest retrieves it from this location and
uses it as required.
After the run session, you can view the values retrieved during the session as
part of the session results. For more information, see "Viewing Run Results
of Business Process Tests or Flows" on page 410.
The output value step is visible and editable in ALM in the Output Value
Properties dialog box. The properties are listed in the Properties pane of the
dialog box. The pane includes the properties, the property values that are
currently stored with the object in the object repository, and their value
types. The Output Value Properties dialog box enables you to choose which
property values to output and to define the settings for each value that you
select.
You can select a number of properties to output for the same object and
define the output settings for each property value. When the output value
step is reached during the run session, QuickTest retrieves all of the specified
property values.
178
Chapter 5 • Working with Automated Component Steps
179
Chapter 5 • Working with Automated Component Steps
The dialog box displays the following information about the checkpoint:
Item Description
Additional References
Related Tasks "Viewing Run Results of Business Process Tests or
Flows" on page 410
180
Chapter 5 • Working with Automated Component Steps
The dialog box displays the output definition for the selected property
value.
➤ Change the output type and/or settings for the selected value by clicking
the Modify button. The Output Options dialog box opens and displays
the current output type and settings for the value. For more information,
see "Defining Output Values for Steps" on page 159.
➤ Accept the displayed output definition by clicking OK.
181
Chapter 5 • Working with Automated Component Steps
182
6
Getting Started with Business Process
Tests
You use the Test Plan module to build and configure business process tests
and flows by combining business components into an effective testing
structure.
This chapter introduces the elements of the Test Plan module that are
available for business process tests and flows. Chapter 7, "Managing Business
Process Tests" describes how to work with the features and other options
available in the Test Plan module.
183
Chapter 6 • Getting Started with Business Process Tests
Business process tests and flows are used to challenge the application
implementation by testing the processes on which the whole application is
based.
Note: The Test Plan module can be used to design manual tests, automated
business process tests and flows, and automated tests using other products,
such as HP QuickTest Professional. The information and procedures
described in this chapter are relevant only to Business Process Testing, and
are viewed using the Test Plan Tree view of the Test Plan module.
All the standard functionality in the Test Plan module applies to Business
Process Testing as well. For more information on using the Test Plan
module, see the HP Application Lifecycle Management User Guide.
184
Chapter 6 • Getting Started with Business Process Tests
Note: After login, ALM displays the module in which you last worked.
Note:
185
Chapter 6 • Getting Started with Business Process Tests
The Test Plan module window is shown below, with a business process test
selected and the Test Script tab chosen. Different tabs appear when a folder,
a flow, or other test types are selected.
186
Chapter 6 • Getting Started with Business Process Tests
➤ Filter information, which describes the filter currently applied to the grid
or tree. Located directly above the grid filter boxes or tree.
For more information on the Test Plan menu bar, see the HP Application
Lifecycle Management User Guide.
Tip: You can navigate the Test Plan module, and perform many Test Plan
module commands, using shortcut keys. For a list of shortcut keys, see "Test
Plan Module Shortcuts for Business Process Testing" on page 417.
When working with Business Process Testing, the Test Plan toolbar also
contains the following button:
187
Chapter 6 • Getting Started with Business Process Tests
The entities that comprise the Test Plan tree are described under:
After you have built the basic structure of your plan in the Test Plan tree,
you can create business process tests and flows and assign them to the
appropriate subjects in the tree. You build the content of a flow by dragging
business components from the component tree and dropping them in the
flow or business process test. For more information, see Chapter 8, "Working
with Flows," and Chapter 7, "Managing Business Process Tests."
➤ The top level in the Test Plan tree is the Subject root folder, which
contains the Unattached folder and the test folders.
188
Chapter 6 • Getting Started with Business Process Tests
The Subject folder cannot be renamed or deleted. You can click the Set
Filter/Sort button in the toolbar to sort the other folders in the tree
according to your own requirements.
Selecting the subject folder displays Description, Attachments, and Live
Analysis tabs that enable you to provide a descriptive overview of the
folder’s contents, attach appropriate files, URLs or other information, and
create a graphical representation of data related to test plans and test sets.
For more information on these tabs, see the HP Application Lifecycle
Management User Guide.
➤ The Unattached folder contains tests whose folders have been removed
from the tree and which have not been assigned to any other folder.
The Unattached folders cannot be renamed or deleted. You can click the
Set Filter/Sort button in the toolbar to sort the other folders in the tree
according to your own requirements.
➤ Test folders contain your tests and flows. These folders can be renamed
and deleted. You can click the Set Filter/Sort button in the toolbar to sort
the other folders in the tree according to your own requirements.
Selecting a test folder in the Test Plan tree displays Description,
Attachments, and Live Analysis tabs that enable you to provide a
descriptive overview of the folder’s contents, attach appropriate files,
URLs or other information, and create a graphical representation of data
related to test plans and test sets. For more information on these tabs, see
the HP Application Lifecycle Management User Guide.
➤ In previous versions of Quality Center: The BPT Resources folder was
created in the Test Plan module. For business process tests or flows to
perform properly in ALM, this folder and its subfolders should not be
renamed or deleted.
In ALM, the BPT Resources folder no longer exists in the Test Plan
module. This folder, which contains the business component resources in
the project, is created automatically in the Test Resources module the first
time you click the Automation sub-tab in a new project, when you create
a QuickTest automated component for the first time, or when QuickTest
connects to ALM for the first time.
189
Chapter 6 • Getting Started with Business Process Tests
➤ The status of business process tests and flows in the Test Plan tree are
indicated by their icon colors. For more information, see "Understanding
Business Process Test and Flow Statuses" on page 193.
➤ Tests and flows in the Test Plan tree to which an alert has been sent are
indicated by a red exclamation mark icon to the left of the test or flow
name. Clicking the red exclamation mark opens the alert.
➤ In a version-controlled project, tests and flows checked out by the current
user are displayed with an open green lock icon . Tests and flows
checked out by another user are displayed with a red lock icon , together
with the name of the user. No lock icon indicates that the test or flow is
checked in.
190
Chapter 6 • Getting Started with Business Process Tests
Details Tab
The Details tab enables you to enter details and a general description of the
business process test or flow.
Note:
➤ You can add user-defined fields and change the label of any of the fields
in the Test Plan module. You can also customize project lists. For more
details, refer to the HP Application Lifecycle Management Administrator
Guide.
➤ You can use the Script Editor to restrict and dynamically change the
fields and values in the Test Plan module. For more details, refer to the
HP Application Lifecycle Management Administrator Guide.
191
Chapter 6 • Getting Started with Business Process Tests
Field/Tab Description
192
Chapter 6 • Getting Started with Business Process Tests
Field/Tab Description
Comments tab A rich text edit area enabling you to enter any
additional information or remarks that you want
to communicate to other users, such as future
changes planned for the test or flow, or
alternative tests or flows in which the
components can be used. You can click the Add
Comment button in the tab to automatically
insert your user name and the current server date
into the area as an introduction to your
comments.
The status of a business process test or flow is set to Design when the test or
flow is created, and changes to Maintenance when it has been modified. The
status is subsequently determined by the business component in the test or
flow with the most severe status. For example, suppose you have a business
process test that contains:
➤ 2 Ready components
➤ 1 Maintenance component
193
Chapter 6 • Getting Started with Business Process Tests
In this example, the test status is Error, because Error is the most severe
status of a business component in the test.
If one of the business components was deleted and moved to the Obsolete
folder in the component tree, then the test or flow status would change to
Outdated, because an Obsolete component is more severe than the Error
status.
Business process test and flow statuses and their corresponding icons are
described in the following table, from the least severe status to the most
severe status:
194
Chapter 6 • Getting Started with Business Process Tests
Note: Tests created in other testing tools can also be included in the Test
Plan module tree, and are identified by other icons.
For more information on user defined fields, see the HP Application Lifecycle
Management Administrator Guide.
195
Chapter 6 • Getting Started with Business Process Tests
A green asterisk icon next to the Test Script tab name indicates that the
selected business process test contains one or more business components or
flows, or the selected flow contains one or more business components.
For task information, see "Creating Business Process Tests" on page 213.
196
Chapter 6 • Getting Started with Business Process Tests
The Test Script pane contains the following links for each business
component:
I/O Parameters. Displays the input and output parameters defined for the
business component in the I/O Parameters dialog box. For user interface
details, see "The I/O Parameter Dialog Box" on page 325.
Iterations. Lets you manage the iterations for the business component, flow,
or group, including setting parameter values for each iteration in the
Iterations dialog box. For task details, see "How to Define Iterations to Run
with Different Values" on page 334.
197
Chapter 6 • Getting Started with Business Process Tests
The Test Script pane toolbar contains the following toolbar buttons:
➤ Select Components. Opens the Components and Flows pane on the right
side of the Script pane. The pane displays a tree of the business
components defined for the project in the Components tab. If the item
selected in the Script pane is a business process test, the pane also displays
a tree of the flows defined for the project in the Flows tab. For more
information on building a business process test using these components,
see "Adding Components and Flows to a Business Process Test" on
page 216. For more information on building a business process test using
these flows, see "Adding Flows to Business Process Tests" on page 261.
➤ New Component Request. Enables you to request a new business
component. For more information on generating a request for a new
component, see "Requesting New Components for Business Process Tests
or Flows" on page 227.
➤ Move Up/Move Down.Enables you to change the testing order in the
business process test by moving a selected component or flow up or down
in the order. If you select a group node, you can move the group within
the business component or flow.
➤ Remove from Test. Removes the:
➤ Selected business component from the business process test or flow.
➤ Selected group from the business process test or flow.
➤ Selected flow from the business process test.
If criteria are specified for a component that is about to be removed, a
warning message is displayed. The component is still available for future
use, if required, from the component tree pane.
➤ Go to Component/Flow. Goes to and opens the selected business
component or flow.
➤ Group. Creates a new group that includes the selected business
components and flows. For more information, see "Grouping
Components and Flows" on page 222.
198
Chapter 6 • Getting Started with Business Process Tests
When you select a flow in the Test Plan tree, the Test Script tab includes the
following toolbar buttons:
➤ Add/Edit Run Condition. Enables you to add run conditions to your flow.
For more information, see "Adding Run Conditions" on page 371.
➤ Remove Run Condition. Enables you to remove an existing run condition
from your flow. For more information, see "Managing Run Conditions"
on page 374.
199
Chapter 6 • Getting Started with Business Process Tests
➤ Details. Opens the Details dialog box for the component or flow so that
you can view its details. If you select a component request, opens the
Details dialog box for the component request and you can edit the
request.
If the Components and Flows pane is not visible, click the Select
Components button in the Test Script tab toolbar.
200
Chapter 6 • Getting Started with Business Process Tests
You use the Components and Flows pane to build a business process test by
dragging and dropping one or more business components, flows, or
component requests from the relevant tabs into the Script pane (or by
clicking the Quick Add button in the tab toolbar).
The Components tab and the Flows tab each contain the following toolbar
buttons:
➤ Quick Add. Adds the selected business component or flow after the
component, group or flow selected in the Test Script pane (or at the end
of the test if no component or flow is selected). As the component or flow
is added, parameters, if any exist, are promoted according to the last
promotion method used.
Alternatively, to explicitly set the promotion method, click the down
arrow and choose one of the following options:
➤ Add And Automatically Promote All Parameters. All parameters are
promoted to the next level as the component or flow is added.
➤ Add Without Promoting Parameters. Parameters are not promoted to
the next level as the component or flow is added.
➤ Add while Setting Promote Options. The Promote Parameters dialog
box opens, enabling you to individually set which parameters should
be promoted. For user interface details, see "The Promote Parameters
Dialog Box" on page 310.
For task details on promoting parameters, see "Promoting Parameters and
Viewing Their Status" on page 282.
➤ Refresh Selected. Updates the data in the Components tab or Flows tab.
➤ Find. Enables you to search for a folder in the tree using the Find dialog
box. For information on Find and Replace functionality, see the
HP Application Lifecycle Management User Guide.
➤ Set Filter/Sort. Enables you to filter and sort the business components or
flows in the tree. For more information on filtering and sorting a tree, see
the HP Application Lifecycle Management User Guide.
➤ Go to Component/Test by ID. Displays and highlights the selected
component, flow, or test in the tree.
201
Chapter 6 • Getting Started with Business Process Tests
➤ The Notes tab displays the description and comments of the business
component, flow, or group in read-only format. For more information on
editing or entering implementation requirements for a business
component, see "Providing Component Details and Implementation
Requirements" on page 94.
➤ The Manual Steps tab displays the manual component steps defined for
the component. This tab is not displayed for flows. For more information,
see Chapter 4, "Designing Manual Component Steps."
➤ The Snapshot tab displays the full-sized image of the snapshot attached to
the business component. This tab is not displayed for flows. For more
information on adding an image, see "Attaching Images" on page 98.
➤ The Parameters tab lists the parameters defined for the component or
flow. For more information, see Chapter 9, "Working with Parameters."
202
Chapter 6 • Getting Started with Business Process Tests
For more information on other test types, see the HP Application Lifecycle
Management User Guide.
Parameters Tab
The Parameters tab enables you to define:
203
Chapter 6 • Getting Started with Business Process Tests
➤ Next to the Parameters tab name indicates that the selected test or flow
has one or more parameters.
➤ Next to the Default Value tab name indicates that the selected parameter
has a default value.
➤ The Description tab displays the description and comments for the
parameter.
➤ The Default Value tab displays the default value for the input parameter.
You can edit the default value here, but for advanced editing, see "The Set
Values Page" on page 301.
For general details, see Chapter 9, "Working with Parameters."
For task information, see "Defining Parameters and Setting Default Values"
on page 273.
204
Chapter 6 • Getting Started with Business Process Tests
205
Chapter 6 • Getting Started with Business Process Tests
➤ The Description tab displays the description and comments for the test
configuration.
➤ The Data tab displays the data associated with this test configuration. For
more information, see "How to Define Test Configurations to Run with
Different Values" on page 354.
➤ The Attachments tab. For more information, see "Attachments Tab" on
page 206.
➤ The History tab. For more information, see "History Tab" on page 210.
For task information on working with basic test configurations for manual
tests in ALM, see the HP Application Lifecycle Management User Guide.
For conceptual details on test configurations for business process tests, see
"Working with Parameters—A Workflow" on page 271.
For task details on working with configurations for business process tests,
see "How to Define Test Configurations to Run with Different Values" on
page 354.
Attachments Tab
The Attachments tab enables you to associate an attachment with a business
process test or flow. An attachment can be a file, URL, snapshot, or system
information, and is identified by its name, associated application icon, size,
and latest modification date and time. The tab also contains a Description
area that enables you to enter a description of the selected attachment.
A green asterisk icon next to the Attachments tab name indicates that the
selected test or flow has one or more attachments.
You can select an attachment to view its description in the Description area,
or double-click an attachment to launch it in the appropriate application.
The Attachments tab for business process tests and flows has the same
functionality as the Attachments tab for other test types. For more
information on adding attachments, see the HP Application Lifecycle
Management User Guide.
206
Chapter 6 • Getting Started with Business Process Tests
The tab provides a list of all the testing requirements defined in the
Requirements module, and enables you to map the specific requirements to
the currently selected business process test or flow. This enables you to
methodically build your business process tests and flows according to
preplanned requirements, and also to review the extent to which your tests
and flows cover these testing requirements.
A green asterisk icon next to the Req Coverage tab name indicates that
the selected test or flow includes requirement coverage.
The Req Coverage tab for business process tests has the same functionality
as the Req Coverage tab for other test types. For more information on
linking requirements to a test, see the HP Application Lifecycle Management
User Guide.
A green asterisk icon next to the Linked Defects tab name indicates that
the selected test or flow has one or more defects.
The Linked Defects tab for business process tests has the same functionality
as the Linked Defects tab for other test types.
207
Chapter 6 • Getting Started with Business Process Tests
Dependencies Tab
The Dependencies tab displays the dependency relationships that exist
between:
➤ The selected business component, and entities such as flows and tests.
➤ The selected flow, and entities such as tests.
A green asterisk icon next to the Dependencies tab name indicates that
the selected test or flow has one or more dependencies.
A green asterisk icon next to the Business Models Linkage tab name
indicates that the selected test or flow is linked to one or more business
models.
For user interface details, see the HP Application Lifecycle Management User
Guide.
208
Chapter 6 • Getting Started with Business Process Tests
Criteria Tab
The Criteria tab enables you to view the entities, such as flows and business
components, that comprise a test. These entities are defined as criteria, and
are used for the purposes of analyzing requirement coverage at a more
granular level.
You cannot define criteria for flows. Flows can, however, be defined as
criteria in business process tests.
In the Criteria tab, you can modify a criterion’s name and description.
A green asterisk icon next to the Criteria tab name indicates that the
selected business process test has one criterion or more.
209
Chapter 6 • Getting Started with Business Process Tests
History Tab
The History tab in the Test Plan module comprises the following sub-tabs.
➤ The Baselines tab (or, when versioning is enabled at the site, the Versions
and Baselines tab) displays the baselines of the item selected in the Test
Plan tree. For information on working with version control in ALM, see
the HP Application Lifecycle Management User Guide.
➤ The Audit Log tab displays changes made to specified fields in a test or
flow.
While adding the components and flows, you can also promote parameters
to the next level. For task information on promoting parameters, see
"Promoting Parameters and Viewing Their Status" on page 282.
210
7
Managing Business Process Tests
This chapter describes how to create and manage business process tests in
the Test Plan module of HP Application Lifecycle Management (ALM). The
Test Plan module also enables you to convert existing manual tests to
manual components.
211
Chapter 7 • Managing Business Process Tests
You define the details and description of the test, and then build up the test
structure using a sequence of business components and flows in a specific
business process. For more information, see "Creating Business Process Tests"
on page 213.
You can also define whether a business process test run continues or ends if
a specific component in the test fails. For more information, see "Defining
Failure Conditions" on page 221.
You can define parameters that allow business components and flows to
pass variable values between each other and the business process test. For
more information, see "Managing Parameters at the Component, Flow, and
Test Levels" on page 218.
You can attach appropriate files, snapshots, and URLs to provide additional
information about the business process test, and link the test to preplanned
project requirements.
If a business component that is necessary for a business process test has not
yet been defined in the Business Components module, you can create a
component request. You can use the requested component in the test you
are building, and it also acts as a signal to add a new business component to
the project. For more information, see "Requesting New Components for
Business Process Tests or Flows" on page 227.
212
Chapter 7 • Managing Business Process Tests
ALM enables you to generate a document about your project and business
process test, which includes detailed information about the project’s
requirements, planning, test list, test set folders, and defect tracking data.
For more information, see "Generating Documents for Business Process Tests
and Flows" on page 251.
Note: Much of the functionality available when working with tests is also
available when working with flows. For more information about flows, see
Chapter 8, "Working with Flows."
213
Chapter 7 • Managing Business Process Tests
2 In the Test Plan tree, select the Subject root folder, or another folder or
subfolder, in which you want to create a new folder.
3 Click the New Folder button in the toolbar above the tree. The New Test
Folder dialog box opens.
4 In the Test Folder Name box, enter a descriptive name for the folder and
click OK.
Note: The names of business process test folders must not contain two
consecutive semicolons (;;) or include any of the following characters:
\*^
214
Chapter 7 • Managing Business Process Tests
5 Select the folder in which you want to create the business process test and
click the New Test button in the toolbar, or right-click the folder and
select New Test. The New Test dialog box opens.
6 In the Test Name box, enter a descriptive name for the business process
test.
Note: Business process test names must not contain two consecutive
semicolons (;;) or include any of the following characters: \ / : " ' ? ‘ < > | *
%
215
Chapter 7 • Managing Business Process Tests
Note: If you require a component in your business process test that does not
yet exist, you can create a new component request and include it in your
test in the same way as a regular component. For more information, see
"Requesting New Components for Business Process Tests or Flows" on
page 227.
216
Chapter 7 • Managing Business Process Tests
3 In the relevant tab, expand the folder that contains the business
component or flow required for the business process test.
4 To add the required component or flow to the Script pane, use one of the
following options. For more information, see "Promoting Parameters and
Viewing Their Status" on page 282.
➤ To add the component or flow while setting promotion options, click
the Quick Add button in the toolbar and select Add while Setting
Promote Options. If the component or flow has parameters defined,
the Promote Parameters dialog box opens. This dialog box enables you
to choose whether to promote component or flow parameters to the
next level. Select the parameters you want to promote. For more
information, see "Promoting Parameters and Viewing Their Status" on
page 282.
217
Chapter 7 • Managing Business Process Tests
218
Chapter 7 • Managing Business Process Tests
219
Chapter 7 • Managing Business Process Tests
3 Click OK.
Note: This dialog box can also be used to link the values of output
parameters to input parameters.
220
Chapter 7 • Managing Business Process Tests
2 Click the down arrow and select one of the following from the list:
➤ Exit. The business process test run will end if the selected business
component fails.
➤ Continue. The business process test will run the next business
component if the selected component fails. By default, this failure
condition is defined for each component when it is added to a test.
221
Chapter 7 • Managing Business Process Tests
➤ "Creating Groups"
➤ "Modifying a Group"
➤ "Ungrouping a Group"
For task details on iterating groups, see "How to Define Iterations to Run
with Different Values" on page 334.
Creating Groups
You create groups of business components and/or flows in the Test Script tab
of the Test Plan module. You can combine any number of components or
flows in the business process test into a group, providing they comply with
the following requirements:
222
Chapter 7 • Managing Business Process Tests
➤ Components or flows in the group with input parameters must have the
same number of iterations. When grouping, if iteration ranges are set per
component, ALM requests confirmation that the iteration range should
be set to that of the first component’s iteration range. For example, if the
first component in the group is set to run iterations 2 to 3, the entire
group will be set to run iterations 2 to 3.
➤ For iterations of a group to be successful, the state of the application at
the end of the last item in the group must match the state of the
application before the first item in the group. For example, if the first
component in the group assumes that the Login dialog box in an
application is open, then at the point where the last component of the
group ends, the Login dialog box but be in an open state before the next
iteration begins.
To create a group:
1 Select the business process test or flow in which you want to create one or
more groups and click the Test Script tab.
2 In the Script pane, select one or more contiguous components or flows.
The selected items are highlighted.
3 Right-click, and select Grouping > Group. The group is created above the
items.
223
Chapter 7 • Managing Business Process Tests
4 Click the iterations link for the group to view and modify the iterations
for each of the members in the Group Iterations dialog box.
Groups in the Test Script tab are identified by a group node listed above its
members. The group node contains the group icon and displays the number
of iterations for the group. The group node can be expanded and collapsed
to show or hide its members.
➤ The number of iterations indicates the total number of value sets defined
for the group.
➤ The iteration range indicates the subset of iterations currently set for use
when the test runs.
For task details on working with group iterations, see "How to Define
Iterations to Run with Different Values."
For user interface details on working with the Group Iterations dialog box,
see "Iterations Dialog Boxes and Tabs."
224
Chapter 7 • Managing Business Process Tests
Modifying a Group
You can add and remove members from component groups as required,
change the order of groups in a business process test or flow, and change the
order of members inside a group. In addition, you can add or delete
iterations for all members in the group, and select a partial iteration range
for all members in the group.
To modify a group:
The following table describes the procedures you can perform when working
with groups:
Add a business Drag the component or flow from the Component Tree
component or pane to the relevant position within the group.
flow to a group
Select the component or flow. Drag the item up or down
into the group, and drop it at the required location.
Remove a business Select the component or flow. Drag the item up or down
component or out of the group, and drop it at the required location.
flow from a group
Move a group up Select the group node, and right-click, and select Move up
or down in the or Move down.
test
225
Chapter 7 • Managing Business Process Tests
Add group Right-click the group and click Iterations to open the
iterations Group Iterations dialog box. Click the Add Iteration
button in the toolbar to add a new iteration for all
the members in the group. Adding and configuring group
iterations is similar to adding and configuring component
iterations, as described in "Guidelines for Working with
Iterations" on page 335.
Delete group Right-click the group and click Iterations to open the
iterations Group Iterations dialog box. Select one or more iteration
columns and click the Delete Iteration button in the
toolbar.
Select a partial Click the iterations link for the group to open the Group
iteration range Iterations dialog box. Click the Select Iterations
button in the toolbar. Selecting a partial iteration range
for the members of a group is similar to selecting a partial
iteration range for a single component, as described in
"How to Select Iteration Ranges" on page 337.
Ungrouping a Group
Components and flows can be ungrouped if required.
Remove a grouping Select the group node and click the Ungroup
button in the toolbar.
Completely remove a group, Select the group node and click the Remove
including the members in the from Test button in the toolbar.
group
226
Chapter 7 • Managing Business Process Tests
You can view and edit component requests generated in the Test Plan
module in the Component Tree pane on the right of the Test Script tab. You
can view component requests in the Component Requests folder of the
component tree in the Business Components module.
227
Chapter 7 • Managing Business Process Tests
4 In the Component name box, either enter a unique name for the request
or accept the one supplied for you by ALM.
5 From the Assigned to list, select the subject matter expert to whom the
request is assigned.
6 If required, click the Send E-mail button on the toolbar to send a
notification of the new request. For more information, see the
HP Application Lifecycle Management User Guide.
7 If required, you can click the Snapshot sidebar entry to capture and attach
an image associated with the component request. For task information on
attaching an image, see "Attaching Images" on page 98.
8 Define any other additional properties for the component request at this
time, such as description details, and input or output component
parameters for the component request.
9 Enter the steps that should comprise the component. For information on
how to enter steps, see "About Designing Manual Component Steps" on
page 121.
228
Chapter 7 • Managing Business Process Tests
10 Click OK. The new component request is displayed in the Test Script tab
for the selected business process test or flow, and in the Component Tree
pane under the Component Requests folder.
The new request is automatically assigned the status of Not Implemented.
229
Chapter 7 • Managing Business Process Tests
For the purposes of this discussion, references to business process tests also
include flows.
Note: You can copy a business process test to another project on the same
server or on another server.
When you copy a business process test within the current project, existing
business components in the test are linked to the copied test, and the
original components are not copied.
When you copy a business process test to another project, the test and its
related business components are copied in the same component tree
structure as in the source project (including any components in the
Obsolete folder).
230
Chapter 7 • Managing Business Process Tests
Note: If a copied business process test or flow has the same name as a test
that already exists in the target folder, a duplicate name warning message
is displayed. Click OK. The business process test or flow is copied to the
new position in the Test Plan tree and a suffix, for example _Copy_1, is
automatically added to the test or flow name to create a unique name
within the folder.
4 If you want to modify the name, select the test or flow in the tree and
click again to activate the test label for editing. Alternatively, right-click
the new test or flow and select Rename. Then enter a new name.
5 If required, select the new business process test or flow in the tree and
modify the settings in the tabs. For more information on business process
test settings, see "Test Plan Module Tabs for Business Process Testing" on
page 190.
231
Chapter 7 • Managing Business Process Tests
➤ If you delete a business process test or flow, ALM permanently deletes the
test or flow from the project. The test or flow is removed from all test sets
and the run history is erased.
➤ If you delete a test folder, then by default ALM moves all the tests or flows
in the folder to the Unattached folder in the tree.
Note: It is highly recommended that you do not run a business process test
or flow from the Unattached folder. Move the test or flow to a valid folder in
the Test Plan tree before running it.
232
Chapter 7 • Managing Business Process Tests
2 Select:
➤ Delete folders only to move all the tests or flows in the folder to the
Unattached folder.
➤ Delete folders and tests to permanently delete all the tests, flows, and
subfolders in the folder.
3 Click Yes. The folder or the folders, and the tests or flows, are deleted
according to your selection.
233
Chapter 7 • Managing Business Process Tests
Validating a business process test or flow in the Test Plan module checks all
instances of the test or flow within all test sets.
3 If a validation error is reported, you can click the link in the Entity
column to jump directly to the business component causing the error.
Errors are indicated in the Description column.
234
Chapter 7 • Managing Business Process Tests
Open the Component Iterations dialog box of the component that caused
the error, and modify the component parameter or parameters as
required. For more information on working with business component
parameters, see Chapter 9, "Working with Parameters".
4 Click OK to close the Test Validation Results dialog box.
5 When you are finished, repeat the validation check. If the error has been
resolved, a message is displayed indicating that the validation was
successfully completed.
To convert tests to components, in the Test Plan tree, select one or more
manual tests or a test folder, and click the Convert To Component button.
You can also right-click one or more manual tests or a test folder in the Test
Plan tree, and select Convert To Component.
The new components are created in a folder that you specify or create in the
component tree in the Business Components module.
You can also recursively convert all the tests in a folder and all its subfolders
simultaneously. In this case, the components are created in the same folder
structure in the Business Components module as the original tests in the
Test Plan module. If no manual tests exist in the selected source folder, an
empty folder structure is created in the specified destination folder.
235
Chapter 7 • Managing Business Process Tests
➤ Component name. The name you enter in the New Component Name
box in the Destination Folder dialog box. (The default is the name of the
test.) If a component with the same name already exists in the destination
folder, a suffix, for example _Copy_1, is automatically added to the name
to create a unique name within the folder.
➤ Assigned to. Remains empty.
➤ Automation engine. Displayed as MANUAL.
➤ Created by. The user who converted the test.
➤ Creation date. The date the test was converted.
➤ Status. Displayed as Under Development.
➤ Description. Copied from the Description tab of the test. The name of the
source test and the test ID are also displayed.
➤ Comments. Copied from the Comments tab of the test.
236
Chapter 7 • Managing Business Process Tests
237
Chapter 7 • Managing Business Process Tests
The example shown above opens when a folder is selected in the Test Plan
tree.
238
Chapter 7 • Managing Business Process Tests
Include tests in subfolders Enables you to recursively convert all the tests in
the selected folder and all of its subfolders
simultaneously. If the number of tests is large, this
action may take some time.
Available: When a test folder is selected in the Test
Plan Tree.
New Component Name Enables you to enter a new name for a converted
component. The default is the name of the test.
This field is mandatory.
Note: If a component with the same name already
exists in the destination folder, a suffix is
automatically added to the name to create a unique
name within the folder (for example _Copy_1).
Available: When a single test is selected in the Test
Plan Tree.
239
Chapter 7 • Managing Business Process Tests
Parameters
➤ Test parameter names may contain special characters that are not
permitted in a component parameter name. Such characters are replaced
with an underscore (_) when the test is converted.
➤ If a parameter name does not start with an English letter, the letter p is
added as a prefix to the name when the test is converted.
➤ The parameter default value is copied from the test parameter.
➤ The parameter description is copied from the test parameter.
Component Steps
In the Component Steps tab of the new component:
➤ Step names and expected results are copied from the component steps in
the test.
➤ Parameter names may be changed during the conversion process - see
"Parameters", above. Parameter names in the step descriptions are
changed accordingly.
➤ Certain test steps may call another test. If a component step is of type
“call to”, it is copied as a regular step with the step name “Call”. The
description is displayed as “Call <linked test name>”.
Other
Attachments, linked defects, and the test history are not copied over to the
converted component.
240
Chapter 7 • Managing Business Process Tests
With Business Process Testing, you can also link a requirement to criteria.
When creating coverage between requirements and business process tests,
instead of covering each requirement only at the level of a test and its
configuration(s), you can define coverage by criteria, such as flows or
business components. This enables you to determine if a test passed or failed
on a more granular level. For example, a test can be considered passed even
if just one of its business components passed, such as the most critical one.
Less critical business components have no effect on the overall status of the
test.
241
Chapter 7 • Managing Business Process Tests
242
Chapter 7 • Managing Business Process Tests
If just one of these six component instances fails, the associated tests fails
when requirement coverage is calculated.
Note: When defining the criteria that ALM should use to calculate coverage
for a test configuration, keep in mind that the same criteria are used for all
configurations of the test. It is not possible to define different criteria for
different configurations for the same test.
243
Chapter 7 • Managing Business Process Tests
6 Select the requirement for which to add coverage in the requirement tree.
7 Click Add To Coverage in the requirement tree toolbar (either with or
without children). Either the Add Criterion Coverage or Add Advanced
Coverage dialog box opens.
For user interface details on the Add Criterion Coverage dialog box, see
the HP Application Lifecycle Management User Guide.
8 Select the criteria for which you want coverage and click OK. The selected
criteria are added to the grid.
If you click OK without selecting criteria, the requirement is covered by
the entire test.
Tip: To instruct ALM to hide the dialog box and add coverage only at the
test level, without prompting you to select flow or business component
criteria, select the Don’t show me this dialog again checkbox. You can
reveal the dialog box by selecting View > Req Coverage > Show Advanced
Coverage.
244
Chapter 7 • Managing Business Process Tests
Note: ALM does not create criteria for a flow’s business components
when selecting a flow from the test plan tree. To add business
components as criteria, add coverage by selecting the corresponding
business process test from the test plan tree.
245
Chapter 7 • Managing Business Process Tests
This dialog box shows all criteria (flows, business components) that
have not yet been added as criteria for coverage of this requirement.
For user interface details on the Add Criterion Coverage dialog box, see
the HP Application Lifecycle Management User Guide.
7 In the Add Criterion Coverage dialog box, select the criteria for which you
want coverage and click OK. The selected criteria are added to the grid.
If you click OK without selecting criteria, the coverage is set for the
business process test as a whole and the test name (or, when working with
test configurations, each test configuration name) is added to the grid.
Tip: To instruct ALM to hide the Add Criterion Coverage dialog box and
add coverage only at the test level, without prompting you to select flow
or business component criteria, select the Don’t show me this dialog
again checkbox. You can reveal the Add Criterion Coverage dialog box by
selecting View > Test Coverage > Show Add Criteria to Coverage.
246
Chapter 7 • Managing Business Process Tests
Note: When defining the criteria that ALM should use to calculate coverage
for a test configuration, keep in mind that the same criteria are used for all
configurations of the test. It is not possible to define different criteria for
different configurations for the same test.
247
Chapter 7 • Managing Business Process Tests
7 To add a criterion, select the criterion in the grid and click the Add
Criteria button on the toolbar. The Add Criterion Coverage dialog box
opens. For user interface details on the Add Criterion Coverage dialog
box, see the HP Application Lifecycle Management User Guide.
8 In the Add Criterion Coverage dialog box, select the criteria for which you
want coverage and click OK. The selected criteria are added to the grid.
248
Chapter 7 • Managing Business Process Tests
When working with Business Process Testing, this view also enables you to
examine the status of requirements according to criteria coverage, such as
by flows and business components.
You can also modify the status of the last test criteria run. For example, if a
criterion failed due to a temporary condition that should not impact the
coverage of the requirement, you can override the misleading status by
changing it to Passed.
➤ In the Test Lab module’s Test Sets tab, select a test set and then click the
Execution Grid tab.
➤ In the Test Lab module’s Test Runs tab, select a run.
➤ In the Test Lab module’s Run Details dialog box sidebar, click Criterion
Results.
249
Chapter 7 • Managing Business Process Tests
250
Chapter 7 • Managing Business Process Tests
251
Chapter 7 • Managing Business Process Tests
252
8
Working with Flows
This chapter describes how to create, build, and manage flows in the Test
Plan module of HP Application Lifecycle Management (ALM). This chapter
also describes how to add flows to business process tests.
253
Chapter 8 • Working with Flows
For an example of how flows can be used in more than one business process
test, see "Flow Example" on page 254.
You work with flows in the Test Plan module. After you create a flow, you
develop it by providing flow details, adding components, adding
attachments, and creating associations between the flow and other ALM
records, such as requirements and defects. These associations provide real-
time visibility into modifications for interrelated, application-quality
elements.
Notes:
Flow Example
Suppose you are testing an application for a production and supply
company. The company supplies goods it produces, as well as goods through
third-party order processing.
254
Chapter 8 • Working with Flows
To test these business processes, you would create a flow called Create Sales
Order. This flow would contain the components that perform the
operations necessary to complete the Create Sales Order transaction.
You would create one business process test for the Generating Orders
business process and one for the Third-party Order business process. The
Create Sales Order flow could be used in these two tests since both tests
represent business processes that contain the same transaction.
If, at any time in the future, the Create Sales Order transaction changes in
your application, you would update the Create Sales Order flow. Both your
business process tests would reflect the changes in your application.
255
Chapter 8 • Working with Flows
Creating Flows
You create flows within the Test Plan Tree in the Test Plan module. For
information on working in the Test Plan module, see "About Getting Started
with Business Process Testing in the Test Plan Module" on page 184.
To create a flow:
1 In the ALM sidebar, under Testing, select Test Plan.
2 If the Test Plan Tree is not displayed, select View > Test Plan Tree.
3 Select the folder in the Test Plan Tree in which you want to create the flow
and click the New Test button. The New Test dialog box opens.
256
Chapter 8 • Working with Flows
Developing Flows
After you create a flow, you can use the following tabs to plan and design
the flow:
➤ Details tab. Enables you to view and modify flow details. For more
information, see "Details Tab" on page 191.
➤ Test Script tab. Enables you to build the structure of the flow by selecting
one or more business components and adding them to the flow. For more
information, see "Understanding the Test Script Tab for Flows" on
page 258.
➤ Parameters tab. Enables you to define input and output parameters, and
their values, at the flow level. This allows the flow to receive data from an
external source and to pass data to components or flows. For general
details, see Chapter 9, "Working with Parameters."
➤ Attachments tab. Enables you to associate the flow with a file, a URL, a
screenshot, system information, or the contents of the clipboard. For
more information on working with attachments, see the HP Application
Lifecycle Management User Guide.
➤ Req Coverage tab. Enables you to associate the flow with requirements.
You create requirements coverage for a flow in the same way as you would
for a test. For more information, see the HP Application Lifecycle
Management User Guide.
257
Chapter 8 • Working with Flows
➤ Linked Defects tab. Enables you to link the flow with existing defects, or
to create a new defect and link it to the flow. For more information on
defect linkage, see the HP Application Lifecycle Management User Guide.
➤ Dependencies tab. Enables you to view the dependency relationships that
exist between entities such as components, tests, flows, test resources, and
application areas. For more information on entity dependencies, see the
HP Application Lifecycle Management User Guide.
➤ Business Models Linkage. Lists the business process model entities that
are tested by the selected test or flow. For more details, see the
HP Application Lifecycle Management User Guide.
➤ History tab. Enables you to view changes made to the item selected in the
Test Plan tree, as well as its version history. For details, see the
HP Application Lifecycle Management User Guide.
When working with flows, the Test Script tab enables you to build the
structure of a flow by:
258
Chapter 8 • Working with Flows
➤ Add Run Condition. Enables you to add run conditions to your flow. For
more information, see "Adding Run Conditions" on page 371.
➤ Remove Run Condition. Enables you to remove an existing run condition
from your flow. For more information, see "Managing Run Conditions"
on page 374.
To build a flow:
1 In the Test Plan Tree, select the flow to which you want to add
components and click the Test Script tab. The Test Script tab displays the
components currently in the flow.
2 Click the Select Components button. The Component Tree opens in the
right pane.
259
Chapter 8 • Working with Flows
Tips:
➤ You can search for a component by clicking the Find button in the
search box located in the component tree pane toolbar.
➤ In addition to adding existing components to your flow from the
component tree, you can add component requests. A component
request acts as a signal to add a new business component to the
Business Components module. You add component requests to a flow
as you would for a business process test. For more information on
component requests, see "Handling Component Requests" on
page 110.
4 In the component tree, drag the component into the Test Script pane.
Alternatively, select the component that you want to add to the flow and
click the Quick Add button. You can also click the down arrow and choose
whether to open the Promote Parameters dialog box. This dialog box
enables you to choose whether to promote component or flow
parameters to the next level. In the Promote Parameters dialog box, select
the parameters you want to promote. For more information about
promoting parameters, see "Promoting Parameters and Viewing Their
Status" on page 282.
5 Use the Move Component Up and Move Component Down buttons to
arrange the components in the flow in the correct order. Alternatively,
click the gray sidebar to the left of a component to highlight the
component row and drag the component to the correct position.
6 You can add flow parameters and run conditions to increase the flexibility
of your flow. For information on flow parameters, see Chapter 9,
"Working with Parameters." For information on run conditions, see
Chapter 13, "Defining Run Conditions."
260
Chapter 8 • Working with Flows
Managing Flows
A business process test can comprise business components and/or flows, or a
combination of business components and flows.
You can cut, copy, paste, rename, delete, and validate flows. You perform
these actions for flows in the same way as you would for business process
tests.
Note: In a version-controlled project, you can copy and paste any checked
in flow, as well as any flow that is checked out by another user - the copied
flow will contain the last checked-in data. However, you cannot copy and
paste a flow that is currently checked out by you. You must check-in the
flow before copying and pasting it.
You can send e-mail about a flow to another user. This enables you to
inform other personnel about the status of new and existing flows, and the
components they contain.
After you add flows to a test, you can manage the flows and define flow
iterations in the same way as you would for business components within a
test. For more information on managing business components in a business
process test and defining iterations, see Chapter 7, "Managing Business
Process Tests."
261
Chapter 8 • Working with Flows
262
9
Working with Parameters
You can affect the behavior and results of a business process test by using
parameters to define the values that components and flows receive and
return.
263
Chapter 9 • Working with Parameters
Parameter Overview
You can expand the scope of business process tests, flows, and components
by defining the parameters that a component or flow can receive or return,
and then replacing fixed values with these parameters. This process, known
as parameterization, enables you to perform the same operations on the
application you are testing with multiple sets of data.
Note:
➤ You can also define input and output parameters for a business
component in QuickTest. For more information, see the HP QuickTest
Professional for Business Process Testing User Guide.
➤ Defining iterations enables you to automatically run business
components, flows, and tests multiple times, each time using different
input parameter values. For details, see Chapter 11, "Working with
Iterations."
➤ You can run business process tests for different use-cases of the
application you are testing. Each use-case of a test is represented by a test
configuration. You can associate different sets of data for each test
configuration and its iterations. For conceptual details, see "Test
Configurations Overview" on page 350.
➤ "Parameter Categories"
➤ "Example: Linking Input and Output Component Parameters"
➤ "Example: Using Flow Parameters"
264
Chapter 9 • Working with Parameters
Parameter Categories
Below is an explanation of the parameter categories for business process
testing.
Parameter
Parameter and Description
Categories
265
Chapter 9 • Working with Parameters
Parameter
Parameter and Description
Categories
266
Chapter 9 • Working with Parameters
In this example, a business process test tests the entire loan processing
workflow from receiving the request through approving the request. An
output parameter called LoanID is created by the component CreateLoan.
This output parameter stores the value of the loan ID generated when the
loan is requested. You could then use this value as an input parameter for
subsequent components or flows in the business process test, such as
SearchLoan and ApproveLoan.
267
Chapter 9 • Working with Parameters
268
Chapter 9 • Working with Parameters
The Login and Logout components do not need access to the loan ID.
➤ When designing business process tests using top-down design, you can
create flow input parameters as needed. However, when implementing
the design, input flow parameters must be assigned the value of a
component input parameter in the flow. Otherwise, they have no
relevance in the business process test.
➤ When you promote a flow output parameter from a specific component
output parameter, the flow output parameter is automatically named to
match the component and flow parameter naming convention. If
required, you can change the flow output parameter name to suit your
needs. For more information, see "Parameter Promotion" below.
Parameter Promotion
Promoting parameters enables the components in other flows (and
components and flows in other tests) to access a parameter value.
Promotion widens the scope of a parameter so that more entities can use its
value when a business process test runs.
You can promote component parameters to the flow or test level at the same
time as you add a component to a flow or test. Similarly, flow parameters
can be promoted to the test level at the same time as you add a flow to a
test.
For task details, see "Promoting Parameters and Viewing Their Status" on
page 282.
269
Chapter 9 • Working with Parameters
For user interface details, see "The Promote Parameters Dialog Box" on
page 310.
However, the business process needs other flows in the business process test,
such as CancelLoans, to access the loan ID as well.
270
Chapter 9 • Working with Parameters
For task information, see "Promoting Parameters and Viewing Their Status"
on page 282.
271
Chapter 9 • Working with Parameters
4 Manage parameters
To manage parameters, you can:
➤ Delete parameters that are no longer needed. For task details, see "How
to Delete Parameters" on page 284.
➤ Import and save parameters. For task details, see "How to Import and
Save Parameter Values" on page 285.
272
Chapter 9 • Working with Parameters
Available
Method Purpose / Use See Also
from
273
Chapter 9 • Working with Parameters
Available
Method Purpose / Use See Also
from
For user interface details, see "The New Parameter and Parameter Details
Pages" on page 297.
274
Chapter 9 • Working with Parameters
4 Click New Parameter. The New Parameter dialog box opens for the
corresponding entity (component, flow, or test), as indicated in the title
bar.
5 Enter a descriptive name in the Name or Parameter Name box.
6 Click once in the Description tab at the bottom of the dialog box, and
enter a description for the parameter.
7 For input parameters, specify a default value for the parameter in the
Default Value tab, directly in the grid, or in the Set Value page (accessed
by clicking the arrow in the relevant cell). For details on the Set Value
page, see "The Set Values Page" on page 301.
275
Chapter 9 • Working with Parameters
Tip: You can use the default value for providing a default value in case a
value is not supplied for the run, or you can use the default value as an
example for the type of value that can be provided (for example, a phone
number example could be ###-###-####).
8 Click OK.
9 In the Parameters tab, click the Refresh button on the toolbar. The new
parameter is listed in the grid.
A line for the new parameter is added in the parameter list.
276
Chapter 9 • Working with Parameters
3 In the grid, click either in the Description or Expected Result field at the
position at which you want to add and define a component parameter.
4 Enter a parameter name enclosed between three sets of angle brackets
(<<<parameter>>>). (Parameters that you insert into your steps using the
Select Parameter feature are automatically displayed between <<< >>>
brackets.)
5 Click outside of the Description or Expected Result field.
6 Click the Save button on the toolbar.
7 To see the newly-defined parameter, click the Input Parameters sub-tab
from the Parameters tab and then click the Refresh button on the toolbar.
➤ New flow and test parameters from the Component Iterations dialog box.
➤ New test parameters from the Flow Iterations dialog box.
Tip: This method for creating parameters is convenient when you need to
set different parameter values for each iteration of the test or flow in which
the component (or flow) exists.
277
Chapter 9 • Working with Parameters
Using the Set Value page from the Iterations dialog box, or by typing a value
directly in the relevant cell, you can assign values to parameters accordingly:
Tip: You can also define flow parameters from the Group Iterations dialog
box. You define flow parameters from the Group Iterations dialog box as
you would from the Component Iterations dialog box.
This section describes how to set the value of a component parameter while
creating a newly-defined flow parameter in the process.
To define a new flow or test parameter to use as the value for a parameter:
1 In the Test Plan module, select the relevant flow or test in the Test Plan
tree, and click the Test Script tab.
2 In the Script pane of the Test Script tab, click in the Iterations column on
the row of the entity (flow or component) whose value you want to set.
278
Chapter 9 • Working with Parameters
Tip: You can also type a parameter value directly into the cell in the grid.
279
Chapter 9 • Working with Parameters
While defining iterations for business components, you can also generate
flow parameters to use as values for component parameters.
There are several criteria you can define when generating flow/test input
parameters. For example, you can:
➤ Specify whether to use the same or unique flow/test parameters for each
iteration
➤ Configure the naming convention for your flow/test parameters
➤ Generate flow/test parameters for all component parameters
➤ Generate test parameters for all flows
➤ Specify the cells in the Component Iterations dialog box, Flow Iterations
dialog box, or Group Iterations dialog box for which you want to generate
flow/test parameters
280
Chapter 9 • Working with Parameters
Note: The business component or flow must already have at least one
parameter defined.
4 Click the Iterations link for the component or flow whose input
parameters you want to use as a basis for generating test input parameters.
The Iterations dialog box opens. For user interface details on the
Iterations dialog boxes, see "Iterations Dialog Boxes and Tabs" on
page 340.
Tip: You can also generate flow/test parameters automatically from the
Group Iterations dialog box, based on input parameters for components
within component groups. You generate flow input parameters from the
Group Iterations dialog box as you would from the Component Iterations
dialog box. For more information, see "Grouping Components and Flows"
on page 222.
5 Click the Create Test Parameters button on the toolbar. The Create
Flow/Test Parameters dialog box opens. Define the criteria for creating
and naming test parameters. For more information, see "The Create
Flow/Test Parameters Dialog Box" on page 346.
6 Click OK. The Create Flow/Test Parameters dialog box closes and flow
input parameters are generated for the flow, based on the criteria you
selected.
7 Click OK to close the Iterations dialog box.
281
Chapter 9 • Working with Parameters
As you promote parameters, new parameters with the same name are
created at the higher level.
282
Chapter 9 • Working with Parameters
Note: The Promote Parameters dialog box opens if the Add while
Setting Promote Options menu option was the last menu option
chosen when adding components or flows to the Script pane.
283
Chapter 9 • Working with Parameters
To access the Parameters Promotion Status dialog box in the Test Plan
module:
1 In the ALM sidebar, click Test Plan to open the Test Plan module.
2 In the Test Plan tree, select the relevant business process test or flow, and
click the Test Script tab.
3 In the Script pane toolbar, click Show Test Parameters Promotion Status.
The Parameters Promotion Status dialog box opens. For user interface
details, see "The Parameters Promotion Status Dialog Box" on page 312.
4 Review the information and click OK to close the Flow or Test Parameters
Promotion Status dialog box.
Managing Parameters
This section provides instructions for managing parameters, and includes
the following topics:
284
Chapter 9 • Working with Parameters
Note: If a business process contains the component parameter that you are
deleting, the test may not run successfully.
Parameter values are imported and saved in .csv (comma separated value)
files. This is a file format in which each line is a record, and each data value
field in the record is separated by a comma.
The format of a typical .csv file for a flight application is shown below:
Title
Column Headers
Parameter Values
➤ The first row is reserved as a title row. It can contain any text.
➤ The second row contains the column headers, including the name of the
source business component.
➤ The subsequent rows contain the parameter values that are used in
iterations of the business process test or flow.
You map the parameters to the column headers in the .csv file using the
Map Import Data dialog box. The Map Import Data dialog box opens when
you import parameter values from a file.
You can create a .csv file manually in a text editor, save a spreadsheet file as
a .csv file from a program such as Microsoft Excel, or save a set of already
defined parameters in a business process test or flow as a .csv file.
285
Chapter 9 • Working with Parameters
Tip: Enter a few rows in the Component Iterations or Flow Iterations dialog
box and use the Export option to create an initial .csv file in the proper
format. Then edit and save the .csv file in a text editor or spreadsheet
program to enter actual data.
The values in the column corresponding to the selected header become the
iteration values used for that component or flow parameter.
286
Chapter 9 • Working with Parameters
When the Map Imported Data dialog box opens, it automatically maps any
column headers in the .csv file to the corresponding parameter if the
column headers are identical. If no identical column header exists, the value
<None> is displayed for that parameter.
Note: The parameter values that you import from a .csv file are the values
that were defined when the file was last saved before the import. The values
in the .csv file do not change dynamically according to value changes that
may be implemented in ALM. Conversely, the parameter values in ALM do
not change dynamically when you make changes to the .csv file.
Before importing a .csv file, ensure that it is set up in the proper format, as
described in "How to Import and Save Parameter Values" on page 285.
287
Chapter 9 • Working with Parameters
Note: The title and text instructions in the dialog box differ according to
whether the dialog box is opened for a component or a flow.
288
Chapter 9 • Working with Parameters
5 Specify or browse to the .csv file that contains the required data and click
Open. The Map Import Data dialog box opens.
289
Chapter 9 • Working with Parameters
You can then apply the same values to other component or flow iterations
by importing the saved data. Saving parameters is also a useful way to create
an initial .csv file that you can edit in a spreadsheet program, and then
reimport to the component or flow.
Note: The values that you save to a .csv file are fixed, and do not change
dynamically when you make changes to parameter values in ALM.
Conversely, the parameter values in ALM do not change dynamically when
you make changes to the .csv file. It is important therefore, to check the
parameter values in ALM before saving them to a .csv file to ensure that they
contain up-to-date values.
Note: The title and text instructions in the dialog box differs according to
whether the dialog box is opened for a component or a flow.
290
Chapter 9 • Working with Parameters
4 Click the Export button. The Save CSV (Comma Delimited) File dialog
box opens.
5 Enter a descriptive name in the File Name box and click Save. The
component or flow parameter values are saved in a .csv file. The .csv file is
saved in a comma delimited table format, as shown in the example below.
Each column in the table represents the list of values for a single
parameter. The first row of the table is a title row. The second row
contains the parameter names (column headers). Each subsequent row in
a column represents a value for the displayed parameter during a single
iteration of the business process test or flow.
6 Click OK to close the Iterations dialog box.
291
Chapter 9 • Working with Parameters
The Parameters tab for the Business Components module is shown below.
292
Chapter 9 • Working with Parameters
293
Chapter 9 • Working with Parameters
User interface elements are described below (unlabeled elements are shown
in angle brackets):
294
Chapter 9 • Working with Parameters
295
Chapter 9 • Working with Parameters
<grid filters> Displays a grid filter box under each column name,
enabling you to define a filter condition for a column.
Type directly into the box, or click the box to display the
browse button, which opens the Select Filter Condition
dialog box. For details, see the HP Application Lifecycle
Management User Guide.
Data Resource Specifies the name of an external Microsoft Excel file that
contains sets of parameter values for each configuration
of the test. Used only for configurations defined to access
dynamic data. For task information, see "How to Define
Configurations that Access Dynamic Data" on page 359.
Available from: Parameters tab from Test Plan module.
This field is not available when selecting the Parameters
tab from the Test Script tab in the Test Plan module.
Default Value The default value of the input parameter. This value is
used when the component runs if no other value is
supplied by the business process test or flow.
Available from: Input Parameters sub-tabs for business
components and business process tests (not flows)
296
Chapter 9 • Working with Parameters
The Parameter Details dialog box enables you to view the details for
parameters.
297
Chapter 9 • Working with Parameters
Below is an example of the New Test Parameter dialog box for flow
parameters.
298
Chapter 9 • Working with Parameters
User interface elements are described below (unlabeled elements are shown
in angle brackets):
299
Chapter 9 • Working with Parameters
Default Value tab The default value of the input parameter. This value is
used when the component runs if no other value is
supplied by the business process test or flow. The default
value can be entered in the grid directly, in the Set Value
page, or in the tab at the bottom of the window.
For details on specifying default values for parameters,
see "The Set Values Page" on page 301.
Default values are saved and compared as strings, but can
be specified according to different value types.
Available from: Input Parameters sub-tabs
300
Chapter 9 • Working with Parameters
301
Chapter 9 • Working with Parameters
The following shows a Set Values pane for setting a default parameter value
with the Set Dynamic Date button selected.
The following shows a Set Values dialog box for setting an actual parameter
value for an iteration. This dialog box is accessible from the grid of the
Component Iterations dialog box or the Flow Iterations dialog box. This
shows how the dialog box appears when the Fixed Value button is selected.
302
Chapter 9 • Working with Parameters
The following shows a Set Values dialog box for setting an actual parameter
value for an iteration. This dialog box is accessible from the grid of the
Component Iterations dialog box or the Flow Iterations dialog box. This
shows how the dialog box appears when the Test Parameters button is
selected.
303
Chapter 9 • Working with Parameters
To Access Click the field or cell for the parameter’s value or default
value in one of the following dialog boxes or tabs. Then, if
one exists, click the drop-down button on the right side of
the cell or field.
➤ Parameters tab (in the Business Components and Test Plan
modules)
➤ Parameters dialog box (when inserting a parameter into a
component step)
➤ New Component Parameter dialog box
➤ New Test Parameter dialog box (for flows and tests)
➤ Component and Flow Iterations dialog boxes
➤ Test Iterations tab in the Execution Settings sidebar entry
of the Test Instance Details dialog box
➤ Data sub-tab for static configurations in the Test
Configurations tab for a test in the Test Plan module
Important ➤ The structure and fields of the page change depending on:
Information ➤ The location from which you opened the page
➤ The values you select for fields in this page
➤ All parameter values are internally stored as strings,
regardless of how the parameter values are specified. For
example, you can set a value as a date, using a calendar.
But when the value is stored and compared to other
values, it is compared as a string.
➤ String. One or more characters. When you enter a
parameter value as a string, numeric, or boolean value,
the value is treated in the same way as any other
character. For example, “1” and “1.0” are treated as
different strings.
➤ Encrypted. An encoded string. The characters you enter
are encrypted and displayed as asterisks.
➤ Date. Date values, which can be specified as fixed dates
or dynamic dates (dates relative to another date, such as
the current date).
➤ Values can also be entered by typing a string value directly
in the relevant cell in the grid.
Relevant Tasks "Defining Parameters and Setting Default Values" on page 273
304
Chapter 9 • Working with Parameters
User interface elements are described below (unlabeled elements are shown
in angle brackets):
<dynamic date area> Enables you to provide a time relative to the current
date (such as Today, WeekAgo). For task details, see
"Setting Dynamic Dates" on page 307.
Available when: Set Dynamic Date is selected, and if it
appears, Fixed Value is selected.
<text area> Displays the current value for the parameter, and
enables you to enter and modify the value.
305
Chapter 9 • Working with Parameters
Fixed Value radio Displays areas, fields, and buttons that enable you to
button enter a fixed value for the parameter.
Note: The value can be XML code, but use an external
tool to validate the XML.
Available from: Flow and Component Iteration dialog
boxes (Test Plan module) and the Test Iterations tab
(Test Lab module).
Set Date button Displays <calendar area>, enabling you to select a fixed
date value using a calendar.
306
Chapter 9 • Working with Parameters
Set Dynamic Date Displays <dynamic date area>, enabling you to select a
button date that is relative to a fixed date.
Test Parameters radio Displays the Parameters dialog box, which enables you
button to select (or create) a flow or test parameter whose value
should be used as the value for the selected parameter.
You can set the value of a component parameter to the
value of a flow or test parameter. Similarly, you can set
the value of a flow parameter to the value of a test
parameter.
For user interface details, see "The Parameters Page" on
page 292.
The name of the parameter is entered as a value in the
grid, surrounded by curly brackets { } . The curly
brackets instruct ALM to treat the parameter as a
parameter, and not as a fixed value.
Available from: Flow and Component Iteration dialog
boxes (Test Plan module) and the Test Iterations tab
(Test Lab module), when a component or a flow is
included in a test.
For example, to specify a date 10 days before the current date, the dynamic
date could be: WeekAgo - 3 days
307
Chapter 9 • Working with Parameters
4 Select a time period from the list that you want to use to adjust the
relative date.
5 Click Cancel to close without selecting a date.
➤ You can also enter relative date values manually in <text area> or other
relevant value cells or fields. For details, see "Manually Setting Values for
Dynamic Date Parameter Values" on page 309.
➤ When you run a test or flow either automatically or manually, dynamic
dates are converted to the actual dates they represent.
➤ When a test or flow run ends, the parameters displayed in Last Run Result
show the date used in the run and not the dynamic date value.
➤ When creating a run condition on a parameter that contains a dynamic
date value, define the run condition as a static date (for example,
12/10/2011), which is compared to the actual date used in the run.
➤ The dates use the date on the server (not the client).
➤ For the maximum values that can be added or subtracted to time periods,
see "Considerations" under "Manually Setting Values for Dynamic Date
Parameter Values" on page 309.
308
Chapter 9 • Working with Parameters
The following are the valid relative dates you can enter manually:
Considerations
➤ Date strings are not case-sensitive. For example, both [WeekAgo] and
[Weekago] are valid values.
➤Time periods used to modify date strings are not case-sensitive. For
example, both [YearFromToday + 5 Months] and [YearFromToday + 5
months] are valid.
➤Spaces are not required in dynamic date values. For example, both
[MonthFromToday + 3 w] and [MonthFromToday+3w] are valid.
309
Chapter 9 • Working with Parameters
➤The following maximum values apply to the time periods used to modify
date strings:
Years 5000
Months 60,000
Weeks 240,000
Days 1,680,000
For example, [today + 5000 years] is valid. [today + 5001 years] is not
valid.
The contents of the dialog box differs for components and flows.
310
Chapter 9 • Working with Parameters
<Promote All checkbox> Promotes all parameters when you add the
component to a test or flow, or the flow to a test.
The check boxes for the individual parameters
below this checkbox are disabled.
Cancel Closes the dialog box but still adds the component
or flow, without promoting any parameters.
Parameter Source Displays the source for the parameter (that is, in
which component or flow the parameter was
originally defined).
311
Chapter 9 • Working with Parameters
312
Chapter 9 • Working with Parameters
To Access In the Test Plan module, select a business process test or flow.
Click Show Test Parameters Promotion Status in the Test
Script toolbar.
Important The title bar, structure and fields of the dialog box change
Information depending on the object that was selected in the Test Plan
Module: flow or business process test.
Relevant Tasks "How to View the Promotion Status for Test and Flow
Parameters" on page 284
313
Chapter 9 • Working with Parameters
Input Parameters Displays the input parameters defined for either the flow
or the business process test.
Output Parameters Displays the output parameters defined for the flow.
Available from: The Flow Parameters Promotion Status
dialog box
Test / Flow Name of the parameter defined for the business process
Parameter Name test or flow.
Used By Components Name of the component or flow from which the input
parameter was promoted.
If the parameter was created manually (that is, not
promoted), this value appears as N/A (not applicable).
Available from: The Input Parameters tab of the Flow
Parameters Promotion Status dialog box, and the Test
Parameters Promotion Status dialog box.
314
10
Linking Parameters
You can make data available between business components and flows by
linking output parameters to input parameters.
315
Chapter 10 • Linking Parameters
Linking can occur successfully only when ALM can determine the target
iteration for each source iteration. One of the following conditions must
exist:
➤ Condition 1. The source has one iteration and the target has one or more
iterations (a “1–to–n” relationship).
➤ Condition 2. The source and the target have the same number of
iterations (an “n–to–n” relationship).
316
Chapter 10 • Linking Parameters
Condition 1: Example
The source component has one iteration and the target component has one
or more iterations (a “1–to–n” relationship).
In this case, the same output value of the source component is used in each
iteration of the target component.
317
Chapter 10 • Linking Parameters
Condition 2: Example
The source component and the target component have the same number of
iterations (an “n–to–n” relationship).
In this case, the different output values of each of the source component’s
iterations are used in the respective iterations of the target component.
Considerations
Take the following into account when working with parameter linkage and
iterations:
➤ When you use the output of a previous component as the value for an
input component parameter, the option applies to all component
iterations for that input parameter.
318
Chapter 10 • Linking Parameters
To define a business process test that tests the entire loan request workflow
from receiving the request to approving it, define an output parameter for
the component CreateLoan called LoanID, which stores the value of the loan
ID number generated when the loan is created. You can then use this value
as an input parameter for subsequent components or flows in the business
process test, such as SearchLoan and ApproveLoan.
319
Chapter 10 • Linking Parameters
320
Chapter 10 • Linking Parameters
For user interface details, see "Dialog Boxes for Linking Parameters."
321
Chapter 10 • Linking Parameters
2 From the Test Plan module, select the relevant business process test or
flow.
3 Click the Test Script tab.
Note the I/O Parameters column. This column displays the total number
of input and output parameters defined for each component or flow. For
example, the SearchLoan component has three input parameters. The
total (3 in) is a link.
322
Chapter 10 • Linking Parameters
4 Click the link in the I/O Parameters column for a component or flow
whose input parameter you want to link to an output parameter (that is,
the link of the target). The I/O Parameters dialog box opens.
In the lower pane of this dialog box, you can see which input parameters
are already linked to the output parameters. In the example above, none
of the parameters is linked.
5 For each component or flow input parameter to link:
a Select the checkbox in the Link I/O column. The Select Output
Parameter dialog box opens.
The Select Output Parameter dialog box lists output parameters from
each source business component or flow in the business process test
prior to the current target component or flow.
b Select the output parameter to link to the input parameter and click
OK.
323
Chapter 10 • Linking Parameters
Note: If the number of iterations for the output parameter and the
input parameter do not match, the parameter name is displayed in red.
324
Chapter 10 • Linking Parameters
The title of the dialog box differs according to the entity for which you
opened the dialog box (component or flow).
How to access From the Iterations dialog box for a component or a flow,
click the link in the I/O Parameters column.
325
Chapter 10 • Linking Parameters
Link I/O checkbox Checkboxes for linking the target input parameters to
source output parameters.
How to access From the I/O Parameters dialog box, click a checkbox in
the Link I/O column.
Important ➤ Click the row for the output parameter you want to
information select, and then click OK.
➤ Output parameters from components or flows prior to
the current component or flow in the test hierarchy
are displayed.
326
Chapter 10 • Linking Parameters
327
Chapter 10 • Linking Parameters
328
11
Working with Iterations
You can affect the behavior and results of a business process test by using
iterations. You can configure a component, group, or flow to run a specified
number of iterations during a single run, using different values for the
parameters.
329
Chapter 11 • Working with Iterations
Iterations Overview
Defining iterations enables you to run business components, groups, flows,
and tests multiple times, each time using different parameter values. For
example:
When you run your business component, flow, or test, one iteration is run
for each value. For example, a test or flow with ten sets of data runs ten
times, and a component with six sets of component parameter values runs
six times before proceeding to the next component in the run.
When iterating a component, group, or flow, you determine how, and how
many times, it should run. For task details on defining iterations for
components, groups, and flows, see "How to Define Iterations to Run with
Different Values" on page 334.
When iterating a test, you define how many times each test instance should
run using its configurations. For task details on defining iterations for tests
and test configurations, see "How to Define Test Configurations to Run with
Different Values" on page 354.
Note: You can run business process tests for different use-cases of the
application you are testing. Each use-case of a test is represented by a test
configuration. You can associate different sets of data for each test
configuration and its iterations. For conceptual details, see "Test
Configurations Overview" on page 350.
330
Chapter 11 • Working with Iterations
Example
Consider the following business process test for a banking application
comprising three business components: Login, CreateLoan, and Logout:
As illustrated above:
331
Chapter 11 • Working with Iterations
Group Iterations
In some cases, it may be helpful to iterate several business components
together as a group in certain business process tests or flows.
332
Chapter 11 • Working with Iterations
➤ The first iteration of C1, then the second iteration of C1, followed by
➤ the first iteration of C2, then the first iteration of C3, followed by
➤ the second iteration of C2, then the second iteration of C3, followed by
➤ the third iteration of C2, and then the third iteration of C3 followed by
➤ C4.
This is illustrated as follows:
333
Chapter 11 • Working with Iterations
Component groups in the Test Script tab are identified by a group node
listed above its member components. The group node contains the group
icon and displays the number of iterations for the group. The group node
can be expanded and collapsed to show or hide its member components.
➤ The number of iterations indicates the total number of value sets defined
for the group.
➤ The iteration range indicates the subset of iterations currently set for use
when the test runs.
For information on defining iterations and values for test configurations, see
"How to Define Test Configurations to Run with Different Values" on
page 354.
334
Chapter 11 • Working with Iterations
335
Chapter 11 • Working with Iterations
The Iterations dialog box for the component, group, or flow opens.
Note: You can also set the values of input flow parameters for iterations
from the Test Lab module.
3 If you want the component, group, or flow to run only once, skip to
step 4.
336
Chapter 11 • Working with Iterations
If you want the component, group, or flow to run more than one
iteration, click the Add Iteration button for each iteration you want to
add. You can add a new iteration with blank values, a new iteration with
default values, or a copy of the selected iteration. An additional column
or row is added for each iteration.
4 Set the value of each input parameter for each iteration. For user interface
details, see "The Set Values Page" on page 301.
5 If you want the group, component, or flow to run for a specific range of
iterations, click the Select Iterations button and select the relevant
iterations in the Select Iterations dialog box. For more information on
specifying which component iterations to run, see "How to Select
Iteration Ranges" on page 337.
6 Click OK to close the Iterations dialog box.
337
Chapter 11 • Working with Iterations
Iteration ranges for components, flows, and test configurations that use
static data are specified using the Select Iterations dialog box.
.
Iteration ranges for test configurations that use dynamic data are specified
using the Data Resource Settings dialog box.
.
338
Chapter 11 • Working with Iterations
➤ For business components and flows: In any Iterations dialog box toolbar,
click the Select Iterations button. The Select Iterations dialog box opens.
➤ For business process tests that use configurations that access static data:
a In the Test Plan module, select the business process test.
b Click the Parameters tab.
c Click the Data tab near the bottom of the window.
d In the Data tab toolbar, click the Select Iterations button. The Select
Iterations dialog box opens.
Tip: To run one specific iteration only, enter or select the same iteration
number in both the from and to spin boxes.
3 Click OK. The iterations that are not selected for inclusion in the run are
disabled. When the component or flow runs, only the defined iterations
run.
To select an iteration range using the Data Resource Settings dialog box:
1 In the Test Plan module, select the business process test.
2 Click the Parameters tab.
3 Click the Data tab near the bottom of the window.
339
Chapter 11 • Working with Iterations
4 Click the Data Resource Settings button. The Data Resource Settings
dialog box opens.
5 Specify the rows from the data resource file that should be processed
when the test is run. Iterations are created only for the selected rows.
➤ To process all rows that meet the specified filter condition, if one
exists, in the data resource file, select All Rows.
➤ To indicate a subset of rows, select Rows and enter the row numbers,
separated by commas. A range of rows can be specified with a hyphen
(for example, 3-5 means that rows 3, 4, and 5 will be processed).
6 Click OK.
The title of the dialog box shown above differs according to the entity for
which you opened the dialog box.
340
Chapter 11 • Working with Iterations
Below is an example of the Test Iterations tab for a business process test:
341
Chapter 11 • Working with Iterations
How to access ➤ Component Iterations dialog box: From the Test Plan
module, select any test or flow to which the business
component has been added. In the Test Script tab,
select the component and click the corresponding
Iterations hypertext link in the Iterations column.
➤ Group Iterations dialog box: From the Test Plan
module, select the business process test or flow in
which the group has been defined. In the Test Script
tab, select the group and click the corresponding
Iterations hypertext link in the Iterations column.
➤ Flow Iterations dialog box: From the Test Plan module,
select any test to which the flow has been added. In
the Test Script tab, select the flow and click the
corresponding Iterations hypertext link in the
Iterations column.
➤ Test Iterations tab: From the Test Lab module, select
the test set that contains the test. In the Execution
Grid tab, right-click the test instance and select Test
Instance Details. On the sidebar, click Execution
Settings and select the Test Iterations tab.
Important ➤ Test iterations can also be viewed in the Data tab near
information the bottom of the window after clicking the Test
Configurations tab in the Test Plan module. For task
details, see "How to Define Test Configurations to Run
with Different Values" on page 354.
➤ The Add Iteration, Delete Iteration, and Select
Iterations buttons in the Component Iteration or Flow
Iteration dialog box are disabled if the business
component is a member of a component group. These
are common operations for all group members and
can be accessed by clicking the group node to open
the Group Iterations dialog box. For more
information, see "Grouping Components and Flows"
on page 222.
342
Chapter 11 • Working with Iterations
User interface elements are described below (unlabeled elements are shown
in angle brackets):
343
Chapter 11 • Working with Iterations
<value columns> Displays the value for each parameter in the displayed
iteration.
Available from: Single Iterations view and the Test
Iterations tab
344
Chapter 11 • Working with Iterations
<values> The value of the input parameter when the instance runs.
The value can be entered in the grid directly or in the Set
Value page (accessed by clicking the arrow in the relevant
cell).
For task details on specifying default values for
parameters, see "The Set Values Page" on page 301.
If no value is specified, the default value for that
parameter is used. If no default value is specified, no
value is displayed and the entity may not run correctly.
Values are saved and compared as strings, but can be
specified according to different value types.
Test or flow parameters (parameters whose values are to
be taken from the business process test or flow), are
shown in curly brackets { }. This instructs ALM to treat
the parameter as a parameter and not as a fixed value.
Create Flow/Test Opens the Create Flow/Test Parameters dialog box, which
Parameters enables you to generate flow or test parameters from
business component input parameters or flow input
parameters.
For user interface details, see "The Create Flow/Test
Parameters Dialog Box" on page 346.
For task details, see "How to Generate Flow and Test
Parameters from the Iterations Dialog Boxes" on
page 280.
Description area The description for the parameter and its original source
entity (business component, test, or flow).
Parameter descriptions are initially entered in the
module in which they were created (the Business
Components module or the Test Plan module), or in
QuickTest for automated components.
345
Chapter 11 • Working with Iterations
For task details, see "How to Generate Flow and Test Parameters from the
Iterations Dialog Boxes" on page 280.
346
Chapter 11 • Working with Iterations
Option Description
347
Chapter 11 • Working with Iterations
348
12
Working with Test Configurations
You can run business process tests for different use-cases of the application
you are testing. A test configuration is a set of definitions that describe a
specific use-case of a test. You can associate different sets of data for each test
configuration.
349
Chapter 12 • Working with Test Configurations
Working with test configurations enables you to run the same test under
different scenarios. For example, you may want to check the same test in a
Windows environment and again in a UNIX environment. In this case, you
can define one business process test with two test configurations. The
parameters values for the Windows configuration would contain Windows-
specific values (for example, backslashes in a path name) while the UNIX
configuration would contain UNIX-specific values (for example, forward
slashes in a path name).
When using test configurations with business process tests, you can run a
test many times in succession with different values specified in a Microsoft
Excel file.
350
Chapter 12 • Working with Test Configurations
When the business process test instance runs using a configuration that
accesses dynamic data, the test instance fetches the parameter values for
each iteration of the configuration from the list of parameter values in the
Microsoft Excel file.
➤ At the test level. You can supply a Microsoft Excel file that contains all
parameter values for each iteration of the configuration is specified at the
test level. The Microsoft Excel file is uploaded as a data table in the Test
Resources module, and associated with the business process test
configuration in the Parameters tab of the Test Plan module. For task
details, see "How to Define Configurations that Access Dynamic Data" on
page 359.
351
Chapter 12 • Working with Test Configurations
Note: Configurations that access dynamic data are not available for use with
ALM manual test configurations.
352
Chapter 12 • Working with Test Configurations
➤ The entire business process test tests the following aspects of the
application:
➤ Access rights are correct, based on the identity of the user.
➤ Load is handled well, such as when a bank manager approves many
loans using an external list of data created in Microsoft Excel.
➤ A bank manager can approve urgent, high priority loans, based on a
different external list created in Microsoft Excel. This external list is to
be further narrowed down to include only those loans that have
manager authorization.
Note: Configurations can supply data values for test iterations, but not for
component iterations.
353
Chapter 12 • Working with Test Configurations
Before running a test within a test set, you can specify the values for any test
parameters defined for the test. If you do not specify values, and valid
default values have not been specified, the test run may fail.
354
Chapter 12 • Working with Test Configurations
4 Click the Description tab near the bottom of the window to enter a
description for the configuration.
355
Chapter 12 • Working with Test Configurations
6 Select Static to view the details of the static data for this test
configuration. One iteration exists for this test and the default values for
each test parameter for this iteration are displayed.
a To change the values of a parameter, click in its cell. Type a value
directly in the grid, or click the down arrow to open the Set Value
page. For task details on setting values, see "The Set Values Page" on
page 301.
b To add iterations, click the Add Iteration button and update each
iteration’s parameter values. You can also delete iterations.
c To select the iteration ranges (either partial or all) to run in a business
process test or flow, click the Select Iterations button.
Alternatively, click Dynamic to change the test configuration so that it
access an external Microsoft Excel data resource file. For task details, see
"How to Define Configurations that Access Dynamic Data" on page 359
and "How to Define Configurations that Access Alternate Dynamic Data"
on page 363.
7 Run the test to confirm the test runs according to the expected
configurations, iterations, and parameter values.
356
Chapter 12 • Working with Test Configurations
You can create configurations that access static data from the Test Plan
module, and modify them from the Test Plan and Test Lab modules.
357
Chapter 12 • Working with Test Configurations
5 Enter the name and other details for the configuration, and click OK. The
New Test Configuration dialog box closes.
6 In the Test Plan module, click the Data tab near the bottom of the Test
Configurations tab.
7 Select Static to view the details of the static data for this test
configuration. One iteration exists for this test and the default values for
each test parameter for this iteration are displayed.
8 To change the values of a parameter, click in its cell. Type a value directly
in the grid, or click the down arrow to open the Set Value page. For task
details on setting values, see "The Set Values Page" on page 301.
9 To add iterations, click the Add Iteration button, and update each
iteration’s parameter values. You can also delete iterations and select a
range of iterations that the test should run. For task details on selecting an
iteration range, see "How to Select Iteration Ranges" on page 337.
10 Run the test to confirm the test runs according to the expected
configurations, iterations, and parameter values.
358
Chapter 12 • Working with Test Configurations
The same Microsoft Excel file can be used as a data resource for different
tests.
Note: To work with dynamic data, make sure that the QuickTest Professional
Add-in for Business Process Testing Add-in is installed on the client
computer. The QuickTest Professional Add-in for Business Process Testing is
installed from the HP Application Lifecycle Management Add-ins page.
359
Chapter 12 • Working with Test Configurations
Note: Do not define data in the other sheets. ALM ignores data entered
in the other sheets.
b Specify parameter names in the each cell of the first row. The
parameter names do not have to match the parameter names defined
in the test.
c Specify values for each parameter under the parameter names, each on
a different row. Each row represents an iteration.
d Save the file.
2 In ALM, create a test resource and upload the Microsoft Excel file to it. For
task details on creating test resources and test resource folders, see the
HP Application Lifecycle Management User Guide.
a Select the Test Resources module.
b Either create or select a test resource folder.
c Click the New Resource button to create a new test resource. The New
Resource dialog box opens.
d Enter Data Table as the resource type and click OK.
e Click the Resource Viewer tab.
f Click the Upload File button.
g Navigate and select the Microsoft Excel file you created and click
Open.
h Click OK when prompted that the upload completed successfully. The
Resource Viewer lists the default Microsoft Excel sheets. The data is
now available in ALM.
360
Chapter 12 • Working with Test Configurations
You can double-click Sheet1 to view the data you created in the
Resource Viewer tab.
Note: The data in the Microsoft Excel file starts with row number 2. It
is assumed that the first row in the Microsoft Excel file contains the
names for the data columns, which are mapped to parameter names in
ALM.
3 In ALM, associate the test resource with the business process test.
a In the Test Plan module, select the business process test for which you
are defining this test configuration.
b Click the Parameters tab.
c Click the down arrow next to the Data Resource field in the toolbar.
d Navigate to, and select, the data resource and click OK. The Microsoft
Excel file is now the default external data file for the test.
4 In ALM, map the test parameter names to the resource parameter names
in the Microsoft Excel data resource.
a In the Parameters tab for the test, click the Map Parameters button in
the toolbar. The Map Parameters dialog box opens, listing each test
parameter.
361
Chapter 12 • Working with Test Configurations
b For each test parameter, click in the cell for its corresponding resource
parameter name. Type in the corresponding resource parameter name
for each test parameter, and click OK.
b Enter the name and other details for the configuration, and click OK.
The New Test Configuration dialog box closes.
c Click the Data tab near the bottom of the Test Configurations tab.
362
Chapter 12 • Working with Test Configurations
d Select Dynamic. This instructs ALM to use the Microsoft Excel test
resource file defined for the test in the Parameters tab.
6 To filter the data so that the test runs only on a subset of the parameter
values, either by row or by value, click Data Resource Settings. The Data
Resource Settings dialog box opens. For task details, see "How to Map and
Filter Data Resource Parameter Values" on page 365.
7 Run the test to confirm the test runs according to the expected
configurations, iterations, and parameter values.
The same file can be used as a data resource for different tests.
363
Chapter 12 • Working with Test Configurations
4 Select Dynamic. This instructs ALM to use the Microsoft Excel test
resource file defined for the test in the Parameters tab. We will override
this data resource in step 5.
5 Select Override test data resource. The Data Resource field is enabled.
6 Navigate to, and select, the alternate data resource. Click OK.
7 Click Data Resource Settings to map the test parameter names to the
resource parameter names in the Data Resource Settings dialog box.
364
Chapter 12 • Working with Test Configurations
8 For each parameter listed in the Test Parameter Name column, click the
cell in the Resource Parameter Name column and type the name of the
corresponding resource parameter from the Microsoft Excel file.
9 To filter the data so the test runs only on a subset of the parameter values,
either enter a filter condition or row numbers in the Data Resource
Settings dialog box. For task details, see "How to Map and Filter Data
Resource Parameter Values" on page 365.
10 Click OK in the Data Resource Settings dialog box.
11 Run the test to confirm the test runs according to the expected
configurations, iterations, and parameter values.
Note: This dialog box is also used to map test parameter names to alternate
data resource parameter names when overriding the default data resource
associated with the automated business process test. For each parameter
listed in the Test Parameter Name column, click the cell in the Resource
Parameter Name column and type the name of the corresponding resource
parameter from the Microsoft Excel file.
365
Chapter 12 • Working with Test Configurations
You can filter the parameter values by specifying filter conditions and
specific rows. Only values that match both the filter condition and the
specified rows are processed.
366
Chapter 12 • Working with Test Configurations
3 Specify the rows from the data resource file that should be processed
when the test is run:
➤ To process all rows that meet the specified filter condition, if one
exists, in the data resource file, select All Rows.
➤ To indicate a subset of rows, select Rows and enter the row numbers,
separated by commas. A range of rows can be specified with a hyphen
(for example, 3-5 means rows 3, 4, and 5 will be processed).
4 Click OK.
For user interface details, see the HP Application Lifecycle Management User
Guide.
367
Chapter 12 • Working with Test Configurations
3 Enter a name for the new test configuration and click OK.
The test instance name in the Execution Grid is renamed to reflect the
name of the new configuration with which this instance is now
associated.
In the Test Plan module, a new static test configuration is added for the
corresponding text in the Test Configurations tab.
368
13
Defining Run Conditions
This chapter describes how to define and work with run conditions for your
flows.
When you run business process tests containing flows with run conditions,
the test run results display the results of run conditions in the test, and lists
the components that did not run because a run condition was not met.
369
Chapter 13 • Defining Run Conditions
You would create a flow called Create Standard Order. This flow would
contain the collection of components that perform the operations necessary
to complete the Create Standard Order transaction.
For example, when ordering item number 10, with material number p-101,
the Standard Order: Availability Control screen is displayed. When ordering
item number 10 with material number p-103, this extra screen is not
displayed.
370
Chapter 13 • Defining Run Conditions
You can include the Create Standard Order flow in your Standard Sales
Order test and test when either material number p-101 or p-103 is entered.
In the component that enters the material number, you promote the
parameter containing the item number and the material number, to a test
parameter. When running the test, you can then assign that parameter a
value of either p-101 or p-103.
You then create a run condition for the Standard Order: Availability Control
component. The run condition checks the status of the parameter. If the
value in the material number cell of the table parameter is p-101, the flow
runs the component for the Standard Order: Availability Control screen.
Otherwise, it skips to the next component and continues.
For some additional considerations when working with run conditions, see
"Guidelines for Working with Run Conditions" on page 370.
371
Chapter 13 • Defining Run Conditions
The Run Conditions dialog box contains the following sections. Unlabeled
elements are listed between angle brackets < >.
Section Description
372
Chapter 13 • Defining Run Conditions
Section Description
<value> An edit box in which you enter the valid value for
the condition.
373
Chapter 13 • Defining Run Conditions
Prior to a component run, the condition and value are checked. If the
condition and value are met, the component run continues. If the condition
and value are not met, then the component does not run, and the run
session proceeds according to your selection in the Else box.
Tip: Your selection in the Else box applies only if the run condition is not
met. To specify whether to continue or end the entire run if a component
run fails, set the failure condition for the component. You do this in the Test
Script tab of the Test Plan module. For more information, see "Defining
Failure Conditions" on page 221.
374
Chapter 13 • Defining Run Conditions
As with regular business process tests, you can view test results in the Last
Run Report tab in the Test Lab module.
➤ If you select skip to next component and continue for a run condition,
and the run condition you specify is not met, the test results list the run
status for the component with the run condition as Ignored. The
component is not displayed in the run results.
➤ If you select end component run and fail for a run condition, and the run
condition you specify is not met, the test results list the run status for the
component with the run condition as Failed.
If a run condition is not met, the test results also provide details about the
condition that was not met to help you understand why the component run
failed or did not run.
375
Chapter 13 • Defining Run Conditions
376
14
Running Business Process Tests and Flows
This chapter describes how to run business process tests and flows in
HP Application Lifecycle Management (ALM) and how to view the results.
377
Chapter 14 • Running Business Process Tests and Flows
When a debug run is complete, the Test Plan module displays a summarized
report that shows which of the business components passed or failed the
test. These results are provided for debugging purposes only and are not
stored in ALM.
After a test has been debugged and is ready for testing new builds of an
application, you use the Test Lab module. Tests can be run individually, or
they can be run as part of a test set containing multiple tests of all types. For
more information, see "Running Automated Business Process Tests or Flows"
on page 406.
Automated components can be used in the same test. When you run the
test, the testing tool opens each component in the test. For more
information, see "Working with Other Testing Products" on page 379.
Note: You can continue using the Manual Runner to run your business
process test or flow manually even after automation. However, if even one
of the components in a business process test is manual, you cannot run the
test automatically.
378
Chapter 14 • Running Business Process Tests and Flows
In addition, you can view a comprehensive report that displays many details
about each of the steps performed during the test.
QuickTest Professional
To enable ALM access to a specific QuickTest Professional client, open
QuickTest on the host computer, select Tools > Options, click the Run node,
and ensure that Allow other HP products to run tests and components is
selected in the Run pane.
To run a QuickTest component from ALM, you must have the necessary
ALM permissions. For more information, see the HP Application Lifecycle
Management Administrator Guide.
Note: When you run a QuickTest business process test from ALM, the test
run may be influenced by QuickTest Remote Agent settings on the
QuickTest computer. For more information on the QuickTest Remote Agent,
see the HP QuickTest Professional User Guide.
379
Chapter 14 • Running Business Process Tests and Flows
Note: You can use both the Manual Runner and HP Sprinter to run
automated components manually.
Working with the Manual Runner for business process tests or flows is
described in the following sections:
380
Chapter 14 • Running Business Process Tests and Flows
Note: The Manual Runner for business process tests and flows has additional
features that the Manual Runner used for ALM manual tests does not have.
For information on running ALM manual tests, see the HP Application
Lifecycle Management User Guide.
Using the Manual Runner, you mark each step as passed or failed,
depending on whether the actual application results match the expected
results. You can also mark an entire component as passed or failed.
381
Chapter 14 • Running Business Process Tests and Flows
2 To iterate any test in the test set, select the test and right-click. Select Test
Instance Details from the context menu. The Test Instance Details dialog
box opens. If you do not want to iterate any test in the test set, proceed to
step 7.
3 In the Test Instance Details dialog box, click Execution Settings.
4 In the Test Iterations tab, configure the number of iterations required for
the selected test, and then define the values for each parameter in each
iteration. These parameter values are displayed for any components that
reference them during the manual running of the test.
Parameter values can either be defined:
➤ Manually, in the Test Iterations tab in the Test Lab module.
➤ For each test configuration in the Test Configurations tab in the Test
Plan module.
For details on how to set values, see "How to Define Iterations to Run with
Different Values" on page 334.
5 Repeat steps 2 through 4 for each test in the test set that you want to
iterate.
382
Chapter 14 • Running Business Process Tests and Flows
383
Chapter 14 • Running Business Process Tests and Flows
Tip: You can keep the Manual Runner dialog box visible while you work
with an application by clicking the Keep on Top button. Click the button
again if you do not want to keep the Manual Runner dialog box visible
while you work. For more information on this dialog box, see
"Understanding the Manual Runner Dialog Box" on page 391.
9 If required, expand the first component in the test to view its steps. Select
the first step in the component to see a detailed description of the step, its
parameters and values, and its expected result. For more information, see
"Understanding the Manual Runner Dialog Box" on page 391.
384
Chapter 14 • Running Business Process Tests and Flows
10 Open the application you are testing and perform the first step. If the
selected step requires input parameters, use the values displayed in the
Value cells under the Type: Input section in the Parameters pane. For
more information, see "Working with the Parameters Pane" on page 395.
11 Indicate the result of the step:
➤ If the actual result is the same as the expected result when you perform
the step, click the Pass Selected toolbar button, or select Passed from
the list in the Status column. A green check mark is added to the step
and the step status changes to Passed.
To pass the current step and all its sub-steps at once, click the Pass
Selected arrow and select Pass (Including Sub-Steps).
➤ If the actual result is different from the expected result when you
perform the step, type the actual result in the Actual box. Click the Fail
Selected toolbar button, or select Failed from the list in the Status
column. A red X is added to the step and the step status changes to
Failed.
To fail the current step and all its sub-steps at once, click the Fail
Selected arrow and select Fail (Including Sub-Steps). For example, if
a dialog box does not open as expected during the test, you can
perform none of the subsequent steps that are performed on that
dialog box. In this case, select the specific component iteration node,
click the Fail Selected arrow , and select Fail (Including Sub-Steps).
➤ If you are unable to complete the step, type the reason in the Actual
box and select Not Completed from the list in the Status column.
385
Chapter 14 • Running Business Process Tests and Flows
12 If the step description indicates that you must manually return a value to
an output parameter, enter the resulting value in the Value cell of the
parameter Type: Output list. (Output values are populated automatically
during automated runs, but not during manual runs.) This value may be
used as the input value of one or more subsequent steps or components
in the test, but you can possibly change the value during the component
run.
13 If you detect an application flaw while running the test, click the Add
Defect toolbar button. The Add Defect dialog box opens, enabling you to
add the defect. ALM automatically creates an association between the run
and the new defect. For more information on adding defects, see the
HP Application Lifecycle Management User Guide.
14 If you want to attach an image or other file with more information about
what happened when you performed the step, click the Attach to Step
toolbar button. The Attachments dialog box opens, enabling you to add
attachments. An icon to the left of the step indicates an attachment. Click
the toolbar button to view any attachments. To add attachments to the
entire run, click Attach to Step and select Attach to Run. For more
information on adding attachments, see the HP Application Lifecycle
Management User Guide.
15 Repeat steps 9 to 14 for each step in the component.
386
Chapter 14 • Running Business Process Tests and Flows
16 Click the End Run button when you complete the run.
17 Click the Last Run Report tab at the bottom of the Execution Grid tab and
review the results of your test. For more information, see "Viewing Test
Results in the Test Lab Module" on page 411.
In general, if a run item fails, all of that item’s parent items fail. Similarly, if
all the items of a particular type pass, their immediate parent also passes.
For example:
➤ If one or more steps receive a Failed or Not Completed status, all of its
parent nodes (component iteration, component, flow, and test) also
receive a Failed or Not Completed status.
➤ If all the steps pass in a component iteration, then their immediate parent
(the component iteration) receives a Passed status.
387
Chapter 14 • Running Business Process Tests and Flows
The name of the test you are running and the test set are shown in the title
bar of the Manual Runner.
388
Chapter 14 • Running Business Process Tests and Flows
Toolbar
The Manual Runner window contains the following toolbar buttons:
Attach to Run. Enables you to add attachments to the test run, such as a file,
URL, snapshot of your application, an image from the Clipboard, or system
information. For more information on how to add attachments, see the
HP Application Lifecycle Management User Guide.
Add Defect. Enables you to add a defect in the Defects module regarding
this run. ALM automatically creates an association between the run and the
new defect. For more information on how to add defects, see the
HP Application Lifecycle Management User Guide.
Help. Opens the Online Help for the Manual Runner window.
Tip: You can navigate the Manual Runner, and perform many commands,
using shortcut keys. For a list of shortcut keys, see "Manual Runner
Shortcuts for Business Process Testing" on page 417.
389
Chapter 14 • Running Business Process Tests and Flows
➤ Status. The run status of the test, for example, Failed, or Not Complete.
➤ Exec Date. The date that the run was initiated.
➤ Exec Time. The time that the run was initiated.
You can also click the Operating System Info link in the Run Details pane to
display or edit details about the operating system, operating system service
pack and operating system build.
390
Chapter 14 • Running Business Process Tests and Flows
You can click the More link in the Test Details pane to open the Test
Properties dialog box and display test details and attachments.
➤ The Details tab displays a description of the test and contains the same
information as the Details tab in the Test Plan module. See "Details Tab"
on page 191.
➤ The Attachments tab displays the attachments that are added to the test
and contains the same information as the Attachments tab in the Test
Plan module. See the HP Application Lifecycle Management User Guide.
The Manual Runner dialog box displays the run status, parameters,
description, and actual result of each step.
391
Chapter 14 • Running Business Process Tests and Flows
Tip: The various panes can be hidden or displayed. If a required pane is not
visible, click Show to the right of the pane name. Click Hide to hide
the pane.
The name of the test you are running and the test set are shown in the title
bar of the Manual Runner dialog box.
Toolbar
The Manual Runner dialog box contains the following toolbar buttons:
Pass Selected. Enables you to indicate that the actual result of the selected
step, (test, or component iteration) is the same as the expected result. A
green check mark is added to the step and the step status changes to Passed.
(To pass the current step and all its sub-steps at once, click the Pass Selected
arrow and select Pass All.)
392
Chapter 14 • Running Business Process Tests and Flows
Fail Selected. Enables you to indicate that the actual result of the selected
step or steps is different from the expected result, and to enter the actual
result in the Actual box. A red X is added to the step and the step status
changes to Failed. (To fail the current step and all its sub-steps at once, click
the Fail Selected arrow and select Fail All.)
Return to previously clicked link. Enables you to jump back to the step
containing the input parameter link you clicked previously.
Add Defect. Enables you to add a defect for the step in the Defects module.
For more information on how to add defects, see the HP Application Lifecycle
Management User Guide.
Keep On Top/Not On Top. Enables you to keep/not keep the Manual Runner
dialog box visible while you work with the application you are testing.
Help. Opens the Online Help for the Manual Runner dialog box.
393
Chapter 14 • Running Business Process Tests and Flows
Select a tree item to display its description, parameters and values, and
expected result in the other panes. You can expand or collapse the nodes in
the tree to display or hide the contents.
For more information on the tree hierarchy in the Run Progress pane, see
"Understanding the Run Progress Pane Hierarchy" on page 397.
You can select the Status cell of each run item in the tree to modify its
current status in the test, for example, Passed or Not Completed. For more
information on statuses, see "Understanding Run Statuses" on page 387.
The number of run items modified during the current manual run, and the
total number of run items in the test, is shown next to the Run Progress
pane title.
In the Expected box, you can view the expected result of running the
selected component. This is the text originally entered in the Component
Steps tab of the component in the Business Components module.
Input and output parameters within the text in the Description and
Expected boxes are indicated by sets of angle brackets:
394
Chapter 14 • Running Business Process Tests and Flows
➤ Parameters. You can define parameters for use during a run for each
iteration using the Test Iterations tab in the Test Instance Details dialog
box before running the test.
Alternatively, you can set up values for each test configuration. For more
information, see "How to Define Iterations to Run with Different Values"
on page 334.
Parameter names are shown as links in the Source cells in the Type: Input
section. You can click the link to jump to the component or iteration that
provides the parameter value. You can click the Return to previously
clicked link button to jump back to the step containing the link.
➤ Output parameters. You can enter a value provided by a step in the
application you are testing in the Value cell of the parameter Type:
Output list. You can then use this value as an input value in a subsequent
step.
Input parameters derived from the output parameter of a previous step
are shown as links in the Source cells in the Type: Input section.
The name of the link indicates the name of the source component and
the name of the relevant output parameter, for example, [Component1]
Order_Number.
To retrieve the output parameter value, you can click the link to jump to
the step that provides the value.
You can click the Return to previously clicked link button to jump back to
the step containing the link.
395
Chapter 14 • Running Business Process Tests and Flows
➤ Default values. Default values can be defined for input parameters in the
component Parameters tab in the Business Components module. Default
values are used if no other value is provided from a parameter or output
parameter during the test. For more information, see "Defining
Parameters and Setting Default Values" on page 273.
Input parameter values that are defined as the default values in the
Parameters tab of the component in the Business Components module do
not have any associated link.
Note: The output parameter must already have been created in the
component Parameters tab in the Business Components module. In
addition, the output parameter must have been linked to the input
parameter in the Component Iterations dialog box. For more information,
see "Defining Parameters and Setting Default Values" on page 273.
You manually type in the relevant value provided by the application you are
testing in the Value cell of the parameter Type: Output list when you run the
step. A link to the source component is displayed when the target
component is run. You can click the link to retrieve the required value. This
value may be used as the input value of one or more subsequent steps or
components in the test.
396
Chapter 14 • Running Business Process Tests and Flows
➤ the first iteration of C1, then the second iteration of C1, followed by
➤ the first iteration of the group comprising C2 and C3, followed by
➤ the second iteration of the group, followed by
➤ the third iteration of the group, followed by the component C4.
397
Chapter 14 • Running Business Process Tests and Flows
398
Chapter 14 • Running Business Process Tests and Flows
Note: For clarity, the components in the tree have not been expanded to
display their individual steps.
399
Chapter 14 • Running Business Process Tests and Flows
Tip: You can also access QuickTest to run and debug individual business
components.
Debugging ensures that the test runs properly, and locates any possible
errors that may have occurred during the building of the test. For example,
you can check the logical order of business components in the test, the
pre-conditions and post-conditions required by each component, and the
suitability of component parameter values, especially where output values
are used as input values in other components.
400
Chapter 14 • Running Business Process Tests and Flows
You use the Run or Debug Test dialog box to choose whether to run each of
the business components in the test in Debug mode or in Normal mode.
Note: When you run a business process test or flow in Debug mode in the
Test Plan module, no results or other test data is saved to the ALM database.
401
Chapter 14 • Running Business Process Tests and Flows
The dialog box displays the business components that make up the selected
business process test or flow, and enables you to choose whether to run each
component in the test in Debug mode or in Normal mode.
➤ Debug mode adds a breakpoint that causes the test to pause before
running the first step in the specified business component. The position
of the breakpoint in the test is indicated by a red spot icon in the left
margin of the Keyword View or Expert View in QuickTest. This enables
you to use all the debug options of QuickTest to check the performance of
one or more specific steps in the component. You can then continue the
run.
For more information on QuickTest debugging options, see the
HP QuickTest Professional for Business Process Testing User Guide.
➤ Normal mode runs the selected business component from start to finish
without pausing.
Clicking the relevant cell in the Run Mode column enables you to select the
required run mode from a list. You can also click the appropriate button to
set all the components to Debug mode or to Normal mode simultaneously.
Note: Tests can contain both automated and manual components. Initiating
a test to debug a manual component or test containing one or more manual
components will display a warning message. To run tests that contain
manual components, use the Manual Runner. For information on the
Manual Runner, see "Running a Business Process Test or Flow Manually" on
page 380.
402
Chapter 14 • Running Business Process Tests and Flows
6 For each component, click in the Run Mode column and select Debug or
Normal from the list.
Tip: Click the Debug button to set all the components to run in Debug
mode or click the Normal button to set all the components to run in
Normal mode.
403
Chapter 14 • Running Business Process Tests and Flows
7 Click OK to close the Run or Debug Test dialog box. QuickTest opens on
your computer and runs the first business component in the test.
Note: You should close all browsers before running a test on a Web
browser. QuickTest must load the Web Add-in (as defined in the
application area in QuickTest) before a step in the test opens the browser.
From your task bar, you can toggle between the Test Plan module,
QuickTest, and the application you are testing.
➤ With the first keyword-driven or scripted component in the test, ALM
opens QuickTest and loads the add-ins from the application area that
is associated with that component. It assumes that these are the
required add-ins for all the components in the test.
➤ In the Test Plan module, the status of the test and the name of the
component currently being run are shown below the toolbar in the
Test Script tab, for example, Running(OrderStart). You can click the Stop
Run button to stop the run at any time.
➤ In QuickTest, the status of the test being run, for example Running, or
Ready, is shown in the status bar at the bottom of the window.
➤ In QuickTest, all the debugging functions from the Debug menu, for
example, Step Over or Step Into, are enabled for use. For more
information on applicable debug options, see the HP QuickTest
Professional for Business Process Testing User Guide.
404
Chapter 14 • Running Business Process Tests and Flows
This report details the results of the debug run for each business
component in the test and includes all relevant QuickTest messages.
9 Click Close to complete the run.
405
Chapter 14 • Running Business Process Tests and Flows
406
Chapter 14 • Running Business Process Tests and Flows
Note: Clicking the Run button enables you to run a test manually using
either the standard manual runner or HP Sprinter. For more information
on using the standard manual runner, see "Running a Business Process
Test or Flow Manually" on page 380.
The Automatic Runner dialog box lists the specific tests selected in the
Execution Grid, or all the tests in the test set if you clicked the Run Test
Set button.
407
Chapter 14 • Running Business Process Tests and Flows
3 Select the Run All Tests Locally check box if you want to run the selected
flow, test, or test set using QuickTest on your local computer. If you want
to run the test or test set on a host computer, select the cell in the Run on
Host column, click the browse button, and select a host from the list.
Notes:
If you select Run All Tests Locally, you must have QuickTest Professional
version 10.00 or above installed on your computer.
If you select a remote host, make sure that the HP ALM Client
Registration Add-in is installed on the remote host before running the
flow, test, or test set.
For information on choosing a different host computer, see the
HP Application Lifecycle Management User Guide.
After the test or test set run ends, the overall result of the run is shown in
the Status column of the Automatic Runner dialog box.
408
Chapter 14 • Running Business Process Tests and Flows
6 Close the Automatic Runner dialog box to return to the Test Lab window.
Tip: You can view an execution log of the test or test set run. For more
information, see "Viewing the Execution Log" on page 413.
For auditing purposes, you can instruct ALM to save the BPT wrapper test
as an attachment to the test or flow run. In Site Administration, add the
BPT_WRAPPER_TEST_AUDIT parameter to the list of parameters and set
the value to Y. For more information on setting parameters, see the
HP Application Lifecycle Management Administrator Guide.
To view the contents of a BPT wrapper test, from the Test Lab module’s
Test Runs tab, double-click the attachment icon next to the business
process test or flow run in the grid.
409
Chapter 14 • Running Business Process Tests and Flows
➤ For automated and manual tests, you can view the summarized results of
the run in the Last Run Report tab. This pane lists each step of all the
business components in the test, and, where applicable, the summarized
results of main events reported by QuickTest. For more information, see
"Viewing Test Results in the Test Lab Module" on page 411.
➤ For automated tests, you can view a complete QuickTest report. The
hierarchical report contains details on all the steps for all the different
iterations and business components within the automated test run. For
more information, see "Viewing Reports for Automated Business Process
Tests" on page 412.
➤ For automated and manual tests, you can view an execution log of the
tests run. From this log you can view summarized or detailed results of
any test or test set run. For more information, see "Viewing the Execution
Log" on page 413.
Note: Results are stored in ALM only when the business component runs
from the Test Lab module as part of a test. They are not stored in ALM when
you run the test in Debug mode from the Test Plan module, or when
running components directly from QuickTest.
410
Chapter 14 • Running Business Process Tests and Flows
Note: The results of automated steps run in previous versions of ALM are
not displayed in the Last Run Report tab.
If the Last Run Report tab is not visible, click the Show button at the
bottom-right of the Execution Grid tab. After clicking this button, it
changes to a Hide button that you can later use to hide the pane.
Expand and collapse the tree entities in the Name column as necessary to
see more or less details.
2 Select steps in the pane to view a description of the events in the test or
the reason for a failed event.
411
Chapter 14 • Running Business Process Tests and Flows
412
Chapter 14 • Running Business Process Tests and Flows
Note: The Execution Log is created only if the Enable Log check box is
selected in the Automatic Runner dialog box before the test or test set runs.
For more information, see "Debugging Tests in the Test Plan Module" on
page 400.
413
Chapter 14 • Running Business Process Tests and Flows
3 If required, you can filter the list to display fewer entries by:
➤ Selecting the specific test you want to view from the Test list, and
clicking the Refresh button.
➤ Selecting your local computer or the specific host on which the test
was run from the Host list, and clicking the Refresh button.
4 In the list of test runs for the selected test set, select the test whose results
you want to view. The results of the run are displayed in the box at the
bottom of the log window.
414
A
Business Process Testing Keyboard
Shortcuts
You can navigate HP Business Process Testing, and perform many Business
Process Testing commands, using shortcut keys.
415
Appendix A • Business Process Testing Keyboard Shortcuts
F5 Refreshes.
416
Appendix A • Business Process Testing Keyboard Shortcuts
F5 Refreshes.
417
Appendix A • Business Process Testing Keyboard Shortcuts
418
B
Business Process Testing Glossary
See also: The glossary in the HP Application Lifecycle Management User Guide.
Application Area. Application areas contain all of the settings and resources
required to create the content of keyword-driven business components for a
particular application or part of an application. These include
representations of the objects from your application contained in the shared
object repository, and user-defined operations, contained in function
libraries.
419
Appendix B • Business Process Testing Glossary
Business Process Test Parameters. Variable values that a business process test
or flow can receive and then pass to business components or flows for use as
input values.
420
Appendix B • Business Process Testing Glossary
Flow input parameters. Variable values that enable you to define data used
by a flow that is provided to the flow from an external source.
Flow output parameters. Values that enable you to define data that is
retrieved and stored by a flow and can be used in subsequent components in
a flow.
Roles. The various types of users who are involved in Business Process
Testing.
Run condition. A conditional statement you can insert into a flow to check
the current value of a given parameter before running a component in a
flow. The run condition determines whether to run the component, skip the
component run, or skip and set the component status to fail.
421
Appendix B • Business Process Testing Glossary
Static data for configurations. Values for a test configuration specified from
within ALM.
Subject Matter Expert. The subject matter expert who uses ALM to create
business components, flows, and business process tests.
422