摘要: 针对单元测试和系统测试各自具有的局限性,提出一种基于捕获/重现技术的微分单元测试方法。在系统测试时,捕获相关的状态序列,并在单元测试中重现该序列对于目标单元表现行为的影响,通过比较输出结果进行错误识别。仿真实验结果表明,该方法的测试成本较低,故障检测的覆盖率较高。
关键词:
微分单元测试,
捕获/重现技术,
单元测试,
系统测试,
故障检测,
回归测试
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
中图分类号:
俞金松, 高建华. 基于捕获/重现技术的微分单元测试研究[J]. 计算机工程, 2012, 38(3): 54-56,66.
SHU Jin-Song, GAO Jian-Hua. Research on Differential Unit Test Based on Capture/Replay Technique[J]. Computer Engineering, 2012, 38(3): 54-56,66.