摘要
J2EE框架实现了多层次的应用程序体系结构,同时也提出了多层次应用程序测试的需要.如何在服务器端多种容器环境内的测试中实现测试用例的复用成为影响测试效率的关键因素.本文通过分析测试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.
出处
《小型微型计算机系统》
CSCD
北大核心
2006年第4期663-667,共5页
Journal of Chinese Computer Systems
基金
国家高技术研究发展计划"八六三"项目(2003AA4Z3040)资助
国家基础研究计划"九七三"项目(2002CB312000)资助