计算机科学 ›› 2009, Vol. 36 ›› Issue (7): 124-127.doi: 10.11896/j.issn.1002-137X.2009.07.029

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

一种基于功能构件的Web应用建模与测试方法

唐云吉,缪淮扣,钱忠胜   

  1. (上海大学计算机工程与科学学院 上海200072);(江西财经大学信息管理学院 南昌330013)
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家自然科学基金项目(60673115),国家863计划项目(2007AA01Z144), 国家973项目(2007CB310800),上海市教委科研项目(07ZZ06),上海市重点学科建设项目(J50103)资助。

Approach to Modeling and Testing Web Applications Based on Functional Components

TANG Yun-ji,MIAO Huai-kou,QIAN Zhong-sheng   

  • Online:2018-11-16 Published:2018-11-16

摘要: Web应用与传统程序有着很大差别,后者的一些建模和测试方法不能完全适用于前者。提出了一种有效的对Web应用测试的方法。按功能将Web应用划分成若千个功能构件,把Web应用看成是功能构件的集合,并在功能上将其对应到实际的Web应用模块。用有向图表示功能构件的结构关系,用FSM表示功能构件的行为关系,用FSM的复合表示功能构件的交互。提出了完整执行序列覆盖、构件完整执行序列覆盖两个测试准则,根据这些准则生成测试用例集。为支持所提出的方法,设计了一个测试用例生成的工具原型。

关键词: Web应用,功能构件,建模,测试准则,测试用例

Abstract: There are great differences between Web applications and the traditional programs. The modeling and testing methods of the traditional programs can not be fully fit for Web applications. An approach to generating test cases effeclively was presented. A Web application was divided into a set of functional components, each of which corresponded to an actual Web application module. A directed graph is employed to represent the structural relationship among the functional components, an FSM was used to represent their behavioral relationship, and the FSM composition was used to represent their interactions. In testing,two test criteria which are complete executing sectuence coverage and component complete executing sequence coverage were proposed.To satisfy these two criteria respectively, different test sets were generated. Additionally,a test case generation prototype was designed for the approach proposed.

Key words: Web application, Functional component, Modeling, Test criterion, Test case

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!