|
2#
楼主 |
发表于 2006-1-10 12:39:04
|
只看该作者
Suppose your task is to write a set of tests that check whether the product correctly validates phone numbers that the user types in. These tests check whether phone numbers have the right number of digits, don’t use any disallowed digits, and so on. If you understood the product code (and I understand that you rarely do), you could take a program listing and use a highlighter to mark the phone number validation code. I’m going to call that the code under test. It is the code whose behavior you thought about to complete your testing task. |
|