Module 006 TEST PLANNING
Module 006 TEST PLANNING
Module 006 TEST PLANNING
TEST PLANNING
Page |1
Students learn how to work with the Desktop client and the new Web client. In
addition, using the HP Sprinter and its new features are discussed, including:
Objectives:
After completing this module, you should be able to:
So, what are we waiting for? Let us now explore the Lifecycle
Management of Application
Introduction
The typical application is too large to test as a whole. The Test Plan
module enables you to divide your application according to functionality. You
divide your application into units, or subjects, by creating folders in a Test Plan
tree. This is a graphical representation of your test plan, displaying your tests
according to the hierarchical relationship of their functions.
You perform all test-planning tasks from the Test Plan module. To navigate to
this module, click the Test Plan icon under the Testing group from the ALM
sidebar.
The test plan is displayed in the left pane of the Test Plan module. The
Test Plan tree is a graphical representation of your project test plan. It contains
the Subject folder at the root level. You create folders in the Subject folder and
add tests to these folders.
The Test Plan tree:
Organizes tests according to the functional units or subjects of an
application
Provides a clear picture of the testing building blocks and assists in the
development of actual tests
Shows the hierarchical relationships and dependencies between tests
When planning your Test Plan tree, consider the hierarchical relationships
of the functions in your application. Divide these functions into subjects and
build a Test Plan tree that represents the function of your application. The slide
above shows an example of a Test Plan tree for an online travel agency. The main
test subject Flight Reservation is displayed as a first-level folder. To break down
complex subjects, you use second-level folders or subjects as you see for Book
Flight, Flight Confirmation, Flight Cost, and Flight Finder.
After you create the Requirements tree, the requirements are used as a
basis to define your test plan in the Test Plan module. ALM has a built-in wizard
that converts your project requirements to tests.
You convert requirements to tests to automatically create a one-to-one
mapping between requirements and tests. ALM replicates the hierarchy in the
Requirements tree in the Test Plan tree. In addition, during this conversion
process, ALM enables you to decide whether a particular requirement should be
converted to a folder, a test, or a design step.
Converting a requirement to a test has some limitations. For example,
while defining requirements, you list the objectives that the requirement must
meet. However, you do not specify the impact of a failing requirement on the
testing process. After you convert a requirement to a test, you must manually
specify the impact of a failing requirement on the testing process. In addition,
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
Page |4
you must specify the pass and fail conditions for every test.
For example, the requirements for an application login process specify
valid values for the user name and password fields. You could convert these
requirements directly to tests, where the pass or fail condition for each test
would be based on the allowable values for each field. However, a failure of
either test would mean that the application user could not be authenticated,
resulting in a serious impact to the testing process.
Selecting an Automatic Method for Conversion
To convert requirements to tests, you select an automatic conversion
method that determines whether tests are converted to design steps, tests, or
test folders.
To select an automatic method for conversion, perform the following steps:
1. In the ALM sidebar, click the Requirements icon under the Requirements
group.
2. From the ALM menu bar, select View → Requirements Tree.
3. From the Requirements tree, select a requirement.
4. From the ALM menu bar, select Requirements →Convert To Tests. The
Choose An Automatic Conversion Method dialog box is displayed.
5. In the Choose An Automatic Conversion Method dialog box, under
Automatic Conversion Method, select a conversion method and click the
Next button. The Manual Changes To The Automatic Conversion dialog
box is displayed.
After you select an automatic method for conversion, you can customize the
conversion. For example, you select the Convert Lowest Child Requirements To
Design Steps automatic conversion method. During the conversion process, you
realize that some of the converted requirements should be represented as
folders in the Test Plan tree. ALM enables you to select a requirement and
convert it to a test plan folder. To make changes to the automatic conversion,
perform the following steps:
1. In the Manual Changes to the Automatic Conversion dialog box, from the
Name list, select a requirement.
2. From the toolbar, click one of the following buttons:
Convert To Subject – Converts the selected requirement to a subject
folder
Convert To Test – Converts the selected requirement to a test
Convert To Step – Converts the selected requirement to a test step
Convert To Description – Converts the selected requirement to a test
description
Exclude From Conversion – Excludes the selected requirement from
the conversion process
3. Click the Next button. The Choose the Destination Subject Path dialog box
is displayed.
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
Page |5
After you manually change the automatic test conversion, you select the
destination path for the newly created tests.
To select the destination path, perform the following steps:
1. In the Choose the Destination Subject Path dialog box, click the Browse
button in the Destination Subject Path field. The Select Destination
Subject dialog box is displayed.
2. In the Select Destination Subject dialog box, select a test plan folder and
click the OK button from the Test Plan tree.
3. Click Finish to close the Choose The Destination Subject Path dialog box.
The Information message box informs you that the conversion process
is successfully completed.
4. Click the OK button to close the Information message box.
To create the Test Plan tree in the Test Plan module, you manually create
folders and add tests to these folders. The Test Plan tree starts with the Subject
folder, which is available by default. From the Subject folder, you create main
subject folders and add subject subfolders within each main folder.
To add a folder, perform the following steps:
1. From the Test Plan tree, select the Subject folder to create a main subject
folder.
Note: You can select an existing main folder to create a subfolder.
2. On the ALM toolbar, click the New Folder button. The new test Folder
dialog box is displayed.
3. In the Test Folder Name field, type a name for the new test subject.
Note: A folder name cannot include any of the following characters: \, ^, or
*.
4. Click the OK button to add the folder to the Test Plan tree
Adding a Test
To add a test to the Test Plan tree, you define basic information about the
test, such as its name and type.
To add a test, perform the following steps:
1. From the Test Plan tree, select the subject folder in which you want to
add the new test.
2. On the ALM toolbar, click New Test. The New Test dialog box is
displayed.
3. From the Type list, select a type for the test.
4. In the Test Name field, type a name for the test.
Note: A test name cannot include any of the following characters: \, /, :,
“, ?, <, >,|,*,%, or‘.
5. Click the OK button to add the test to the Test Plan tree.
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
Page |6
Test Types
You use the Details tab to define the basic information about a test, such
as its status, creation date, and designer. In addition to the standard fields
provided, you use the Description field to provide a brief overview of the test.
For example, the slide above shows the Description field that contains a
statement about the test.
Note: You can provide additional information about a test by adding
attachments in its Attachments tab. This tab provides the same functionality as
the Attachments tab in the Requirements module.
Note: A test name preceded by an exclamation point in the Test Plan tree
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
Page |7
indicates an alert for the test. A red exclamation means that the alert is new. A
gray exclamation means that the alert has been read. The site administrator can
define and activate alert rules that create alerts and send email when changes
occur in the project.
After defining manual tests, you specify the detailed steps to execute
each test. Adding a test step involves specifying the actions to perform on the
application, the input to enter, and the expected output.
To add and define a test step, perform the following steps:
1. From the test plan tree, select a test.
2. In the right pane, click the Design Steps tab.
3. On the Design Steps page toolbar, click the New Step button. The design
step Details dialog box is displayed.
4. In the Step Name field, type a name for the test step.
5. In the Description field, type the instructions for this step.
6. In the Expected Result field, type a description of the expected result for
this step. In addition, specify detailed instructions that testers can use to
verify the result.
7. Click the OK button. The test steps are displayed on the Design Steps
page. A footprint icon appears next to the test name in the Test Plan tree.
This icon indicates that the steps are defined for the test.
How to Design Test Steps
Prerequisites – Tests, and basic test information, are defined in the Test
Plan tree.
Create test steps – Describe the steps a tester must perform to run a test.
A test step includes the actions to perform on your application, the input
to enter, and the expected results.
Call a template test (optional): – To include commonly used instructions
in your test, for example Log in to the application, you can call a template
test from within your test that includes common instructions.
Generate an automated test (optional) – After you have created steps for
a manual test, you can generate a test script skeleton in which you can
write scripts to run the test as an automated test
Results – The design steps that you add appear in the Design Steps tab.
The first time you add design steps to a test, a footprint icon is displayed
in the Test Plan tree next to the test icon, indicating that steps were
defined for the test.
Considerations for Designing Test Steps
When designing test steps, be sure to define all application operations to
completely test the application. To ensure that you clearly and accurately
capture all of the actions required to complete an operation:
Write the test steps in active voice. When you use active voice, the person
executing the test gets clear instructions about how to perform the test
steps.
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
Page |8
Use one action per step and clearly state whether the tester or the
application performs the action.
Ensure that you do not leave out a step.
Use consistent terminology throughout the test.
Validate that the fields indicated in the test exist and are labeled the same
way as they are labeled in the system being tested.
Specify the pass and fail conditions for the test.
Calling a Test
You can build test steps to include calls to other tests. This enables you
to modularize and reuse a standard sequence of steps across multiple tests. For
example, the slide above shows that the Define Savings Goal test contains a call
to another test, Calculate Goal.
To call another test as a step within a test, perform the following steps:
1. Click the Design Steps tab of the calling test.
2. On the Design Steps page toolbar, click the Call to Test button. The select
Test dialog box is displayed.
3. Select the test to call and click the OK button. This adds a step in the
current test and labels it as Call <Test_Name>. If you call a test that has
unassigned parameters, the Parameters of Test dialog box are displayed.
You now assign the parameters values.
Test Parameters
Defining a Parameter
When you call a test that contains parameters, you can set the values that
you want to pass to these parameters. The Define Savings Goal test in the slide
above calls the Calculate Goal test and passes specific values to the Calculate
Goal test.
To call a test and pass values to its parameters, perform the following steps:
1. From the Test Plan tree, select the calling test.
2. Click the Design Steps tab of the calling test.
3. Click the Call to Test button. The Select Test dialog box is displayed.
4. Select the test that you want to call.
Note: If you check the Show Only Template Tests checkbox, only
template tests are displayed in the Select Test dialog box. Template tests
are test designs that contain steps and parameters that are generally
reusable across different tests. However, it is not necessary to convert a
test to a template before you can call it from other tests.
5. Click the OK button. The Called Test Parameters dialog box is displayed.
6. Type the values that you want to pass to the parameters in the called test.
7. Click the OK button to add a new step that contains the call to the selected
test and the values that need to be passed to the test parameters.
You can edit the values that you assigned to parameters even after you
define a test call. For example, you can still edit the test step in the slide above
to change the values that it assigns to the parameters of the Calculate Goal test.
To edit the value of a called parameter, perform the following steps:
1. Right-click the calling step and click Called Test Parameters.... The called
Test parameters dialog box is displayed.
2. Click the Actual Value column of a parameter and type a new value.
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
P a g e | 10
3. Click the OK button to update the test call to display the new value.
You can copy and use any existing manual test as the basis for creating a
new manual test, but marking a manual test as a template test gives it special
designation. While a template test is no different from any other manual test in
composition or function, ALM can use the designation in dialog boxes which
have the Show Only Template Tests checkbox.
To configure a test as a template test, perform the following steps:
1. From the Test Plan tree, right-click a manual test.
2. Select mark as template test.
When you select the Show Only Template Tests checkbox in a dialog box,
manual tests without the template designation will be filtered from the list of
available tests.
A test script contains the actions that must be performed during test
execution. To automate the test, you can generate an automated test script from
the manually defined test steps. Based on these test steps, ALM creates an
automated template test script for the automated testing tool of your choice.
Automating a test allows unattended execution of the test at high speed. It also
makes the test reusable and repeatable. For example, you automate functional,
benchmark, unit, stress, and load tests, as well as tests requiring detailed
information about applications.
To convert design steps into a test script, perform the following steps:
1. Click the Design Steps tab.
2. On the Design Steps page toolbar, click the Generate Script button. A
drop-down menu is displayed.
3. Select the automated testing tool that you want to use to record the
business process and complete the test.
4. When the script is generated, the Test Script tab is displayed with an
asterisk.
5. Click the Test Script tab to view the test script.
Note: After you generate the test script, the manual test icon in the Test
Plan tree is replaced with an icon corresponding to the automated test
that you selected. To open and modify the test script directly from the
testing tool for which it was created, click the Launch button on the Test
Script page.
Considerations for Test Automation
Frequency of Execution
Tests that will run with each new version of your application are good
candidates for automation. These include sanity tests that check basic
functionality across an entire application. Each time there is a new version of
the application, you run these tests to check the stability of the new version,
before proceeding to more in-depth testing.
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
P a g e | 11
Tests that use multiple data values for the same operation (data-driven
tests) are also good candidates for automation. Running the same test
manually—each time with a different set of input data—can be tedious and
ineffective. By creating an automated data-driven test, you can run a single test
with multiple sets of data.
Stress/Load Testing
You should also automate tests that are run many times (stress tests) and
tests that check a multi-user client/server system (load tests). For example,
suppose a test must be repeated a thousand times. Running the test manually
would be extremely impractical. In this case, you can create a test that runs a
thousand iterations.
When Not to Automate Tests
Generally, the more user involvement a test requires, the less appropriate it
is to automate. The following describes test cases that should not be automated:
Usability tests—tests providing usage models that check how easy the
application is to use
Tests that you only have to run once
Tests that you need to run immediately
Tests based on user intuition and knowledge of the application
Tests with no predictable results
Test Configurations
You can design tests that run according to different use-cases, each with
different sets of data. Each use-case is called a test configuration. Values for the
test configurations are supplied from within your ALM project or from an
external data resource.
The following is an overview of test configurations:
A test configuration is a set of definitions that describe a specific test use-
case.
You can associate different sets of data for each test configuration.
Working with test configurations enables you to run the same test under
different scenarios.
When creating a test, by default, ALM creates a single test configuration.
This test configuration is created with the same name as the test.
Using the Test Configurations tab of the Test Plan module, you can create
as many additional test configurations as needed.
You associate a test configuration with data defined in the Parameters
tab of the Test Plan module. You can associate different data with each
test configuration.
3. In the Details tab, change the name to a configuration name and click the
OK button.
4. In the Data tab, enter the actual value for each parameter by clicking the
dropdown in the Actual Value column for each parameter name.
5. To create a new test configuration, click the New Test Configuration
button. The New Test Configuration dialog box is displayed.
6. Enter the name for the new test configuration and click the OK button.
7. In the Data tab, enter the actual value for each parameter by clicking the
dropdown in the Actual Value column for each parameter name.
You can generate a live analysis graph from the Test Plan module. A live
analysis graph provides a visual overview of all the tests within a folder in the
Test Plan tree. When you update a test in the test folder, the data change is
reflected in the graph. In addition, the layout and settings of the graph are
preserved when you select another test folder in the Test Plan module. This
feature enables you to view the same graphical analysis of different folders
without the need to recreate graphs.
To generate a live analysis graph, perform the following steps:
1. From the Test Plan tree, select a test subject folder.
2. Click the Live Analysis tab.
Note: The Live Analysis tab is divided into two panes, each of which can
display a graph.
3. Click the Add Graph link in the pane in which you want to display the
graph. The Graph Wizard: Step 1 Of 2 dialog box is displayed.
Note: If you already have two graphs displayed and want to create a new
graph, delete one of the existing graphs. To delete a graph, perform the
following steps:
a. Click the Remove Graph button located at the top of the graph you
want to delete.
b. Click the Yes button to confirm. The graph is deleted from the
selected pane and the Add Graph link is displayed.
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
P a g e | 13
c. Click the Add Graph link. Under the graph type, select the type of
graph that you want to generate. You can generate the following
types of graphs:
Summary – Displays the number of tests that are present in the
selected test subject folder.
Progress – Displays the number of tests that are present in the
selected test subject folder at specific points during a period of
time.
Trend – Displays the history of changes to specific fields in the
Test Plan module for a specified time interval.
4. Click the Next button.
5. The Graph Wizard: Step 2 of 2 dialog box is displayed. In the Group By
drop-down menu, select how you want the test to be grouped in the
graph and click the Next button.
6. In the X-Axis drop-down menu, select the field that you want to use for
the X-axis.
7. Click the Finish button. The graph is displayed in the panel that you
selected.
After you generate a live analysis graph, you can modify the appearance of graph
according to your requirements. For example, you can change the field that you
want to use for the X-axis.
To modify the appearance of a live analysis graph, perform the following steps:
1. Within the pane in which the graph is located, click Set Graph
Appearance. The Graph Appearance dialog box is displayed. In the Graph
Appearance dialog box, the Titles tab is clicked by default, and the values
for the Graph Title, Y-Axis Title, and X-Axis Title fields are displayed. You
can modify these values. Click the Reset Titles button to get back the
original titles.
2. Click the Appearance tab. Use the General section to choose the Default
Layout, Legend Position, 3D Graph, and Vertical X-Axis Labels. Use the
Colors section to modify the color for legends.
3. Click the Bar Parameters tab to modify the position and style of marks
that appear on the graph.
4. Click the OK button to close the Graph Appearance dialog box.
CS-6302 APPLICATION LIFECYCLE MGT
TEST PLANNING
P a g e | 14