›› 2013, Vol. 26 ›› Issue (4): 17-.

• 论文 • 上一篇    下一篇

基于FSM的Web应用测试用例生成研究

陈亚龙,江国华   

  1. (南京航空航天大学 计算机科学与技术学院,江苏 南京 210016)
  • 出版日期:2013-04-15 发布日期:2013-06-20
  • 作者简介:陈亚龙(1988—),男,硕士研究生。研究方向:软件测试。E-mail:419205455@qq.com

Based on FSM Web Application Research on Test Case Generation

 CHEN Ya-Long, JIANG Guo-Hua   

  1. (School of Computer Science And Technology,Nanjing University of Aeronautics & Astronautics,Nanjing 210016,China)
  • Online:2013-04-15 Published:2013-06-20

摘要:

Web应用测试是提高Web应用质量的重要手段,测试的核心工作就是生成测试用例。生成测试用例主要有两大步骤:(1)从Web应用中提取模型。(2)遍历表示模型的有向图,产生测试用例。首先采用Html分析法结合源代码分析法提取FSM模型,随后在新提出的Web应用最小测试成本迁移覆盖准则下,利用一种复合的启发式搜索算法——模拟退火遗传算法遍历模型。通过比较模拟退火遗传算法和传统的搜索算法的效果,实例证明,该方法比传统方法生成的质量更理想。

关键词: FSM, 最小测试成本迁移覆盖准则, 模拟退火遗传算法

Abstract:

Along with the fast evolution of Internet,Web application has become more and more rich and complicated.Software testing is an important way to improve the quality of Web applications,the core work of which is test case generation.Test case generation has two major steps:1、Extract FSM model from Web application.2、Traversed the directed graph which express the model and generated test cases.We used HTML analysis and Source code analysis to extract model,and then we used a composite heuristic search-Simulated Annealing and Genetic Algorithm to traverse the graph under the Web application minimum test cost transition coverage criterion.Finally,we compare the effect of the traditional method and our heuristic search,and give example to show the method is greater than the traditional one.

Key words: FSM;Web application minimum test cost transition coverage criterion;Simulated Annealing and Genetic Algorithm

中图分类号: 

  • TP393.09