%0 Journal Article %T 深度优先搜索算法生成测试用例的改进技术
An Improved Technique for Generating Test Cases with Depth-First Search Algorithms %A 王婷婷 %A 胡勇 %A 王晨光 %A 侯磊 %A 刘芸 %A 孟伟 %J Computer Science and Application %P 1245-1254 %@ 2161-881X %D 2019 %I Hans Publishing %R 10.12677/CSA.2019.97140 %X
为保证系统软件的质量,弥补目前测试用例生成方法的不足,提高用例生成的准确性和完整性,本论文以某软件为典型代表和应用对象对国内外测试用例生成技术进行研究,并针对业务控制流、数据流和树形结构图的构造方法进行探索,结合深度优先搜索算法和实际应用要求,对传统的深度优先搜索算法进行优化改进,在每个分支节点增加加权参数,避免节点存在多条路径时丢失其他节点到该节点的路径覆盖数据,以便可以遍历到所有数据分支,使其快速搜索有效测试用例,覆盖测试需求。
Software test is an effective method to ensure the quality of software; the test case generation is the key of software testing, in order to guarantee the quality of the system software, make up for the inadequacy of the method to generate test cases, improve the accuracy and integrity of the generated cases. Taking some software of aerospace as the typical representative and application object, the test case generation technology at home and abroad is studied to explore the method of business control flow, data flow and the tree structure view. Combined with the depth first search algorithm and the actual application requirements, the traditional depth-first search algorithm is optimized to improve, make its rapid search effective test cases, and cover with test requirements.
%K 测试用例生成,业务逻辑,改进深度优先搜索算法,软件测试
Test Case Generation %K Business Logic %K Improved Depth-First Search Algorithm %K Software Testing %U http://www.hanspub.org/journal/PaperInformation.aspx?PaperID=31255