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

›› 2005, Vol. 31 ›› Issue (21): 85-87.

• 论文 • 上一篇    下一篇

一种基于UML状态图的面向对象类级测试模型

张庆,雷航   

  1. 电子科技大学计算机与工程学院,电子科技大学计算机与工程学院 成都 610054
  • 发布日期:2005-11-15

An Object-oriented Class Testing Model Based on UML Statechart

ZHANG Qing,LEI Hang   

  1. (Computer Science and Engineering College,University of Electronic Science and Technology,Chengdu 610054)
  • Published:2005-11-15

摘要: 扩展有限状态机(EFSM)因其具有对系统控制特征(即系统的状态)和数据特征的平面结构描述,而有利于对软件的测试。然而对一个较复杂的类直接建立EFSM图比较困难。将两种工具的优势相结合,提出了一种从UML状态图转为扩展有限状态机的方法,使之能采用传统的测试方法对类进行状态覆盖和数据流覆盖。

关键词: 面向对象, 软件测试, UML状态图, 扩展有限状态机

Abstract: Since the extended finite state machine(EFSM) describes both the control aspect(the state of the system) and the data aspect of the system by a flat chart,it is convenient to test software.However it’s difficult to set up EFSM for a complex class.To achieve the merit of two graphics tools,a method is proposed to transform the UML statechart to the EFSM.In this way,the conventional method of control flow and data flow can be used to test the class.

中图分类号: