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

J4 ›› 2012, Vol. 34 ›› Issue (11): 124-129.

• 论文 • 上一篇    下一篇

基于UML图和不同粒度切片的回归测试研究

钱雪忠,宋建生   

  1. (江南大学物联网工程学院,江苏 无锡 214122)
  • 收稿日期:2011-10-21 修回日期:2011-12-13 出版日期:2012-11-25 发布日期:2012-11-25
  • 基金资助:

    江苏省科技支撑计划资助项目(BE2009009)

Research on Regression Testing Based on UML Diagram and Different Granularity Slicing

QIAN Xuezhong,SONG Jiansheng   

  1. (School of Internet of Things Engineering,Jiangnan University,Wuxi 214122,China)
  • Received:2011-10-21 Revised:2011-12-13 Online:2012-11-25 Published:2012-11-25

摘要:

针对面向对象软件回归测试的新特点,本文引入了基于UML图的不同粒度切片。首先,对描述类间关系的UML类图和描述状态变迁关系的UML状态图形式化定义。接着,对定义的图进行切片分析,其中类间测试提出一种基于UML类图的粗粒度切片工具;类内测试提出一种基于UML状态图细粒度切片的方法。最后,将其应用于销售订单系统,结果表明以上两种分析方法可以有效地提高回归测试效率。

关键词: 回归测试, UML类图, UML状态图, 粗粒度切片, 细粒度切片

Abstract:

According to the new features of regression testing about objectoriented software, a different granularity slicing method based on UML diagram is introduced. First of all, the UML class diagram which describes the relationship of classes and the UML state diagram which describes the relationship of states are formulated. Second, the defined diagrams are analyzed, A coarsegrained slicing tool based on UML class diagram is presented in the interclass test, while a finegrained slicing method based on UML state diagram is proposed in the innerclass test. Finally, they are applied into the salesorder system. The result shows that the efficiency of regression testing can be improved effectively by these two analysis methods. 

Key words: regression testing;UML class diagram;UML state diagram;coarsegrained slicing;finegrained slicing