基于區(qū)間運算的測試用例生成加速技術研究
[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];小型微型計算機系統(tǒng);2011年11期
4 王雅文;宮云戰(zhàn);肖慶;楊朝紅;;基于抽象解釋的變量值范圍分析及應用[J];電子學報;2011年02期
5 王雅文;宮云戰(zhàn);肖慶;楊朝紅;;擴展區(qū)間運算的變量值范圍分析技術[J];北京郵電大學學報;2009年03期
6 王雅文;宮云戰(zhàn);楊朝紅;;軟件測試工具綜述[J];北京化工大學學報(自然科學版);2007年S1期
7 薛云志;陳偉;王永吉;趙琛;王青;;一種基于Messy GA的結構測試數據自動生成方法[J];軟件學報;2006年08期
8 李福川,宋曉秋;軟件測試中的新方法——區(qū)間代數方法[J];計算機工程與設計;2005年10期
9 汪西原,汪西莉;啟發(fā)式搜索策略(爬山法)的改進與實現[J];陜西師范大學學報(自然科學版);1999年01期
相關會議論文 前1條
1 曾勇軍;王清賢;奚琪;;基于抽象區(qū)間域的數組邊界檢查技術[A];計算機研究新進展(2010)——河南省計算機學會2010年學術年會論文集[C];2010年
相關博士學位論文 前1條
1 邢穎;測試用例自動生成的分支限界算法及實驗研究[D];北京郵電大學;2014年
相關碩士學位論文 前1條
1 郭勁松;約束滿足問題(CSP)的求解技術研究[D];吉林大學;2013年
,本文編號:2492746
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/2492746.html