作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (6): 60-62. doi: 10.3969/j.issn.1000-3428.2008.06.021

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

Web应用程序建模和测试用例生成方法

刘焕洲,缪淮扣   

  1. (上海大学计算机工程与科学学院,上海 200072)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-03-20 发布日期:2008-03-20

Approach to Modeling and Generating Test Case for Web Application

LIU Huan-zhou, MIAO Huai-kou   

  1. (School of Computer Engineering and Sciences, Shanghai University, Shanghai 200072)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-03-20 Published:2008-03-20

摘要: 根据基于组件的Web应用程序的特点,提出逻辑组件的概念。按功能将待测系统划分成逻辑组件,并在功能上将其对应到实际组件。利用有向图表示逻辑组件结构关系,自动机表示逻辑组件的行为关系,自动机的复合表示逻辑组件间的交互操作。根据复合的自动机,利用建立的操作映射表生成测试用例。分析了一个测试准则,并提出逻辑组件测试序列的覆盖度概念。

关键词: Web应用, 组件, 测试模型, 测试用例

Abstract: This paper proposes a conception of Logic Component (LC), which divides the system-under-test into LCs and ultimately mapping LCs to physical components. Digraphs are used to represent the structure relationship between LCs, and automata are used for action relationship. Interactions between LCs are described by the combination of automata, which use a created action mapping table to generate test cases. This article also proposes a test criteria and a LC sequence coverage according to this criteria.

Key words: Web application, component, test model, test case

中图分类号: