【24h】

Using State Diagrams to Generate Unit Tests for Object-Oriented Systems

机译:使用状态图生成面向对象系统的单元测试

获取原文
获取原文并翻译 | 示例

摘要

Traditionally, finite state machines and their extensions, such as stream X-machines, have been used for modelling and testing of graphical user interfaces (GUI) and for acceptance testing. This paper shows how these testing techniques can be successfully extended to unit test generation for object-oriented systems and integrated into Extreme Programming in a simple and designer-friendly way. The approach has been used by MSc students in Computer Science at the Pitesti University to write JUnit tests for XP projects and the effectiveness of these tests has been compared with that of tests produced using ad-hoc and traditional functional methods. The conclusions show that over 90% of the faults found by other methods have also been found by the stream X-machine based approach, whereas less than 75% (in many instances less than half) of the faults uncovered by the stream X-machine based testing have been found by other methods. As the finite state machine based test generation has been automated, the time spent using the two testing strategies was roughly equal.
机译:传统上,有限状态机及其扩展(例如流X机)已用于图形用户界面(GUI)的建模和测试以及验收测试。本文展示了如何将这些测试技术成功地扩展到面向对象系统的单元测试生成,并以一种对设计者友好的方式将其集成到Extreme Programming中。 Pitesti大学计算机科学专业的理学硕士课程的学生已使用该方法编写XP项目的JUnit测试,并将这些测试的有效性与使用即席和传统功能方法进行的测试的有效性进行了比较。结论表明,其他方法发现的故障中,超过90%的故障也已通过基于流X机的方法发现,而流X机发现的故障中,不到75%(在许多情况下少于一半)其他方法也发现了基于基础的测试。由于基于有限状态机的测试生成已实现自动化,因此使用这两种测试策略所花费的时间大致相等。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号