JUnit 软体测试架构.ppt

  1. 1、本文档共69页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
JUnit 軟體測試架構 JUnit Software Testing Framework 葉秉哲 2002/7/4. /presentJUnit 的定位 大綱 引子 JUnit 基礎篇 JUnit 進階篇 軟體測試基礎 推薦讀物 一、引子 一流的科學家可以做出很有價值的實驗,產生新知識;二流科學家只是忙於各種實驗,蒐集大量數據,但對知識的累積沒什麼用處。 --- David Salsburg JUnit 簡介 Regression testing framework written by Erich Gamma and Kent Beck Open Source Hosted on SourceForge Language support Smalltalk, Java, C++, Perl, Python, etc. IDE Support JBuilder, VisualAge, etc. What is Software Testing? The execution of code using combinations of input and state selected to reveal bugs. The process of devising and executing a test suite that attempts to cause failures, increasing our confidence that failures are unlikely. Why Testing? 目的:矛與盾 Reveal bugs: quality control Confidence: qualitative quantitative 重要性 Paradigm↑ ? productivity↑ ? testing debugging↑ Software features that can’t be demonstrated by automated tests simply don’t exist. [Beck 1999, p.45] Testing: CMM Perspective The Key Process Areas by Maturity Level Testing: RUP Perspective Testing: XP Perspective If you’re not validating everything all the time, you’re not doing XP. Period. Test What? Every artifact during the whole development process should be tested. 軟體測試工具分類 JUnit 的定位 JUnit Framework How to Test with JUnit? Questions… 如何測試? strategy 多少測試才夠? coverage 流程? process 工具影響? medium is message 二、JUnit 基礎篇 Extreme Programmers test everything that could possibly break, using automated tests that must run perfectly all the time. --- Extreme Programming Installed Design Goals of JUnit Easy to use Requires no more work than absolutely necessary to write a new test Leverages existing tests to create new ones Reusable fixtures to run different tests Retains values of tests over time Combines tests from various authors and run them together without fear of interference Case Study 自動產生測試框架 Using Borland JBuilder 6.0 最簡單的完整測試實例 實例一 實例一:簡單的待測物 public class Money { private int fAmount; private String fCurrency; public Money(int amount, String c

文档评论(0)

word.ppt文档 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档