J2EE框架实现了多层次的应用程序体系结构,但由于各个应用服务器厂商在实现J2EE规范时都附加了一些自己的特性,所以在不同的应用服务器平台上运行和部署同一企业级组件时也会出现与平台相关的问题。如何在多种应用服务器端不同的容器环境中实现测试用例的复用成为影响测试效率的关键因素。文章针对此问题,设计和实现了一种能在多种主流应用服务器上运行的测试框架。该测试框架通过简单的配置能在多种应用服务器环境中运行测试,得到更丰富的测试结果。该测试框架已成功应用于国家863项目-数据库标准符合性测试。
J2EE brings about multi-tier application-software architecture ,but application server providers attach specific characteristics to their products when they implement J2EE specification.So the enterprise components which are related to specific application servers cannot deploy and run on the different application servers.Meanwhile the reuse of test cases in server side multi-container test is the key factor that affects test efficiency.This article designs and implements a new server side software test framework,which can run on several popular application servers,and more accurate testing results can be obtained by running testcase under various kinds of application server environment.This framework has been successfully applied to National 863 Database Testing Project.