作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (3): 54-56,66. doi: 10.3969/j.issn.1000-3428.2012.03.019

• 软件技术与数据库 • 上一篇    下一篇

基于捕获/重现技术的微分单元测试研究

俞金松,高建华   

  1. (上海师范大学信息与机电工程学院,上海 200234)
  • 收稿日期:2011-07-26 出版日期:2012-02-05 发布日期:2012-02-05
  • 作者简介:俞金松(1987-),男,硕士研究生,主研方向:软件可靠性理论与设计,网络日志测试;高建华,教授、博士
  • 基金资助:
    国家自然科学基金资助项目(61073163);上海市教委科研创新基金资助重点项目(0922135);上海市科委基金资助项目(092205 03000)

Research on Differential Unit Test Based on Capture/Replay Technique

YU Jin-song, GAO Jian-hua   

  1. (College of Information, Mechanical and Electrical Engineering, Shanghai Normal University, Shanghai 200234, China)
  • Received:2011-07-26 Online:2012-02-05 Published:2012-02-05

摘要: 针对单元测试和系统测试各自具有的局限性,提出一种基于捕获/重现技术的微分单元测试方法。在系统测试时,捕获相关的状态序列,并在单元测试中重现该序列对于目标单元表现行为的影响,通过比较输出结果进行错误识别。仿真实验结果表明,该方法的测试成本较低,故障检测的覆盖率较高。

关键词: 微分单元测试, 捕获/重现技术, 单元测试, 系统测试, 故障检测, 回归测试

Abstract: For the limitations of unit and system tests, this paper presents a Capture/Replay(C/R)-based differential unit tests. Differential unit tests capture variables that may influence the behavior of target unit during the system tests and executes the unit tests through these input variables so that they can detect faults by comparing the output variables between multiple versions. Simulation results show that C/R-based differential unit tests can get lower test costs and higher coverage rate of faults detection.

Key words: differential unit test, Capture/Replay(C/R) technique, unit test, system test;, fault detection, regression test

中图分类号: