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

计算机工程 ›› 2007, Vol. 33 ›› Issue (01): 86-88. doi: 10.3969/j.issn.1000-3428.2007.01.029

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

软件测试中代码分析与插装技术的研究

刘慧梅,徐华宇   

  1. (陕西国防工业职业技术学院,西安 710302)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-01-05 发布日期:2007-01-05

Research on Code Analysis and Instrumentation in Software Test

LIU Huimei, XU Huayu   

  1. (Shaanxi National Defence Industry Professional and Technical College, Xi’an 710302)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-01-05 Published:2007-01-05

摘要: 软件测试作为软件工程的重要组成部分对提高软件质量和可靠性起到了不可忽视的作用。软件白盒测试自动化工具WBoxTool中对标准C/C++程序进行了可视化的插装和监视,收集程序动态运行信息,并进行可靠的测试分析。该文介绍了在工具WBoxTool中使用的代码分析和插装测试技术,并给出插装测试方法的一些实例应用和分析。

关键词: 双向邻接链表法, 函数调用树, 函数性能分析, 控制流插装

Abstract: As an important part of the software engineering, software test has a crucial effect on improving software quality and reliability. In white box test tool, WBoxTool, the program is tested automatically using visual instrumentation and monitoring technology for standard C/C++ programs. The instrumented program can be run automatically, and the program dynamic information which to be analyzed lately can be collected at the same time. The technology of code analysis and instrumentation test which has been used in the WboxTool is described, and some test examples are carried to illustrate this approach.

Key words: Bidirectional adjacent list, Function calls tree, Function performance analysis, Control flow instrumentation