为了在源代码不可见的黑盒环境下提高软件测试效率,研究了通过调整测试用例执行顺序的测试用例优先级方法在黑盒测试中的应用。针对已有的用于黑盒测试优先级方法的不足,提出了改进的基于黑盒测试的优先级方法。以提高错误检测率为目标,该方法通过结合两种用于不同情况下的优先级调整策略和使用动态方法代替静态方法生成优先级步调调整值对原方法提出了两处改进。仿真实验结果表明,该算法有效且可行,两处改进均能有效地提高测试集的错误检测率,同时使用改进效果尤为明显。
To improve the efficiency of software test in black box environment when there is no source code,test case prioritization by ordering test cases for black box testing is studied.To overcome shortcomings of existed test case prioritization for black box testing,an advanced test case prioritization for black box testing is proposed.This method presents two improvements,which are combining two prioritization strategies for different situations and using dynamic method to substitute static method to generate prioritization adjustment step,to improve the rate of fault detection.A simulation experiment is presented to prove the feasibility and validity of the proposed method.Two improvements are both more effective in raising test set fault detection rate.When using them together,more obvious effects can be achieved.