background image
<< Exceptions - Turn on fault trapping | Updating Testplan - Linking a testplan to a data-driven testcase >>
Adding Data to a Testplan
<< Exceptions - Turn on fault trapping | Updating Testplan - Linking a testplan to a data-driven testcase >>
User's Guide
221
10
C
h
a
p
t
e
r
1
0
Adding Data to a Testplan
Overview
One way to eliminate redundancy in a testplan is to generalize a testcase so
that it can receive many combinations of data from the testplan. This kind of
testcase, as described in Chapter 8, "Generalizing a Testcase", is called a
data-driven testcase.
Linking a testplan to a data-driven testcase alters in two ways the basic
testplan structure introduced in Chapter 2, "Creating Testplans":
·
You add the testcase statement at the group description level.
·
You place the test data directly in the testplan.
Benefits
The benefits are twofold:
·
By recording a single testcase for a group, you make your scripts easier
to maintain.
·
By placing data at different levels in the plan, you create a matrix of data
combinations that makes it easy to assess coverage.
What you will learn
This chapter contains the following sections:
Topic
Page
Linking a testplan to a data-driven testcase
222
Specifying data that is unique to a single test description
223
Specifying data that is shared by multiple tests
226
Converting the data in a results file into a plan
233