摘要
考虑到单元测试的并行性,提出了基于函数优先级的测试策略.分析了函数的参数、全局变量和局部变量对函数控制流正确实现的影响,建立了量化的权值影响因子数学模型,并结合函数的控制流图生成了带权值有向无环图,最后根据AOE-网关键路径求解算法,生成被测函数的关键路径,设计测试用例.测试结束之后,再进行次关键路径选择,直至达到测试标准.通过以上技术,合理分配各模块测试计划时间,有助于提高软件测试效率,保证软件质量.
Considering the parallelism of unit testing, the testing strategy based on the priority of function was put forward. The influence of parameters, global and local variables on the proper realization of the control flow of func- tion was analyzed, the quantitive mathematical model of the weight influencing factor was built, and at the same time, combining the control flow chart of the function, the weighted directed acycline graph was given. The critical path of the tested function was found by the algorithm based on AOE-net and the test case was designed. After the test, choose the hypo-critical path again until the test criterion is reached. According to the technology above, the scheduled test time for every module is assigned reasonably, improving the software test efficiency and achieving the objective of software quality assurance (SQA).
出处
《应用科技》
CAS
2010年第7期30-34,共5页
Applied Science and Technology
关键词
关键路径
函数优先级
单元测试
关键函数
critical path
software testing
unit testing
critical function