期刊文献+

单元测试及测试工具的研究与应用 被引量:8

Research and application about Unit Testing and related tools
下载PDF
导出
摘要 软件测试在软件生命周期中占据重要的地位,是软件产品交付用户使用之前保证软件质量的重要手段。在软件测试V模型中,测试阶段通常分为单元测试、集成测试、系统测试和验收测试。所谓好的开头是成功的一半,单元测试作为整个测试过程的第一阶段,自然占据着十分重要的地位。由于单元测试的高覆盖率要求,往往需要反复的运行诸多测试用例,这将增加大量的人力物力成本。如能正确熟练的使用单元测试工具,将极大地提高单元测试工作的效率和质量。但是,在软件测试课程中,对于单元测试的学习具有较大的难度。本文针对高职高专院校开设软件测试技术课程的现状,分析了单元测试的学习过程,并且针对目前流行的Java开发环境,选用Junit单元测试工具作为实例,介绍了Junit工具的使用方法和测试脚本的编写规范,并讨论了单元测试用例的设计方法,来全面的完成单元测试知识的教学。 Software testing plays an important role during software life cycle,it is the primary approach to verify software quality before releasing to users. Software Testing V-model is built up by Unit Testing,Integration Testing,System Testing and Acceptance Testing.A flying start brings half of success,so Unit Testing is more essential since it is the first stage during the whole testing process.Sometimes it needs more cost to maintain repeatable executions.It will improve the unit testing efficiency so much if we could select Unit Testing tools correctly.However,it is difficult to learn Unit Testing technology well during common lessons.In this article,the author analyzes current Unit Testing status,introduces how to use Junit tool,shows how to write testing script,and discusses how to design test cases.The main purpose is to help students learn Unit Testing more easily.
作者 董威
出处 《微型电脑应用》 2008年第5期24-26,23,共4页 Microcomputer Applications
关键词 软件测试技术 单元测试 JUNIT 测试脚本 单元测试用例 Software Testing Technology Unit Testing Junit Testing Script Unit Test Cases
  • 相关文献

参考文献3

  • 1贺平.软件测试技术[M].北京:机械工业出版社,2006.
  • 2Andrew Hunt,David Thoma.单元测试之道Java版-使用Junit[M].陈伟柱,陶文译.北京:电子工业出版社,2005.
  • 3赵文靖.Java程序设计基础[M].北京:清华大学出社,2006.

共引文献1

同被引文献39

  • 1刘林源,朱海滨,姜传贤.一种基于角色的协同软件开发框架[J].科学技术与工程,2005,5(17):1300-1304. 被引量:2
  • 2张巍,尹海波,孙立财.软件的单元测试方法[J].光电技术应用,2006,21(2):36-38. 被引量:10
  • 3易海胜.单元测试用例设计方法初探[J].武汉科技学院学报,2006,19(5):120-122. 被引量:5
  • 4Hannan M. Anlysis of the collaborative activities in software de-velopment processes from the perspective of chronotopes [J].Computers in Human Behavior, 2011,27 (1): 248-267.
  • 5Sameer Patil A K. Enhancing privacy management support ininstant messaging [J]. Interacting with Computers, 2010,22(3): 206-217.
  • 6Harshada Patel M P J R. Factors of collaborative working: Aframework for a collaboration model [J]. Applied Ergonomics,2012,43 (1): 1-26.
  • 7Markus Held W B. Structured collaborative workflow design [J],Future Generation Computer Systems, 2009,25 (6) : 638-653.
  • 8Margarita Andre M G B S. Formal model for assigning humanresources to teams in software projects [J]. Information andSoftware Technology, 2011,53 (3) : 259-275.
  • 9Luiz C. Mostaco-Guidolin R B F U SCTE: An open-source Perlframework for testing equipment control and data acquisition [J],Computer Physics Communications, 2012,183 (7) : 1511-1518.
  • 10颜雯清,李秀娟.SCADE平台下C代码的自动生成[J].计算机仿真,2007,24(10):264-268. 被引量:12

引证文献8

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部