background image
<< Test Cases - A testcase starts from a base state | Test Cases - Overview of recording the stages of a testcase >>
Test Cases - Defining test requirements
<< Test Cases - A testcase starts from a base state | Test Cases - Overview of recording the stages of a testcase >>
108
User's Guide
5 D
ESIGNING
AND
R
ECORDING
T
ESTCASES
Defining test requirements
If these conditions are not sufficient for your application, you can customize
the recovery system. For more information on how the recovery system
works and how it can be customized, see Chapter 15, "Understanding the
Recovery System".
Defining test requirements
When defining test requirements, the goal is to rigorously test each
application feature. To do so, you need to decide which set of inputs to a
feature will provide the most meaningful test results.
Example: a word
processor's search
feature
For purposes of illustration, this section develops test requirements for the
searching feature of the sample Text Editor application. This feature uses the
Find dialog.
When a user enters the criteria for the search and clicks the Find Next
pushbutton, the searching feature attempts to locate the string. If the string is
found, it is selected (highlighted). Otherwise, an informational message is
displayed.
What data does the
feature expect
A user can enter three pieces of information in the Find dialog:
The search can be case sensitive or insensitive, depending on whether the
Case Sensitive check box is set or unset.
The search can be forward or backward, depending on whether the Down
or Up radio button is selected.
The search can be for any combination of characters, depending on the
value entered in the Find What text field.
Create meaningful
data combinations
To organize this information, it is helpful to construct a table that lists the
possible combinations of inputs. From this list, you can then decide which
combinations are meaningful and should be tested. A partial table for the
Find dialog is shown below:
Case Sensitive
Direction
Search String
Yes
Down
Character
Yes
Down
Partial word (start)