《软件工程-实践者的研究方法》cha(3)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

2009 by Roger Pressman.
5
Exhaustive Testing
loop < 20 X
There are 1014 possible paths! If we execute one
Boris Beizer
OBJECTIVE to uncover errors
ห้องสมุดไป่ตู้
CRITERIA in a complete manner
CONSTRAINT with a minimum of effort and time
.Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright
Chapter 15
Testing Conventional Applications
Slide Set to accompany
Software Engineering: A Practitioner’s Approach, 7/e
by Roger S. Pressman
Slides copyright © 1996, 2001, 2005, 2009 by Roger S. Pressman
.Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright
2009 by Roger Pressman.
4
Test Case Design
"Bugs lurk in corners and congregate at boundaries ..."
2009 by Roger Pressman.
2
What is a “Good” Test?
A good test has a high probability of finding an error
A good test is not redundant. A good test should be “best of breed” A good test should be neither too
For non-profit educational use only
May be reproduced ONLY for student use at the university level when used in conjunction with Software Engineering: A Practitioner's Approach, 7/e. Any other reproduction or use is prohibited without the express written permission of the author. All copyright information MUST appear if these slides are posted on a website for student use.
observed Controllability—the degree to which testing can be
automated and optimized Decomposability—testing can be targeted Simplicity—reduce complex architecture and logic to
simple nor too complex
.Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright
2009 by Roger Pressman.
3
Internal and External Views
.Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright
2009 by Roger Pressman.
1
Testability
Operability—it operates cleanly Observability—the results of each test case are readily
Knowing the internal workings of a product, tests can be conducted to ensure that "all gears mesh," that is, internal operations are performed according to specifications and all internal components have been adequately exercised.
simplify tests Stability—few changes are requested during testing Understandability—of the design
.Software Engineering: A Practitioner’s Approach, 7/e (McGraw-Hill 2009). Slides copyright
Any engineered product (and most other things) can be tested in one of two ways:
Knowing the specified function that a product has been designed to perform, tests can be conducted that demonstrate each function is fully operational while at the same time searching for errors in each function;
相关文档
最新文档