节点文献
基于J2EE平台Web系统的软件测试研究和实现
Research and Realization of Web Application Software Test Based on J2EE Platform
【作者】 王艳丽;
【导师】 尹治本;
【作者基本信息】 西南交通大学 , 计算机应用技术, 2007, 硕士
【摘要】 随着信息技术的飞速发展,基于J2EE平台的Web应用迅速风靡全球,渗入到社会的各个应用领域,成为当前和未来Web系统开发的主流,基于J2EE平台Web应用的质量和可靠性也渐渐被人们关注。但是,由于Java语言的封装、继承、多态等特征和J2EE组件的交互性、开源框架的多样性等问题使得对J2EE平台Web应用的测试面临巨大挑战,因此,研究J2EE平台Web应用测试技术有重要的理论意义和实践意义。本文首先在研究面向对象软件测试技术以及J2EE体系结构的基础上,提出了对J2EE平台的Web应用进行单元测试和可接受度测试的两层测试策略。然后根据这个策略,对“公众出行交通信息服务系统”制定了详细的测试方案。最后,对开源的自动化测试框架JUnit、Cactus、StrutsTestCase、HttpUnit、JMeter进行了研究,并用这些框架对公众出行交通信息服务系统进行了单元测试和系统测试。在单元测试中,分析了测试内容、测试难点,实施了详细的测试,解决了函数测试、接口测试、聚合测试、异常测试、对象比较等测试难点,给出用Eclipse、Ant、Maven执行Cactus测试的自动化流程,并对自动化流程进行比较,指出选择自动化工具的方法,最后,比较了JUnit、Cactus、StrutsTestCase、HttpUnit测试框架的异同。在性能测试中,制定了测试计划,实施了测试过程,分析了测试结果,提出了优化方案、总结了JMeter的使用技巧和J2EE Web系统测试的体会。通过本文的研究,形成了一套完整的可供参考的J2EE平台Web系统测试的测试策略、测试流程和测试经验。相信本论文的研究对于更快速有效地实施J2EE Web系统测试具有很好的参考价值。
【Abstract】 With the rapid development of information technology, J2EE Web Application is rapidly popularized in whole world, it infiltrates into the various application areas , becomes the main stream of current and future Web application, there is a growing concern about J2EE Web Application quality and reliability. However, the Java language’s encapsulation, inheritance, polymorphism , the interactivity of J2EE components and the diversity of open source framework make it a challenge to test J2EE Web Application, therefore, it has important theory meaning and practice meaning of studying J2EE Web Application test.First, on the basis of studying object-oriented software testing techniques and J2EE architecture, the thesis puts forward the double-deck test strategy of testing J2EE Web Application which makes up of unit testing and acceptableing test. Then according to the strategy, the thesis draws up a detailed testing program for Traffic Information Service System for Public Travel. Lastly the thesis researches open source frameworks such as JUnit、Cactus、StrutsTestCase、HttpUnit and JMeter, makes unit testing and performance testing of Traffic Information Service System for Public Travel with these frameworks.In the chapter of unit testing, the thesis analysis the test content and the difficult test point, implementes the test in detail , solves the difficult test pointes such as function testing, interface testing, polymerization testing, exception testing, comparing objects etc, gives the automation of implementing Cactus testing with Eclipse, Ant and Maven, and compares the automation, points out the method of selection automation tool, in the last , compares the similarities and differences of the frameworks such as JUnit、Cactus、StrutsTestCase and HttpUnit. In the chapter of performance testing, the thesis maps out test plans, implementes test, analysis test results, puts forward optimization scheme, summarizes skills of using JMeter and experience of testing J2EE Web Application. The thesis forms a complete set of referential test strategy, test flow, test experience of testing J2EE Web Application . Believed , it could provide a useful reference for implementing J2EE Web Application testing quickly and efficiently.
- 【网络出版投稿人】 西南交通大学 【网络出版年期】2007年 04期
- 【分类号】TP311.52
- 【被引频次】14
- 【下载频次】799