51Testing软件测试论坛

标题: When Should a Test Be Automated? 13 [打印本页]

作者: angelcc216    时间: 2006-1-10 12:38
标题: When Should a Test Be Automated? 13
Brian Marick


Testing Foundations
marick@testing.com


To estimate a test’s life, you need some background knowledge. You need to understand something of the way code structure affects tests. Here’s a greatly simplified diagram to start with.
作者: angelcc216    时间: 2006-1-10 12:39
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.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2