随着信息技术的发展,市场和用户的需求日益增多,Web应用的结构和功能变得愈加复杂,对于一些特殊的测试需求,传统的手工测试受到极大的挑战,而自动化技术可以更加快速、可靠地执行测试,测试自动化成为软件测试中的一个重要课题。
本文在介绍软件自动化测试技术发展历程及其优缺点的基础上,重点对关键字驱动测试技术和Web应用测试技术做了详细分析,总结了Web应用中的一般性测试需求。同时对Selenium和FitNesse两种测试工具作了详细的技术调研,分析了两种工具在Web测试中的功能特点。
通过对Selenium和FitNesse两种测试工具进行集成,提出了一种针对Web应用功能测试和UI测试的解决方案。该方案基于FitNium框架,采用关键字驱动测试方法,设计并实现了一套详细的测试流程,通过在Web页面上模拟用户的操作,实现各种复杂的测试任务。
最后,通过对我们自己开发的一个web应用科研管理系统,简称SRMS,来验证了方案中关键字驱动测试方法的有效性和测试流程的正确性。10006
关键词 Web测试,关键字驱动,FitNium,FitNesse,Selenium
毕业设计说明书(论文)外文摘要
Title Based on FitNium the keyword-driven test of Web
Abstract
With the development of information technology, the demands of users and markets are growing rapidly making the structures and functions of web-based applications more complex. Moreover, the traditional manual testing solutions failed to handle some special test requirements, i.e. stress testing and load testing. Automation testing can make software test more rapid, reliable and thorough. Therefore, automation testing technique becomes a promising and important solution to meet current testing requirements.
In this paper, we first introduced the history of software testing techniques and the advantages and disadvantages of different methods. Then we made a deep research of keyword-driven testing and web testing, and analyzed the general requirements of web testing.Moreover the techniques of two test tools Selenium and FitNesse were thoroughly investigated, and we analyzed their function features in web testing.
We presented a solution for functional testing and UI testing of web applications by integrating Selenium and FitNesse. This solution uses keyword-driven testing methods based on FitNium framework. On this basis, we designed and implemented a detailed testing process to achieve a variety of sophisticated tests by simulating users' actions on web pages.
Finally, we used a web application called SRMS which is developed by us to correctness of the effectiveness of keyword-driven testing methods and testing process .
关键词 Web testing, keyword-driven, FitNium, Selenium, FitNesse
目录
1 绪论 4
1.1 研究现状 4
1.2本文研究内容及意义 5
1.3本文组织结构 6
2 Selenium与Fitnesse的相关研究 7
2.1 Selenium 7
2.1.1 Selenium IDE 7
2.1.2 Selenium RC 12
2.1.3 同源策略 18
2.1.4定位技术 18
2.2 FitNesse 21
2.2.1FitNesse技术基础 21
2.2.2 FitNesse架构 22
2.2.3 Fixture 24
2.2.4 Fit/Slim系统 26
2.3 本章小结 31
3 基于FitNium的测试框架 31
3.1 FitNium框架 32 基于FitNium的Web关键字驱动的测试:http://www.youerw.com/jisuanji/lunwen_8907.html