摘要
Web应用与传统程序有着很大差别,后者的一些建模和测试方法不能完全适用于前者。提出了一种有效的对Web应用测试的方法。按功能将Web应用划分成若干个功能构件,把Web应用看成是功能构件的集合,并在功能上将其对应到实际的Web应用模块。用有向图表示功能构件的结构关系,用FSM表示功能构件的行为关系,用FSM的复合表示功能构件的交互。提出了完整执行序列覆盖、构件完整执行序列覆盖两个测试准则,根据这些准则生成测试用例集。为支持所提出的方法,设计了一个测试用例生成的工具原型。
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 effectively 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 sequence 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.
出处
《计算机科学》
CSCD
北大核心
2009年第7期124-127,169,共5页
Computer Science
基金
国家自然科学基金项目(60673115)
国家863计划项目(2007AA01Z144)
国家973项目(2007CB310800)
上海市教委科研项目(07ZZ06)
上海市重点学科建设项目(J50103)资助
关键词
WEB应用
功能构件
建模
测试准则
测试用例
Web application, Functional component, Modeling, Test criterion, Test case