计算机科学 ›› 2014, Vol. 41 ›› Issue (Z11): 375-378.

• 软件工程与数据库技术 • 上一篇    下一篇

基于故障树分析与组合测试的测试用例生成方法

张卫祥,刘文红   

  1. 北京跟踪与通信技术研究所 北京100094;北京跟踪与通信技术研究所 北京100094
  • 出版日期:2018-11-14 发布日期:2018-11-14

Test Suite Generation Based on Interaction Testing and Fault Tree Analysis

ZHANG Wei-xiang and LIU Wen-hong   

  • Online:2018-11-14 Published:2018-11-14

摘要: 随着软件的日益复杂,如何从巨大的可用测试用例空间中选择少量的测试用例进行有效的测试,成为了软件测试的重要课题之一。给出了一种易于自动化实现的软件测试用例生成方法。首先运用故障树分析原理,获取待测软件故障树的最小割集;然后利用等价类划分法、边界值分析法等经典黑盒测试方法,获取各最小割集中每个元素的典型取值集合;最后利用组合测试技术,在充分考虑各元素两两之间关系的基础上生成测试用例集。该方法对传统的故障树分析方法进行了改造,具有更大的适用范围;综合利用组合覆盖技术与黑盒测试方法,能有效保障测试充分性并减少测试用例数目。工程实践表明,该方法能够大幅提高测试效率。

关键词: 软件测试,测试用例生成,组合测试,故障树分析,最小割集,测试用例集,软件工程

Abstract: Due to the increasing software complexity,how to select a few representative test cases to test software effectively has become an outstanding problem.This paper gave an integrative method for test suite generation,which can be divided into three parts,first uses an amended Fussell-Vesely algorithm to get minimal cut sets of the software,second uses black-box testing methods to obtain the typically discrete values of each element in minimal cut sets,finally uses an interaction testing algorithm to generate the test suite with a view to the interactional relationship between any two elements.Practice shows that the method can significantly reduce test cases count on the basis of ensuring software testing effect.

Key words: Software testing,Test suite generation,Interaction testing,Fault tree analysis,Minimum cut set,Test suite, Software engineering

[1] Ammann P,Offutt J.Introduction to Software Testing[M].Cambridge University Press,2008
[2] 朱继洲.故障树原理及应用[M].西安:西安交通大学出版社,1989
[3] 肖英柏,向剑文,徐仁佐.软件可靠性稳定增长与安全性测试的故障树分析法[J].小型微型计算机系统,1999,20(9):668-671
[4] 刘文红.故障树分析技术在软件测试中的应用[J].系统工程与电子技术,2004,26(7):985-988
[5] 胡智,殷人昆.基于最小割集的安全性测试用例的动态生成[J].计算机工程与设计,2006,27(16):3018-3020
[6] 朱云鹏.基于故障树分析法的软件测试技术研究[J].计算机工程与设计,2008,29(13):3387-3390
[7] 张卫祥,刘文红.一种基于组合覆盖的黑盒测试用例自动生成方法[J].飞行器测控学报,2008,27(5):53-56
[8] 聂长海,徐宝文.基于接口参数的黑箱测试用例自动生成算法[J].计算机学报,2004,27(3):382-388
[9] Kobayashi N,Tsuchiya T,Kikuno T.A new method for constructing pair-wise covering designs for software testing[J].Information Processing Letters,2002,81(2):85-91
[10] 陈翔,顾庆,王新平,陈道蓄.组合测试研究进展[J].计算机科学,2010,37(3):1-5
[11] 何国伟.软件可靠性[M].北京:国防工业出版社,1998
[12] 张卫祥,刘文红,杜会森.基于软件测试与知识发现的软件定量评估方法[J].计算机科学,2012,39(11A):28-30

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!