JZEE框架实现了多层次的应用程序体系结构,同时也提出了多层次应用程序测试的需要.如何在服务器端多种容器环境内的测试中实现测试用例的复用成为影响测试效率的关键因素.本文通过分析测试JDBC标准符合性的工具CTS,研究了实现服年器端多种容器环境测试用例复用的基表框架.该框架在增加简单的环境辅助类基础上,利用面向对象的继承机制和Java语言的反射机制,实现了多种容器内测试时测试用例复用.经过扩展测试用例,该工具已成功应用于国家863项目数据库标准符合性测试.
J2EE brings about multi-tier application-software architecture and the need for multi-tier test strategy.The reuse of test cases in server side multi container test is the key factor that affects test efficiency. This article studies server side multicontainer test cases reuse framework by analyzing the JDBC conformance testing suite CTS. By adding assistant classes and making full use of inheritance of OO design and reflection of Java language, the suite achieves the reuse of test cases in multicontainer test. With extended tcst cases, this suite has been successfully applied to National "863" Database Testing Project.