作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (21): 73-75. doi: 10.3969/j.issn.1000-3428.2008.21.027

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

基于UML顺序图测试用例的生成

李建军1,朱 敏2,刘晓娟1,邵培南1   

  1. (1. 华东计算技术研究所,上海 200233;2. 海军驻上海地区电子设备军事代表室,上海 200233)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-11-05 发布日期:2008-11-05

Generation of Test Cases Based on UML Sequence Diagrams

LI Jian-jun1, ZHU Min2, LIU Xiao-juan1, SHAO Pei-nan1   

  1. (1. East China Institute of Computer Technology, Shanghai 200233; 2. PLA Representatives Office of Naval Electronic Equipment in Shanghai District, Shanghai 200233)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-11-05 Published:2008-11-05

摘要: 在分析UML模型可测试性的基础上,提出一种基于UML顺序图模型生成分布式系统测试用例方法,以系统软件配置项为对象对分布式应用典型场景进行模拟,通过解析MDL文件给出对顺序图XML的建模方案,实现一个自动生成分布式系统测试用例工具。实验结果表明,生成的测试用例达到判定覆盖的标准,具有良好的应用前景。

关键词: 分布式系统, 测试用例生成, UML顺序图, XML建模

Abstract: Beginning with analyzing the testability of UML model, this paper puts forward an approach to generate test cases for distributed system based on UML sequences diagrams, gives a schema to model the UML sequence diagrams with XML based on parsing the MDL file, and generates test cases for distributed system based on sequences diagrams. Experimental results indicate that test cases reach the standard of determinantor and overlay, and it has a good prospect of application.

Key words: distributed system, test cases generation, UML sequence diagrams, XML modeling

中图分类号: