摘要
静态回归测试用例集构建策略是依据程序间的调用关联,分析因代码更改而受影响的模块,进而构建回归测试用例集,该方法并没有考虑程序间的隐式数据关联,对同一数据库操作或者对公共对象数据操作的方法间存在隐式数据关联。针对代码更改不仅会对调用关联的方法产生影响,也会对隐式数据关联的方法产生影响进行研究,提出了一种多重关联的静态回归测试用例集构建策略,通过构建多重方法关联图分析方法间调用关联和隐式数据关联,进而依据关联关系构建因代码更改而受影响的回归测试用例集。通过对四个开源项目进行实验评估,实验结果表明提出的静态策略提高了回归测试的安全性和精确性。
The building strategy of static regression test case set is to analyze the modules affected by the changed code based on the invocation association between the programs and then to build the regression test case set. However,it does not take into account the implicit data association in the program. In fact,there are implicit data association between the methods that operate the same database or the global data. The changed code will not only affect methods that have invoking association,but also affect the methods that have implicit data association. This paper presented a building strategy of static regression test case set based on multi-associations,and constructed a multiple method associative graph with method invocation association and implicit data association to build the regression test case set affected by code change. It conducted an experimental evaluation of four open source projects. The results show that the proposed static strategy improves the safety and accuracy of regression testing.
作者
刘惠敏
赵逢禹
刘亚
Liu Huimin;Zhao Fengyu;Liu Ya(School of Optical-Electrical & Computer Engineering,University of Shanghai for Science & Technology,Shanghai 200093,China)
出处
《计算机应用研究》
CSCD
北大核心
2019年第1期119-122,15,共5页
Application Research of Computers
基金
国家自然基金青年基金资助项目(61402288)
关键词
静态回归测试
回归测试集构建
隐式数据关联
多重方法关联图
static regression test
regression test case set building
implicit data association
multiple method associative graph