基于改進粒子群的組合測試用例生成技術(shù)研究
[Abstract]:As a kind of software testing method based on specification, combinatorial testing aims to select a small number of effective test cases from the huge combination space of the software to be tested, so as to generate a set of test cases with high coverage and strong error-detection ability. However, combinatorial test case generation is a NP problem, which needs to be solved in polynomial time. Therefore, meta-heuristic search algorithm is needed to solve the problem. Compared with other meta-heuristic search algorithms, PSO is more competitive in the scale and execution time of overlay table generation. This paper systematically reviews and summarizes the existing research results of generating combinatorial test case sets using particle swarm optimization algorithm, aiming at variable strength combinatorial testing problem and particle swarm optimization algorithm parameter selection problem. Combining the improved one-test-at-a-time strategy with the adaptive particle swarm optimization (APSO), a combined test case generation method, which can deal with arbitrary coverage strength, is proposed. The main research work and contributions of this paper are summarized as follows: (1) aiming at the constraint problems existing in the actual software to be tested, a method similar to avoiding the selection strategy is proposed to pre-process the constraint conditions. Before generating test cases, the invalid combination of constraints is eliminated, the size of the combination set to be covered is reduced to a certain extent, and the error of fitness caused by the invalid combination is avoided. (2) aiming at the problem of one-test-at-a-time policy combination selection, In this paper, two priority measurement methods are proposed: overlay combination measure method and factor value measure method. In the process of generating a single test case, the combination with the largest weights is selected first for the generation of a single test case. The randomness and blindness of the original algorithm are avoided. (3) aiming at the parameter assignment problem of particle swarm optimization, four parameters such as inertia weight, learning factor, population size and iteration times are set reasonably. PSO is more suitable for generating overlay table. For inertial weight, the inertia weight is adaptively adjusted according to the particle's merits and demerits, and the distance between particle and the current global optimal solution is taken as the evaluation criterion of particle's superiority and inferiority. A dynamic adjustment strategy of learning factors is proposed to change the learning factors with different iterative processes, and the population size and iteration times are discussed in depth, and the corresponding values are set for the size of the combination set. In order to verify the effectiveness of the improved strategy proposed in this paper, the improved algorithm proposed in this paper is implemented by MATLAB programming and compared with the original algorithm. The experimental results show that the improved algorithm has some advantages in generating the size of test case set and the execution time of the algorithm.
【學(xué)位授予單位】:浙江理工大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2017
【分類號】:TP311.53;TP18
【參考文獻】
相關(guān)期刊論文 前10條
1 申情;蔣云良;沈張果;樓俊鋼;;基于組合混沌遺傳算法的最小測試用例集生成[J];電信科學(xué);2016年06期
2 張娜;姚瀾;包曉安;董萌;桂寧;;多目標(biāo)優(yōu)化的測試用例優(yōu)先級在線調(diào)整策略[J];軟件學(xué)報;2015年10期
3 毛澄映;喻新欣;薛云志;;基于粒子群優(yōu)化的測試數(shù)據(jù)生成及其實證分析[J];計算機研究與發(fā)展;2014年04期
4 侯剛;周寬久;勇嘉偉;任龍濤;王小龍;;模型檢測中狀態(tài)爆炸問題研究綜述[J];計算機科學(xué);2013年S1期
5 孫曉妍;;軟件測試技術(shù)理論與方法高效率化探究[J];軟件導(dǎo)刊;2013年01期
6 王子元;錢巨;陳林;徐寶文;;基于One-test-at-a-time策略的可變力度組合測試用例生成方法[J];計算機學(xué)報;2012年12期
7 吳化堯;聶長海;;覆蓋表生成的粒子群算法:參數(shù)優(yōu)化和自適應(yīng)算法[J];小型微型計算機系統(tǒng);2012年10期
8 陳翔;顧慶;王子元;陳道蓄;;一種基于粒子群優(yōu)化的成對組合測試算法框架[J];軟件學(xué)報;2011年12期
9 李朔楓;李太勇;;一種基于距離的自適應(yīng)模糊粒子群優(yōu)化算法[J];計算機科學(xué);2011年08期
10 孫文雯;蔣靜;聶長海;;一種組合測試用例生成的可配置混合算法[J];計算機科學(xué);2011年08期
,本文編號:2272563
本文鏈接:http://sikaile.net/kejilunwen/zidonghuakongzhilunwen/2272563.html