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

计算机工程 ›› 2009, Vol. 35 ›› Issue (3): 94-95,1. doi: 10.3969/j.issn.1000-3428.2009.03.033

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

基于HFSM模型的GUI自动测试

姜文君1,李建涛2   

  1. (1. 湖南信息科学职业学院计算机科学与技术系,长沙 410100;2. 三一重工,长沙 410100)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-02-05 发布日期:2009-02-05

Automatic GUI Test Based on HFSM Model

JIANG Wen-jun1, LI Jian-tao2   

  1. (1. Department of Computer Science and Technology, Hunan Vocational College of Information and Science, Changsha 410100;2. SANY Company, Changsha 410100)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-02-05 Published:2009-02-05

摘要: 针对图形用户界面(GUI)软件的层次性,采用分层有限自动机(HFSM)模型对被测GUI软件建模,将GUI测试转换为预期HFSM和实际HFSM的一致性测试。模型自动搜索GUI控件,提供接口,采用均匀设计思想自动产生测试数据,由测试数据驱动测试执行。根据GUI软件的特点,采用增量方式进行模型构造和测试,从而避免错误积累。

关键词: GUI自动测试, 分层有限自动机, 数据驱动, 增量测试

Abstract: This paper focuses on Graphical User Interface(GUI)’s automatic test. The most difficult thing is test case generation. This paper adopts a new technique to test GUIs automatically. It describes GUIs with Hierarchical Finite State Machine(HFSM), and then the work is converted into the consistency testing of the expected HFSM and the actual HFSM. It searches GUIs’ controls initiatively and automatically, and generates the tesing data with ‘uniform design’ method. Testing data drive the test to be executed. According to the characteristics of GUIs, this paper adopts incremental mode to construct the model and to do test, to avoid error accumulation.

Key words: automatic Graphical User Interface(GUI) test, Hierarchical Finite State Machine(HFSM), data driving, incremental test

中图分类号: