首页 | 本学科首页   官方微博 | 高级检索  
     

基于插桩技术的动态测试研究与实现
引用本文:张荣,王曙燕.基于插桩技术的动态测试研究与实现[J].现代电子技术,2011,34(4):50-52,55.
作者姓名:张荣  王曙燕
作者单位:西安邮电学院,计算机学院,陕西,西安,710121
基金项目:陕西省教育厅资助项目(09JK727); 陕西省公关计划资助项目(2009K08-26)
摘    要:为了动态进行白盒、黑盒测试,设计实现了基于源代码插桩的动态测试工具,该工具包含了源代码的预处理方法、插桩库设计、插桩策略以及统计分析等内容。通过对源代码的语法、词法分析,对其插桩能获取最高的准确度,并且设计在函数执行,结束之前统一将桩信息写入桩文件中,减少了大量的I/O操作。最终,通过测试用例的执行获得了覆盖率、执行时间、复杂度等测试数据,正确地得到了测试用例优劣性的指标。

关 键 词:程序插桩  动态测试  覆盖率  软件测试

Research and Implementation of Dynamic Tests Based on Instrumentation Technology
ZHANG Rong,WANG Shu-yan.Research and Implementation of Dynamic Tests Based on Instrumentation Technology[J].Modern Electronic Technique,2011,34(4):50-52,55.
Authors:ZHANG Rong  WANG Shu-yan
Affiliation:ZHANG Rong,WANG Shu-yan(Department of Computer Science,Xi'an University of Post and Telecommunications,Xi'an 710121,China)
Abstract:In order to perform the dynamic testing of the white-box and black box,the dynamic testing tool based on source code instrumentation pile is designed.This tool contains the preprocessing methods of source code,the design of instrumentation library,instrumentation strategy and statistical analysis.The high accuracy can be obtained through the syntax and lexical analyses of the source code.The instrumentation information is written into a file before the fulfilment of the function,the way which can reduce a l...
Keywords:program instrumentation  dynamic testing  coverage rate  software testing  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号