Automating Analysis and Test.ppt
《Automating Analysis and Test.ppt》由会员分享,可在线阅读,更多相关《Automating Analysis and Test.ppt(54页珍藏版)》请在麦多课文档分享上搜索。
1、(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 1,Automating Analysis and Test,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 2,Learning objectives,Understand the main purposes of automating software analysis and testing Identify activities that can be fully or partially automated Understand cost a
2、nd benefit trade-offs in automation Separate publicity from important features in descriptions of commercial A&T tools,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 3,Three Potential Roles of Automation,Necessary for introducing a task example: coverage tools enable measuring structural coverage o
3、f test suites Useful to reduce cost example: capture and replay tools reduce the costs of reexecuting test suites Useful to increase (human) productivity example: software inspection is a manual activity, but tools to organize and present information and manage communication increase the productivit
4、y of people,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 4,Approaching Automation,Prioritize automation steps based on variations in impact, maturity, cost, scope of the technology fit and impact on the organization and process Three (non-orthogonal) dimensions for automation value and current co
5、st of the activity extent to which the activity requires or is made less expensive by automation cost of obtaining or constructing tool support,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 5,Automation Costs Vary Enormously,Some tools are so simple to develop that they are justifiable even if the
6、ir benefits are modest example: generate test cases from finite state machine models Some tools that would be enormously valuable are simply impossible example: identify exactly which parts of a program can never be executed (a provably undecidable problem),(c) 2007 Mauro Pezz & Michal Young,Ch 23,
7、slide 6,Costs May Depend on Scope,Sometimes a general-purpose tool is only marginally more difficult to produce than a tool specialized for one project example: general capture and replay for Windows applications vs capture and replay for a specific Windows application Investment in the general-purp
8、ose tool, whether to build it or to buy it, can be amortized across projects In other cases, simple, project-specific tools may be more cost effective Tool construction is often a good investment in a large project example: simulators to permit independent subsystem testing,(c) 2007 Mauro Pezz & Mic
9、hal Young,Ch 23, slide 7,Focusing Where Automation Pays,Simple repetitive tasks are often straightforward to automate humans are slow and make errors in repetitive tasks But .judgment and creative problem solving remain outside the domain of automation Example: Humans are Very good at identifying re
10、levant execution scenarios that correspond to test case specifications Very inefficient at generating large volumes of test cases or identifying erroneous results within a large set of outputs from regression tests Automating the repetitive portions of the task reduces costs, and improves accuracy a
11、s well,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 8,Planning: The Strategy Level,Prescribes tools for key elements of the quality process Can include detailed process and tool prescriptions Recommends different tools contingent on aspects of a project (application domain, development languages,
12、 size, overall quality,.) Often included in the A&T strategy: tools for Organizing test design and execution Generating quality documents Collecting metrics Managing regression test suites Less often included: tools for Generating test cases Dynamic analysis,(c) 2007 Mauro Pezz & Michal Young,Ch 23,
13、 slide 9,Planning: The Project Level,The A&T Plan Indicates Tools inherited from the strategy Additional tools selected for that project For new or customized tools, the A&T plan must include Costs (including training) Implied activities Potential risks The plan positions tools within the developmen
14、t process and the analysis and test methodology Avoid waste of cost and effort from lack of contextualization of the tools Example: tools for measuring code coverage simple and inexpensive (if not properly contextualized) an annoyance, producing data not put to productive use,(c) 2007 Mauro Pezz & M
15、ichal Young,Ch 23, slide 10,Process Support: Planning & Monitoring,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 11,Automation in Process Management,Managing a process involves . planning a set of activities with appropriate cost and quality trade-offs monitoring progress to identify risks as earl
16、y as possible avoiding delays by adjusting the plan as needed . and requires . human creativity and insight for which no tool can substitute Tools can support process management and improve decision making by organizing and monitoring activities and results facilitating group interaction managing qu
17、ality documents tracking costs,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 12,Classic Planning Tools,Facilitate task scheduling, resource allocation, and cost estimation by arranging tasks according to resource and time constraints Can be specialized to A&T management with features for deriving
18、relations among tasks, launching tasks, and monitoring completion of activities Examples: tools to recognize delivery of a given artifact schedule execution of a corresponding test suite notify test designer of test results record the actual execution time of the activity signal schedule deviations
19、to the quality manager Most useful when integrated in the analysis and test environment,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 13,Version and Configuration Control Tools,Analysis and testing involve complex relations among a large number of artifacts Version and configuration management too
20、ls relate versions of software artifacts trigger consistency checks and other activities support analysis and testing activities like they control assembly and compilation of related modules example: trigger execution of the appropriate test suites for each software modification Improve efficiency i
21、n well-organized processes not a substitute for organization,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 14,Monitoring,Integrated quality tracking improves efficiency in a well-structured process, does not by itself bring order out of chaos Progress must be monitored in terms of schedule (actual
22、 effort and completion times vs plan) level of quality Quality of the final product cannot be directly measured before its completion but we can derive useful indications example: orthogonal defect classification see chapter 20,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 15,Quality Tacking,Essen
23、tial function: recognize deviations from expectation as early as possible to reduce consequences Proxy measures must be computed early must be interpreted in a way that avoids misleading conclusions or distorted incentives Example: lines of code useful as a simple proxy for productivity must be care
24、fully interpreted to avoid creating both an incentive for verbosity and a disincentive for effective reuse Example: number of faults detected useful to detect deviations from the norm one should be as concerned about the causes of abnormally low numbers as high Collection, summary, and presentation
25、of data can be automated Design and interpretation cannot be automated,(c) 2007 Mauro Pezz & Michal Young,Ch 23, slide 16,Managing People,People may work in different groups in different companies distributed across time zones and continents A large proportion of a software engineers time is devoted
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- AUTOMATINGANALYSISANDTESTPPT
