Web应用测试用例生成研究_彭树深.pdf
文本预览下载声明
37 6 Vol.37 No.6
2010 6 Computer Science June 2010
Web
(南京大学计算机科学与技术系 南京210093)
随着Internet 的高速发展, Web 应用成为软件的主流之一, Web 应用程序也变得越来越复杂, 从多方面着手
高Web 应用的质量是Web 应用开发者的必然选择。 Web 应用测试是保证 Web 应用程序质量的重要手段, 测试的
核心工作是生成测试用例。 把现有的Web 测试用例生成方法归结为4 类:Capture/ Replay 方法、HTM L 分析法、源代
码分析法、User-Session 分析法, 随后对这4 类方法进行详细讨论, 并归纳出这 4 类方法生成测试用例的一般步骤。
最后总结了这4 种方法的优缺点, 从方法实现的难易程度、覆盖率等方面比较了它们的性能。
Web 应用测试, Web 测试用例生成, Web 测试用例生成分类
TP311.15 A
Study of Test Case Generation for Web Applications
PENG S u-s en GU Qing CHEN Dao-xu
(Department of Computer Science and Tec nology, Nanjing University, Nanjing 210093, C ina)
Abstract Along wit t e fast evolution of Internet, Web application development as become one of t e main categories
of sof tw are application development, and Web application programs ave become more and more complicated.Im proving
t e quality of Web applications from different aspects is inevitable task of Web application developers.An important
way of ensuring t e quality of Web applications is software testing, t e core w ork of w ic is test case generation.In
t is paper, we classified t e met ods for Web test case generation into four categories:Capture/ Replay, HTM L analy-
sis, Source code analysis, and User-Session analysis.We discussed t ese four met ods in detail, and concluded general
steps of generating test cases in t ese met ods.Finally, w e listed t e advantages and disadvantages of t e four met od
categories, and compared t eir performance f rom various perspectives, including t e effort needed to implement t e
met od, maximum attainable code coverage, and so on
显示全部