
第22卷第1期 2014年1月
文章编号
1004-924X(2014)01-0228-07
光学精密工程
Optics and Precision Engineering
Vol.22No.1
Jan.2014
面向需求覆盖的航天软件测试用例优化方法
王红园1.2,郭永飞1,,姬琪
(1.中国科学院长春光学精密机械与物理研究所,吉林长春130033:
2.中国科学院大学,北京100039)
摘要:研究了一种面向需求覆盖率的测试用例优化方法,用于提高测试效率,增加航天软件测试的有效性。该测试用例优化方法包括测试用例约简和测试用例设计两部分,目前已应用于某航天型号项目的测试过程中,文中分析了航天软件的特点,测试流程及测试过程中可采用的优化技术。研究了现有的测试用例约简方法,并改进了基于测试需求的约简方法,使之能够满足需求覆盖率的要求。之后,提出了一种基于需求关键词关联的测试用例设计方法,以确保达到预期的需求覆盖率。最后,将这种优化方法应用于工程实践,并进行了结果分析。应用结果表明,采用上述方法不但满足了
需求覆盖率的要求并使测试用例设计的工作量降低了约39%,保证了测试充分性,并有效地提高了测试效率。关键调:软件测试;航天软件;需求覆益;需求约简;用例设计
中图分类号:TP311.5
文献标识码:A
doi:10,3788/OPE,20142201,0228
Optimizationofaerospacesoftwaretestcasesbasedonrequirementcoverage
WANG Hong-Yuan'-", Guo Yong-Fei'', Ji Qi
(l.Changchun Institute of Optics,Fine Mechanics and Physics, Chinese Academy of Sciences,
Changchun130033,China;
2.University of Chinese Academy of Sciences,Beijing 100039,China)
*Correspondingauthor,E-mail:guoyf@ciomp.ac.cn
Abstract: An approach to optimize the aerospace software test cases based on the requirement coverage is researched in this paper to improve the efficiency of the software testing and increase the effective-ness of aerospace software testing. It is composed of the reduction and design of test cases, and has been used in a test of aerospace project. Firstly,the characteristics, testing process, and optimization techniques of aerospace software are analyzed, Then, a method to reduce test requirements is im proved to simplify the test requirements, Furthermore, a design of test cases based on the correlative keywords of requirements is given, and the requirement coverage is achieved. Finally, the optimizing approach is applied in the test of aerospace software. The results of application show that the method can not only satisfy the demand of requirement coverage, but also make the workload of designing test cases reduce by 39%. The method ensures testing adequacy, and improves the test efficiency greatly. Key words: software testing; aerospace software; requirement coverage; requirement reduction; de-
sign of test case
收稿日期:2013-05-25;修订日期:2013-07-20,
基金项目:国家863高技术研究发展计划资助项目(No.2011AA7031024G)