摘要
以服务消费者为中心的CCSOA架构支持服务需求的发布和针对服务需求的开发。验证所开发服务是否满足服务需求是一个必须解决的问题。本文提出一种以服务需求的合约文档描述为基础自动生成测试数据的方法,用于解决CCSOA架构下服务自动测试的问题。服务需求的描述在WSDL语言基础上进行扩展,增加服务需求的合约化描述。通过正则表达式描述合约,在合约中嵌入测试支持元素。通过对服务需求合约文档的解析,自动构建针对合约文档的有限状态自动机,生成测试数据。通过实验分析,验证了方法的可行性。
Consumer-centric service Oriented architecture support the release of service demands and the development of demand for services.It is a pressing problem that verifies whether the services are developed to meet the service demands.This paper proposes an automatic generation method of test data based on a description of the contract documents,to solve the problem of automated testing services in CCSOA.Descriptions of service demands are extended based on WSDL language and it increases the contract descriptions of service demands.Describing contract by regular expressions,test-supported elements are embedded in the contract.By analyzing the contract documents of demand for services,the finite state automaton of contract documents is automatically constructed,and the test data are generated.The experiment verified the feasibility of the method.
出处
《微计算机应用》
2011年第4期49-55,共7页
Microcomputer Applications
关键词
合约测试
服务需求描述
自动测试
Contract Test
description of service demands
Automatic test