
|
|
|
|
|
|
Subscribe to Advertising & Marketing Review! Contact Ken Custer at 303-277-9840.
|
|

|
|
Writing Repeatable Test Cases
By G.E. Morris
Of the five levels of CMMI, evolving from level 1 to level 2 is generally considered the most difficult task a software development group can face. Level 2 is described as the repeatability level. It can only be obtained when the QA process can be repeated exactly for each subsequent revision of the software application, and for each subsequent application developed. The key to making the QA process repeatable is making the test cases as specific as possible. There should be no ambiguity about any test step.
Consider the following example of a two field registration form:
A test plan, which describes an overview of the test, might describe the steps in testing this form as:
- Go to the registration page on the registration Website.
- Enter your name in the registration application.
- Go to the registration List.
- Verify your name is now in the list.
These steps would be adequate for a test plan, but would be totaly inadequate as test cases since the steps are not exact enough to guarantee the test would be repeated exactly each time the test was executed.
Heres a detailed version:
- Launch an IE browser and go to the Registration Form.
- Verify the registration page opens.
- On the registration page, click the mouse in the First Name field.
- Type John in the First Name field.
- Click the mouse in the Last Name field.
- Type in Doe in Last Name field.
- Click on the Submit button.
- Click on registration List in the left nav bar.
- Verify the Name John Doe is now present in the registration list.
Heres a variation:
- Launch an IE browser and select registration in your browsers favorites list (which you must have previously added).
- Verify you are taken to the registration page.
- Verify the First Name field is highlighted by default.
- Enter the name John in the First Name field.
- Hit the tab key on your keyboard.
- Verify the Last Name field is now highlighted.
- Enter the name Doe in the Last Name field.
- Hit Enter on your keyboard.
- Select registration List in your browsers favorites list (which you must have previously added).
- Verify the name John Doe is present in the list.
Given the basic 4 test case script from the test plan, a tester could perform the test by executing either of the two more detailed step sequences, or some combination of the two. The same tester might use a different combination of those steps in later tests, and no record would show it. Either of the two more detailed test cases specifies exactly what steps a tester should take, and on a mouse click by mouse click basis. Subsequent tests, using these same detailed test cases, even performed by different testers, would produce exactly the same tests. This is the heart of reproducibility. It takes detail to create a repeatable test. Without detail, repeatability is impossible, and so is achieving level 2 on the CMMI scale.
Back to top
|
|


|