background image
<< Setting a precondition on a test case | Inserting a Suite into a Suite >>
<< Setting a precondition on a test case | Inserting a Suite into a Suite >>

Inserting Suites and Scenarios into Suites

Inserting Suites and Scenarios into Suites
209
Inserting Suites and Scenarios into Suites
Inserting suites or scenarios into a suite allows you to maintain a hierarchy of suite
items. When you insert a suite or scenario into a suite, you can:
s
Reuse suite items without having to duplicate them in multiple areas of a suite.
s
Group suite items together so they can be shared by more than one computer
group.
s
Maintain your suite more easily. This is especially true if you have a complicated
suite that uses many test scripts. Grouping the suite items under a suite or a
scenario has the added advantage of making your suite easier to read and
maintain.
In functional testing, you typically insert a suite into a suite, because inserting a suite
provides more flexibility. In general, insert a suite into a suite when:
s
You want to reuse a series of items in multiple suites. You can insert a suite into
different suites.
s
You want any change that you make to a suite replicated in every instance of that
suite.
Insert a scenario into a suite when:
s
You want to reuse a series of items in one suite. You cannot insert a scenario into
different suites.
s
You want to see the hierarchy of the suite items when you open a suite. A scenario
lets you see this structure. If you insert a suite into a suite, you must open the child
suite to see the suite items.
For example, you could create three suites, each testing a different aspect of an
accounting application:
s
One suite opens and edits the spreadsheets.
s
One suite tests all the menus.
s
One suite tests complex formulas within the spreadsheet.
All three suites need virtual testers to open the accounting application. Yet within
each suite, unique tasks need to be repeated. You can create a separate suite for
opening the application and insert that suite into each of the three suites. You can then
insert a scenario into each suite to represent the tasks that are unique to the suite.