基于区间运算的测试用例生成加速技术研究
[Abstract]:Software testing is an important method to ensure software quality. Unit test is the test of the smallest unit or module of the program under test, which is usually divided into three stages: test case generation, test case execution and test result statistics, in which the test case generation is usually done manually by the tester. Due to the huge workload and high repeatability of unit testing, a lot of manpower and time need to be invested. The automatic testing of unit testing, especially the development of automatic test case generation technology, solves the problems of low efficiency and high error rate of manual testing to a certain extent, promotes the development of software testing, and becomes the research focus in the field of software testing. In path-oriented unit testing, the problem of solving constraint sets on the target path is a difficult point in the automatic generation of test cases. Because of the complexity of the constraint system under test and the constraint of the algorithm, the efficiency of automatic generation of test cases and the correct rate of generating use cases are often not high. In this paper, aiming at improving the efficiency of automatic test case generation in unit testing, a library function constraint solving strategy based on semantic analysis and interval operation is proposed on the basis of branch bound test case framework and interval operation. It is used to solve the library function constraint in the target path. The interval consistency decision strategy based on iterative technique and interval operation is used to eliminate the influence of the processing order of constraints in the path on the results of interval operation and to reduce the interval of variables at the same time. The jump backtracking strategy based on variable correlation is used to avoid unnecessary backtracking and backward process and reduce the number of interval operations. The constraint transformation strategy converts some non-four operations in the path to be measured into four forms that can be processed by interval operation, and accelerates the solution of the constraint set on the target path by auxiliary variable assignment. The author encodes the above four strategies in the code test system (CodeTest System,CTS), and tests the effectiveness of these strategies in accelerating the automatic generation of test cases through related experiments. The experimental results show that the strategy proposed in this paper plays an obvious role in reducing the time of automatic test case generation and improving the efficiency of test case automatic generation.
【学位授予单位】:北京邮电大学
【学位级别】:硕士
【学位授予年份】:2016
【分类号】:TP311.53
【参考文献】
相关期刊论文 前9条
1 潘烁;王曙燕;王欢;;基于改进粒子群算法的组合测试数据生成[J];西安邮电学院学报;2012年03期
2 王林;尤枫;赵瑞莲;;基于改进遗传算法的面向路径测试数据生成[J];计算机工程;2012年04期
3 曾凡平;袁园;潘能刚;邓超强;;不变量指导的随机测试用例生成[J];小型微型计算机系统;2011年11期
4 王雅文;宫云战;肖庆;杨朝红;;基于抽象解释的变量值范围分析及应用[J];电子学报;2011年02期
5 王雅文;宫云战;肖庆;杨朝红;;扩展区间运算的变量值范围分析技术[J];北京邮电大学学报;2009年03期
6 王雅文;宫云战;杨朝红;;软件测试工具综述[J];北京化工大学学报(自然科学版);2007年S1期
7 薛云志;陈伟;王永吉;赵琛;王青;;一种基于Messy GA的结构测试数据自动生成方法[J];软件学报;2006年08期
8 李福川,宋晓秋;软件测试中的新方法——区间代数方法[J];计算机工程与设计;2005年10期
9 汪西原,汪西莉;启发式搜索策略(爬山法)的改进与实现[J];陕西师范大学学报(自然科学版);1999年01期
相关会议论文 前1条
1 曾勇军;王清贤;奚琪;;基于抽象区间域的数组边界检查技术[A];计算机研究新进展(2010)——河南省计算机学会2010年学术年会论文集[C];2010年
相关博士学位论文 前1条
1 邢颖;测试用例自动生成的分支限界算法及实验研究[D];北京邮电大学;2014年
相关硕士学位论文 前1条
1 郭劲松;约束满足问题(CSP)的求解技术研究[D];吉林大学;2013年
,本文编号:2492746
本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/2492746.html