- 1、本文档共69页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- Android上的单元测试.ppt
- Android之Activity生命周期.ppt
- Blackberry手机国际市场营销4P战略分析.ppt
- B化学与生活教材模块介绍(潘鸿章).ppt
- CATV网络行业分析.ppt
- ch1_MATLAB基础知识.ppt
- ch4管理信息系统开发概述.ppt
- DotNet学习指南.ppt
- EMC培训.ppt
- ERP销售与配销.ppt
- 浙江衢州市卫生健康委员会衢州市直公立医院高层次紧缺人才招聘11人笔试模拟试题参考答案详解.docx
- 浙江温州泰顺县退役军人事务局招聘编外工作人员笔试备考题库及参考答案详解一套.docx
- 江苏靖江市数据局公开招聘编外工作人员笔试模拟试题及参考答案详解.docx
- 广东茂名市公安局电白分局招聘警务辅助人员40人笔试模拟试题带答案详解.docx
- 江苏盐城市大丰区住房和城乡建设局招聘劳务派遣工作人员4人笔试模拟试题带答案详解.docx
- 浙江舟山岱山县东沙镇人民政府招聘笔试模拟试题及参考答案详解1套.docx
- 最高人民检察院直属事业单位2025年度公开招聘工作人员笔试模拟试题含答案详解.docx
- 浙江金华市委宣传部、中共金华市委网信办所属事业单位选调工作人员笔试备考题库及答案详解1套.docx
- 广东深圳市党建组织员招聘40人笔试模拟试题及答案详解1套.docx
- 江苏南京水利科学研究院招聘非在编工作人员4人笔试模拟试题及参考答案详解.docx
最近下载
- 《中国结核病预防控制工作技术规范(2020年版)》.PDF VIP
- 2023年北京市中考英语真题(含答案) .pdf VIP
- 南通大学2023-2024学年《病理学》期末考试试卷(A卷)附参考答案.docx
- 胸部损伤-教学课件.ppt VIP
- 某银行数据中心搬迁整体实施方案.pdf VIP
- 麦肯锡中国银行业CEO季刊(2020年秋)-麦肯锡-224页正式版.pdf VIP
- 国家公务员录用考试体检标准.doc VIP
- 入党申请书时事政治精选五篇.docx VIP
- 农村公路安全生命防护工程监理规划49943.doc VIP
- 高中英语3500词【打印版】乱序版3500词汇(带音标120页).pdf VIP
文档评论(0)