计算机应用 ›› 2014, Vol. 34 ›› Issue (6): 1779-1782.DOI: 10.11772/j.issn.1001-9081.2014.06.1779

• 计算机软件技术 • 上一篇    下一篇

基于状态迁移的Web应用功能测试用例生成方法

张绍康,王曙燕,孙家泽   

  1. 西安邮电大学 计算机学院, 西安 710121
  • 收稿日期:2013-11-20 修回日期:2014-01-22 出版日期:2014-06-01 发布日期:2014-07-02
  • 通讯作者: 王曙燕
  • 作者简介:张绍康(1989-),男,河南中牟人,硕士研究生,主要研究方向:软件测试;王曙燕(1964-),女,河南南阳人,教授,博士,主要研究方向:软件测试、数据挖掘;孙家泽(1980-),男,河南南阳人,副教授,博士研究生,主要研究方向:智能优化算法。
  • 基金资助:

    国家自然科学基金资助项目;陕西省教育厅自然科学基金资助项目;西安邮电大学青年基金项目

Test case generation method for Web applications based on state transition

ZHANG Shaokang,WANG Shuyan,SUN Jiaze   

  1. School of Computer Science and Technology, Xi'an University of Posts and Telecommunications, Xi'an Shaanxi 710121, China
  • Received:2013-11-20 Revised:2014-01-22 Online:2014-06-01 Published:2014-07-02
  • Contact: WANG Shuyan

摘要:

针对Web应用测试方法错误覆盖率低的问题,提出了一种基于状态迁移的Web应用功能测试用例生成方法。该方法通过构造页面状态迁移图、事件迁移表和导航迁移表对Web应用的链接关系进行表示。基于页面状态迁移图生成的页面状态迁移树生成测试路径,根据等价类划分原则,提出了一种测试用例覆盖准则,结合事件迁移表和导航迁移表中的信息记录构造测试用例。典型案例实验结果表明,该方法有效地表示了Web应用中页面间的链接关系,提高了测试用例的错误检测率。

Abstract:

Due to low error checking rate of Web application test, a method of test case generation for Web applications based on state transition was proposed. By constructing state transition diagram of pages, event transition table and navigation transition table, the link relationship of Web applications was shown. This approach generated test path from state transition tree of pages got from state transition diagram of pages. Based on equivalence partitioning principles, a coverage criteria was proposed, then a test case set was reported as result combined with information from event transition table and navigation transition table. The result shows that the proposed method can represent link relationship of Web applications effectively, and improve error checking rate of test case.

中图分类号: