计算机工程与应用 ›› 2011, Vol. 47 ›› Issue (32): 87-90.

• 研发、设计、测试 • 上一篇    下一篇

含过程调用EFSM模型测试数据生成

尤 枫,闫 宇,赵瑞莲   

  1. 北京化工大学 信息科学与技术学院,北京 100029
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2011-11-11 发布日期:2011-11-11

Test data generation for EFSM models involving procedure call

YOU Feng,YAN Yu,ZHAO Ruilian   

  1. Department of Information Science and Technology,Beijing University of Chemical Technology,Beijing 100029,China
  • Received:1900-01-01 Revised:1900-01-01 Online:2011-11-11 Published:2011-11-11

摘要: 针对含过程调用EFSM模型测试数据生成中过程调用的不可执行问题,提出了一种能对过程调用进行处理以实现模型的测试数据自动生成方法。该方法将被调子过程描述为一个EFSM模型,将表示主过程及子过程的EFSM模型合并为一个新的模型,合并后的模型符合EFSM模型规范,采用遗传算法对该模型进行测试数据自动生成。实验结果表明,该方法能够较好地解决含过程调用EFSM模型的测试数据自动生成问题。

关键词: 扩展有限状态机(EFSM), 测试数据生成, 过程调用, 遗传算法, 子模型

Abstract: Normally,procedure call in EFSM models is not executable.For the purpose of handling test data generation for EFSM models which involves procedure call,an approach is proposed to deal with the procedure call.In this approach,the sub-procedure is described as an EFSM model.The EFSM model representing the main procedure and the EFSM model representing the sub-procedure are merged into a new EFSM model.A genetic algorithm is employed to generate test data.The experimental results show that the proposed method is promising and effective in test data generation for EFSM models in which procedure call is embedded.

Key words: Extended Finite State Machine(EFSM), test data generation, procedure call, genetic algorithms, sub-model