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

计算机工程 ›› 2010, Vol. 36 ›› Issue (11): 83-84,87. doi: 10.3969/j.issn.1000-3428.2010.11.030

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

基于UML活动图的多态性测试用例生成

覃钊璇,曾 一,柴艳欣,徐攀登   

  1. (重庆大学计算机学院,重庆 400030)
  • 出版日期:2010-06-05 发布日期:2010-06-05
  • 作者简介:覃钊璇(1985-),女,硕士,主研方向:软件工程,面向对象技术;曾 一,教授;柴艳欣、徐攀登,硕士
  • 基金资助:
    object-oriented; polymorphism; activity diagram; class diagram; test case

UML Activity Diagram-based Polymorphic Test Case Generation

QIN Zhao-xuan, ZENG Yi, CHAI Yan-xin, XU Pan-deng   

  1. (College of Computer, Chongqing University, Chongqing 400030)
  • Online:2010-06-05 Published:2010-06-05

摘要: 目前对于活动图的研究没有考虑到面向对象软件的多态性特点,无法在活动图中对多态消息进行测试。基于此,结合面向对象多态性的特点,根据UML类图对活动图中含有多态信息的节点进行加权扩展,利用所提出的优化算法对其进行遍历并得出数量少但覆盖率高的测试用例序列。通过实例说明该方法的实现过程,证明该方法的有效性。

关键词: 面向对象, 多态性, 活动图, 类图, 测试用例

Abstract: Since the current researches of activity diagram do not take into account of the polymorphism, which is one of the most important characteristics of the object-oriented software, it is impossible to test the polymorphism information of the activity diagram. Combining with the object-oriented polymorphic feature, this paper uses UML class diagram to do weighted expansion to the nodes containing polymorphism information in the activity diagram, and traversals it with an optimization algorithm to get the test case series which are smaller in amount but higher in coverage rate. It uses an example to prove the availability and effectiveness of the approach.

中图分类号: