计算机应用 ›› 2014, Vol. 34 ›› Issue (1): 276-280.DOI: 10.11772/j.issn.1001-9081.2014.01.0276

• 计算机软件技术 • 上一篇    下一篇

基于UML模型的系统级测试用例生成方法

冯秋燕   

  1. 河南财经政法大学 图书馆, 郑州 450000
  • 收稿日期:2013-06-27 修回日期:2013-08-25 出版日期:2014-01-01 发布日期:2014-02-14
  • 通讯作者: 冯秋燕
  • 作者简介:冯秋燕(1988-),女,河南新乡人,助理工程师,硕士研究生,主要研究方向:现代软件工程技术、数据挖掘。

System-level test case generating method based on UML model

FENG Qiuyan   

  1. Library, Henan University of Economics and Law, Zhengzhou Henan 450000, China
  • Received:2013-06-27 Revised:2013-08-25 Online:2014-01-01 Published:2014-02-14
  • Contact: FENG Qiuyan

摘要: 采用基于UML模型的软件测试方法,主要整合用例图与顺序图进行系统级的软件测试。首先提出用例执行图(UEG)的生成算法、顺序执行图(SEG)的生成算法,及基于UEG和SEG,生成系统测试图(STG)的算法;其次,根据制定的三层次准则,遍历UEG、SEG、STG生成测试用例,主要解决交互错、场景错、用例执行错和用例依赖错等问题。最后,经实例分析和实验验证,该方法可以基于用例图和顺序图进行系统级的软件测试。

关键词: UML模型, 软件测试, 用例图, 顺序图, 测试用例

Abstract: With the software testing methods based on Unified Model Language (UML) models, use case diagrams and sequence diagrams were integrated for system testing. Firstly, three algorithms were proposed including the algorithm for generating Use case diagram Execution Graph (UEG), the algorithm for generating Sequence diagram Execution Graph (SEG) and the algorithm for generating System Testing Graph (STG) based on UEG and SEG. Then, the UEG, SEG and STG were traversed to generate test cases for system-level testing based on specified three-level criteria, mainly to detect interaction, scenario, use case and use case dependency faults. Finally, the experimental validation shows that the solution can do system-level software testing based on use case diagram and sequence diagram.

Key words: UML model, software testing, use case diagram, sequence diagram, test case

中图分类号: