For purposes of illustration, this topic develops test requirements for the searching feature of the sample Text Editor application using the Find dialog box. This topic contains the following:
When a user enters the criteria for the search and clicks Find Next, the search feature attempts to locate the string. If the string is found, it is selected (highlighted). Otherwise, an informational message is displayed.
A user can enter three pieces of information in the Find dialog box:
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 box is shown below:
Case Sensitive | Direction | Search String |
---|---|---|
Yes | Down | Character |
Yes | Down | Partial word (start) |
Yes | Down | Partial word (end) |
Yes | Down | Word |
Yes | Down | Group of words |
Yes | Up | Character |
Yes | Up | Partial word (start) |
Yes | Up | Partial word (end) |
Yes | Up | Word |
Yes | Up | Group of words |
A test case performs the included actions in three stages. The following table illustrates these stages, describing in high-level terms the steps for each stage of a sample test case that tests whether the Find facility is working.
After learning the basics of recording, you can record from within a test plan, which makes recording easier by automatically generating the links that connect the test plan to the test case.