By G.E. Morris
With a solid requirements document created it's fairly easy to create a test case document. Just get a soft copy of the requirements doc and modify it.
The modification a requirements doc being converted to a test case needs depends in part on the format of the test case document being used.
Starting with the requirements document (see Writing Requirements Documents), the examples shown below walk you through the process of converting a requirements document to a set of test cases.
Consider the following example:
Modifying General Page appearance requirements section 1.0.0 is mostly just a matter of changing the word "shall" to "is" or "are."
1.0.0 General Page Appearance Requirements
1.1.1 The title "Registration Page" shall be left aligned at the top of the page.
1.1.2 The words "Registration Page" shall be spelled correctly.
1.1.3 The words "Registration Page" shall be in 26 point type.
1.1.4 The words "Registration Page" shall be in sans serif type type.
Becomes
1.0.0 General Page Appearance Test Cases
1.1.1 The title "Registration Page" is left aligned at the top of the page.
1.1.2 The words "Registration Page" are spelled correctly.
1.1.3 The words "Registration Page" are in 26 point type.
1.1.4 The words "Registration Page" are in sans serif type type.
The test cases for the first and last name fields require more modification, in part because the test cases tend to be more complex. Page appearance issues have simple pass/fail criteria, for instance either the page title is spelled correctly or it's not. With field validation test cases, which test decisions the code must make, there is an action on the part of the tester, an expected result and an actual result.
A simple format lists a test case number, an action, and a column labeled Pass/Fail to record results.