• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (11): 66-68.

• 论文 • 上一篇    下一篇

基于UML顺序图的面向对象软件簇级测试用例生成

苏荟[1] 张毅坤[2]   

  • 出版日期:2007-11-01 发布日期:2010-05-30

  • Online:2007-11-01 Published:2010-05-30

摘要:

本文提出了一种新的面向对象软件簇级测试用例生成方法。在UML顺序图的基础上,首先从*.MDL文档中提取出类间的交互信息;然后,依据从UML顺序图中提取出来的类间的交互信息,采用文中给出的算法生成测试用例;最后,将生成的测试用例依据XML文档的格式存储,以便于管理,并通过实例对该测试用例生成方法进行了验证。

关键词: 面向对象软件簇级测试 UML顺序图 多态性 动态绑定 测试用例

Abstract:

This paper presents a new method of creating testing cases for objected-oriented software-cluster-level testing based on the UML sequence diagram. Firstly we take out the communication messages among the classes from the *. MDL file. Secondly we use an algorithm to create testing cases by these messa ages. Finally we save these testing cases into a XML document and thus the document is easy-to-manage. This method is illustrated by an example.

Key words: (OO software cluster-level testing, UML sequence, polymorphism, dynamic binding;testing case)