首页> 中文期刊> 《现代电子技术》 >基于插桩技术的动态测试研究与实现

基于插桩技术的动态测试研究与实现

         

摘要

为了动态进行白盒、黑盒测试,设计实现了基于源代码插桩的动态测试工具,该工具包含了源代码的预处理方法、插桩库设计、插桩策略以及统计分析等内容.通过对源代码的语法、词法分析,对其插桩能获取最高的准确度,并且设计在函数执行,结束之前统一将桩信息写入桩文件中,减少了大量的I/0操作.最终,通过测试用例的执行获得了覆盖率、执行时间、复杂度等测试数据,正确地得到了测试用例优劣性的指标.%In order to perform the dynamic testing of the white-box and black box, the dynamic testing tool based on source code instrumentation pije 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 large number of IO operations.The testing parameters of code coverage rate, execution duration and complexity were obtained.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号