一种自动化单元覆盖测试框架的设计与实现
esign and Implementation of Automatic Unit Coverage Testing Framework
研制自动化或者半自动化的测试工具将对软件开发过程产生重大影响,并能有效地提高软件生产率,是当今软件测试业界一项极具挑战的课题。以C/C++程序作为测试对象,从单元划分、插装、打桩、测试用例生成,驱动生成等方面探讨如何实现方法级的自动单元覆盖测试。重点讨论了基于源代码插装的覆盖分析和基于函数后置信息以及区间缩减的打桩技术。实验结果表明,所实现的原型系统单元自动化测试系统(Unit Automatic Testing System:UAT)能够自动化的对数值程序进行覆盖测试,并具有良好的覆盖效果;同时在相同条件下,应用函数后置信息和区间缩减的打桩技术,可以在一定程度上提高测试的覆盖率。
he automatic or semi-automatic testing tools bring great effect on software development; in particular, they can improve the software production greatly. In order to perform testing on C or C++ programs facilely, a prototype tool called UAT is designed and implemented. It can employ unit coverage testing in method level by analyzing the program's constructs, instrumentioning probes, stubbing the code, automatically generating test case, automatically generating test driver. The emphasis was placed in the coverage analysis, stub based on post function information and interval reduction. The experiment result shows that, UAT can automatically test the numerical procedure, and have good coverage result. Under same condition, stub based on post function information can increase the coverage result.
高文玲、王雅文、孙华衿
计算技术、计算机技术
软件测试单元覆盖测试覆盖分析函数后置信息插装打桩
software testingunit coverage testingcoverage analysispost function informationinstrumentationstub
高文玲,王雅文,孙华衿.一种自动化单元覆盖测试框架的设计与实现[EB/OL].(2010-11-09)[2025-08-16].http://www.paper.edu.cn/releasepaper/content/201011-188.点此复制
评论