Computer Engineering and Applications ›› 2009, Vol. 45 ›› Issue (6): 85-88.DOI: 10.3778/j.issn.1002-8331.2009.06.025

• 研发、设计、测试 • Previous Articles     Next Articles

Research and implement of method for source code variation and management on white-box testing

LIU Yong-po1,2,LIU Ling-hui1,YAN Hai-hua1,JIN Mao-zhong1,LIU Xue-mei2,3   

  1. 1.School of Computer Science and Technology,Beihang University,Beijing 100083,China
    2.School of Computer & Information Technology,Daqing Petroleum Institute,Daqing,Heilongjiang 163318,China
    3.College of Computer Science and Technology,Harbin Engineering University,Harbin 150001,China
  • Received:2008-07-30 Revised:2008-12-19 Online:2009-02-21 Published:2009-02-21
  • Contact: LIU Yong-po

白盒测试中源代码变更管理方法的研究与实现

柳永坡1,2,刘凌辉1,晏海华1,金茂忠1,刘雪梅2,3   

  1. 1.北京航空航天大学 计算机学院,北京 100083
    2.大庆石油学院 计算机与信息技术学院,黑龙江 大庆 163318
    3.哈尔滨工程大学 计算机科学与技术学院,哈尔滨 150001
  • 通讯作者: 柳永坡

Abstract: In the large-scale project of software white-box testing,it increases lots of additional difficulties for testing work in that source codes variety frequently,it is an important work for white-box testing process management to control and manage source codes effectively.It researches actuality of version control and management based on existing software testing process model and presents a new method of version contrast,it applies an abstract method,a simplified directory tree,to contrast software modules.It decomposes granularity to method for file contrast,and it researches the contrast algorithm within a method.At last it designs and implements a subsystem of version management for source codes in actual project.

Key words: white-box testing, testing process management, source code analysis, source code variation, version control

摘要: 在大型软件白盒测试项目中,源代码的频繁变化给测试工作增加了很大难度,对源代码进行管理和控制是对白盒测试过程管理的一个重要补充。在已有的软件测试过程管理模型基础上,认真分析研究版本控制和管理的相关技术现状,提出了变更管理的改进方法,对于软件模块的比较采用了抽象的方法简化为目录树,而在文件比较中基于源代码静态分析工具,把文件比较的粒度分解到方法一级,进行了方法内部比较算法的研究,设计实现了源代码版本管理子系统。

关键词: 白盒测试, 测试过程管理, 源代码分析, 源代码变更, 版本控制