上海大学学报(自然科学版) ›› 2012, Vol. 18 ›› Issue (2): 163-169.doi: 10.3969/j.issn.1007-2861.2012.02.010

• 论文 • 上一篇    下一篇

一种Web应用测试生成与约简方法

晏霞敏,曾红卫,刘攀,贺斌   

  1. (1.上海大学 计算机工程与科学学院,上海 200072; 2.上海市计算机软件评测重点实验室,上海 201114)
  • 出版日期:2012-04-30 发布日期:2012-04-30

Approach to Test Generation and Reduction for Web Applications

  1. (1. School of Computer Engineering and Science, Shanghai University, Shanghai 200072, China;
    2. Shanghai Key Laboratory of Computer Software Evaluating and Testing, Shanghai 201114, China)
  • Online:2012-04-30 Published:2012-04-30

摘要: 软件测试是保证软件质量的一种重要手段,而复杂的Web应用对测试提出了新的要求.提出一种Web应用测试生成与约简方法,该方法对Web应用导航进行形式建模,使用模型检验导航安全性质所输出的反例分化模型,然后根据分化模型产生测试序列,依据Web应用的特性对测试序列集进行约简.实例演示表明该方法的有效性.

关键词: Web应用, 测试序列, 模型分化, 模型检验, 冗余约简

Abstract: Software testing is important for ensuring software quality. To test complicated Web applications, some new problems need to be considered. In this paper, we present an approach to the generation and reduction of tests for Web applications. The navigational behavior of a Web application is described in a formal model. The model is partitioned according to the counterexamples generated by model checking against the given safety properties for navigation. The test sequences are generated according to the partitioned model, and reduced based on the characteristics of Web applications. The presented example shows that the described approach is effective.

Key words: model checking, model partition, redundancy reduction, test sequence, Web application

中图分类号: