摘要
在软件测试中,测试用例的设计是最关键、耗时最多的环节。单个值情况下的测试用例相对比较简单。当输入数据为组合数据时,为了获取更加全面的测试用例以提高软件测试的准确性,提出一种将判定表设计及人工代码、计算机测试相结合的测试用例设计机制。通过两种算法得出最有效测试用例,该机制能生成比基于状态的完全路径覆盖准则及其搜索算法更优的测试用例集,能更好地覆盖各种组合条件情况,也更适合实际测试时需要连续对软件进行测试的客观情况。实验证明,该方法确实能够提高测试用例设计的全面性及有效性。
In software testing ,test case design is the most critical and most time consuming part .A single value of test cases is relatively simple .In order to obtain a more comprehensive test cases to improve the accuracy of software testing when the input data for the combination ,the design is put forward that the combination of a decision table and artificial code , and computer test .The most effective test cases are received through two algorithms .The test cases can generate better test suite than full path coverage criterion and its search algorithm based on state ,This mechanism can cover a variety of combi-nation conditions ,and more suitable for actual test need continuous testing software of objective conditions .Experiments show that this method can improve the comprehensiveness and effectiveness of test case design .
出处
《计算机与数字工程》
2014年第7期1150-1152,1156,共4页
Computer & Digital Engineering