- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Ch1-junit
? Ammann Offutt ? Ammann Offutt ? Ammann Offutt ? Ammann Offutt ? Ammann Offutt ? Ammann Offutt ? Ammann Offutt ? Ammann Offutt ? Ammann Offutt JUnitAutomated Software Testing Framework Paul Ammann Jeff Offutt /~offutt/softwaretest/ Thanks in part to Aynur Abdurazik Introduction to Software Testing (Ch 1) ? Ammann Offutt * What is JUnit? Open source Java testing framework used to write and run repeatable automated tests JUnit is open source () A structure for writing test drivers JUnit features include: Assertions for testing expected results Test features for sharing common test data Test suites for easily organizing and running tests Graphical and textual test runners JUnit is widely used in industry JUnit can be used as stand alone Java programs (from the command line) or within an IDE such as Eclipse Introduction to Software Testing (Ch 1) ? Ammann Offutt * JUnit Tests JUnit can be used to test … … an entire object … part of an object – a method or some interacting methods … interaction between several objects It is primarily for unit and integration testing, not system testing Each test is embedded into one test method A test class contains one or more test methods Test classes include : A test runner to run the tests (main()) A collection of test methods Methods to set up the state before and update the state after each test and before and after all tests Get started at Introduction to Software Testing (Ch 1) ? Ammann Offutt * Writing Tests for JUnit Need to use the methods of the junit.framework.assert class javadoc gives a complete description of its capabilities Each test method checks a condition (assertion) and reports to the test runner whether the test failed or succeeded The test runner uses the result to report to the user (in command line mode) or update the display (in an IDE) All of the methods return void A few representative methods of junit.framework.assert assertTrue (boolean) assertTrue (String, boolean) assertEquals (Obje
您可能关注的文档
- Android_手机开发-Fragment、FragmentManager、FragmentTransaction的综合使用.doc
- Android中Alertdialog详解.docx
- android培训第五节-深入理解Activity与fragment.ppt
- AOP.ppt
- Arch3.ppt
- Are humans really are what they eat.ppt
- Aroma Substances.ppt
- Arrhythmias and conduction disturbances after cardiac surgery.ppt
- Association Analysis.ppt
- Bacon01Java.ppt
- 实训楼网络综合布线设计方案.doc
- 网络环境下的企业营销传播模式.pptx
- 学生选课管理系统数据库课程设计.doc
- 英美文学霍桑介绍.ppt
- 2025年黑龙江省牡丹江管理局北斗星协会初三下学期化学试题周末卷含解析.doc
- 2024-2025学年福建省泉州市重点名校初三3月第二次周考语文试题含解析.doc
- 广东省揭阳市华侨高级中学2025年语文高一下期末质量跟踪监视模拟试题含解析.doc
- 云南省麻栗坡民族中学2024年高三第二次调研历史试卷含解析.doc
- 河南省虞城县高级中学2025届高三高考全真模拟卷(三)英语试题含解析.doc
- 福建省龙岩市第五中学2025年初三4月质量调研(二模)语文试题理试题含解析.doc
原创力文档


文档评论(0)