




已阅读5页,还剩20页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,1,Software Engineering: A Practitioners Approach, 6/e Chapter 13 Software Testing Strategies 测试策略 copyright 1996, 2001, 2005 R.S. Pressman & Associates, Inc. For University Use Only May be reproduced ONLY for student use at the university level when used in conjunction with Software Engineering: A Practitioners Approach. Any other reproduction or use is expressly prohibited.,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,2,Software Testing,Testing is the process of exercising a program with the specific intent of finding errors prior to delivery to the end user.( 测试是在软件交付给用户前,以找出软件中的 错误为目的的一种软件运行过程),These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,3,What Testing Shows,errors,requirements conformance,performance,an indication of quality,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,4,Who Tests the Software?,developer,independent tester,Understands the system,but, will test “gently“,and, is driven by “delivery“(交付),Must learn about the system,but, will attempt to break it,and, is driven by quality,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,5,Testing Strategy,unit test,integration test,validation test,system test,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,6,Testing Strategy,We begin by testing-in-the-small(从小开始) and move toward testing-in-the-large For conventional software(对传统软件) The module (component) is our initial focus Integration of modules follows For OO software our focus(聚集) when “testing in the small” changes from an individual module(单独模块)(the conventional view) to an OO class that encompasses(包括) attributes and operations(属性和操作) and implies(暗含) communication and collaboration(通讯和协作),These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,7,Strategic Issues(策略问题),State(陈述) testing objectives explicitly.(显示说明测试目的) Understand the users of the software and develop a profile for each user category.(了解软件有哪些用户,为每一类用户写出他们的特点) Develop a testing plan that emphasizes “rapid cycle testing.”(写出测试计划,强调“快速周期测试”) Build “robust” software that is designed to test itself Use effective formal technical reviews as a filter prior to(先于) testing Conduct(实施) formal technical reviews to assess(评估) the test strategy and test cases themselves. Develop a continuous improvement approach for the testing process.,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,8,Unit Testing,module to be tested,test cases,results,software engineer,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,9,Unit Testing,interface,local data structures,boundary conditions,independent paths,error handling paths,module to be tested,test cases,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,10,Unit Test Environment,Module,stub,stub,driver,RESULTS,interface,local data structures,boundary conditions,independent paths,error handling paths,test cases,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,11,Integration Testing Strategies,Options: the “big bang” approach an incremental construction strategy,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,12,Top Down Integration,top module is tested with,stubs,stubs are replaced one at,a time, “depth first“,as new modules are integrated,some subset of tests is re-run,A,B,C,D,E,F,G,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,13,Bottom-Up Integration,drivers are replaced one at a,time, “depth first“,worker modules are grouped into,builds and integrated,A,B,C,D,E,F,G,cluster,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,14,Sandwich Testing,Top modules are tested with stubs,Worker modules are grouped into,builds and integrated,A,B,C,D,E,F,G,cluster,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,15,Object-Oriented Testing,begins by evaluating the correctness and consistency(一致性) of the OOA and OOD models testing strategy changes the concept of the unit broadens(变宽) due to encapsulation validation uses conventional black box methods test case design draws on conventional methods, but also encompasses(包含) special features,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,16,OOT Strategy,class testing is the equivalent of(等于) unit testing operations within the class are tested the state behavior of the class is examined integration applied three different strategies(集成测试可应用三种不同的策略) thread-based testingintegrates the set of classes required to respond to one input or event use-based testingintegrates the set of classes required to respond to one use case cluster testingintegrates the set of classes required to demonstrate one collaboration,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,17,Smoke Testing,A common approach for creating “daily builds” for product software Smoke testing steps: Software components that have been translated into code are integrated into a “build.” A build includes all data files, libraries, reusable modules, and engineered components that are required to implement one or more product functions. A series of tests(一系列测试) is designed to expose(暴露) errors that will keep the build from properly performing its function. The intent should be to uncover “show stopper” errors that have the highest likelihood of throwing the software project behind schedule. The build is integrated with other builds and the entire product (in its current form) is smoke tested daily. The integration approach may be top down or bottom up.,18,High Order Testing,Validation testing Focus is on software requirements System testing Focus is on system integration Alpha/Beta testing Focus is on customer usage Recovery testing forces the software to fail in a variety of ways(各种办法) and verifies that recovery is properly performed Security testing verifies that protection mechanisms built into a system will, in fact, protect it from improper penetration(不正确的穿透) Stress testing executes a system in a manner that demands resources in abnormal quantity, frequency, or volume Performance Testing test the run-time performance of software within the context of an integrated system,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,19,Debugging: A Diagnostic Process,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,20,The Debugging Process,test cases,results,Debugging,suspected causes,identified causes,corrections,regression tests,new test cases,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,21,Debugging Effort,time required to diagnose the Symptom(症状) and determine the cause,time required to correct the error and conduct regression tests,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright 1996, 2001, 2005,22,Symptoms & Causes,symptom,cause,symptom and cause may be,geographically separated,symptom may disappear when,another problem is fixed,cause may be due to a,combination of non-errors,cause may be due to a system,or compiler error,cause may be due to,assumptions that everyone,believes,symptom may be intermittent,These courseware materials are to be used in conjunction with Software Engineering: A Practitioners Approach, 6/e
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 员工绩效评估管理工具
- (正式版)DB15∕T 3352-2024 《饲用燕麦草产品储运规范》
- 滴滴考试题目及答案
- 土地流转监管服务协议
- (正式版)DB15∕T 3256-2023 《胡萝卜抗根腐病水平室内鉴定技术规程》
- 《初三物理电磁学基础概念解析教案》
- 大专初考试题及答案
- 固定资产折旧与估价计算工具
- 销售自动化流程模板及使用指南
- 企业运营成本控制标准及分析方法
- 2006WHO儿童身高体重参考值及评价标准
- (新版)初级磨工职业鉴定考试题库(含答案)
- JT-T-496-2018公路地下通信管道高密度聚乙烯硅芯塑料管
- JCT 2387-2024《改性聚苯乙烯泡沫复合装饰制品》
- 发电厂发电机原理与结构
- 人才服务可行性方案
- (高清版)DZT 0004-2015 重力调查技术规范(150 000)
- 打扫卫生的社会实践报告
- 小学《道德与法治课程标准2022版》测试题
- 市政污水管道施工组织设计
- 服装陈列课件
评论
0/150
提交评论