计算机与现代化 ›› 2012, Vol. 208 ›› Issue (12): 136-138,.doi: 10.3969/j.issn.1006-2475.2012.12.035

• 应用与开发 • 上一篇    下一篇

面向状态图的类级测试方法研究

屈迟文   

  1. 百色学院数学与计算机信息工程系,广西百色533000
  • 收稿日期:2012-07-10 修回日期:1900-01-01 出版日期:2012-12-22 发布日期:2012-12-22

Research on Class-level Test Methods for State Diagram

QU Chi-wen   

  1. Department of Mathematics & Computer Information Engineering, Baise University, Baise 533000, China
  • Received:2012-07-10 Revised:1900-01-01 Online:2012-12-22 Published:2012-12-22

摘要: 面向对象软件是由类及其类之间的关联所实现,类测试是面向对象软件测试的关键。本文研究一种将包含层次和并发结构的状态图转化为可扩展有限状态机(EFSM)并获得相应的测试生成树,由测试树产生软件测试数据的类级软件测试方法。实验证明,该测试方法是有效可行的,在实践中能够取得较好的效果。

关键词: 状态图, 类级测试, EFSM

Abstract: Object-oriented software is implemented by the classes and the association between its classes. Class testing is the key to objectoriented software testing. The paper studies a method of class level software testing that how the state diagram containing hierarchy and concurrent structure is transformed into extended finite state machine(EFSM)and obtains the corresponding test spanning tree, then uses the test spanning tree to produce software testing data. Experiments show that the test method is feasible and effective, and better results could be achieved in practice.

Key words: state diagram, class level software testing, EFSM

中图分类号: