节点文献
一种基于内置合约检查和可配置接口的软构件测试技术
Software component testing technique based on built-in contract checking and configurable interface
【摘要】 从构件使用者和开发者的角度分析构件及构件化软件的测试,利用Meyer的合约化软件设计思想作为构件测试的理论基础,并在其上进行了扩展和改进,提出了一种基于内置合约检查和可配置接口的构件测试技术。该方法的优点是:当构件被部署到新的系统环境中时,能够自动测试其服务端是否遵守彼此之间合约,并验证自身在运行阶段履行其所声明的义务的能力;利用可配置接口,可以根据所部署环境和特定系统的需求,动态地选择测试强度;当构件集成出现问题时,能够从抛出的异常信息定位到出错的位置。
【Abstract】 Analyzing the testing of component and component-based software from the viewpoints of component designers and users,and then improving and expanding the basic theory of contract design which was first introduced by Meyer,proposed a new testing technique,base on built-in contract checking and configurable interface,for software component testing.By using this approach,when components were deployed in a new system,the build-in test components could check the contract-compliance of their server components,and automatically verify their ability to fulfill their own obligations.By using the configuration interface that was supplied by the contract tester component,testing size and intensity depending on specific requirements of the deployed environment could also be chosen dynamically and easily.If something wrong turns up while integration,it would throw exceptions which could be used to locate the problems.
【Key words】 software component testing; contract checking; built-in testing; testing interface design;
- 【文献出处】 计算机应用研究 ,Application Research of Computers , 编辑部邮箱 ,2011年05期
- 【分类号】TP311.52
- 【被引频次】6
- 【下载频次】61