计算机与现代化 ›› 2010, Vol. 1 ›› Issue (8): 150-156.doi: 10.3969/j.issn.1006-2475.2010.08.042

• 软件工程 • 上一篇    下一篇

Web Service自动化测试方法的研究

翟亚娟,赵会群   

  1. 北方工业大学信息工程学院, 北京 100144
  • 收稿日期:2010-03-23 修回日期:1900-01-01 出版日期:2010-08-27 发布日期:2010-08-27

Automatic Testing Approach for Web Service

ZHAI Ya-juan, ZHAO Hui-qun   

  1. College of Information Engineering, North China University of Technology, Beijing 100144, China
  • Received:2010-03-23 Revised:1900-01-01 Online:2010-08-27 Published:2010-08-27

摘要: 为了保障Web服务的可靠性和安全性,在测试Web服务时采用一种基于TTCN3的分布式测试方法,给出WSDL服务信息描述到TTCN3描述的生成流程,也即服务器端抽象测试套的生成过程,并设计出一种用于抽象测试套自动生成的算法,最后实现一个自动化测试工具原型,给出运用此方法进行测试的实例,进一步说明Web服务测试套执行的测试流程,验证此方法的可行性。解决传统测试方法在测试Web服务应用时测试套无法跨平台的问题,增强Web服务测试系统的灵活性和平台无关性。

关键词: Web服务测试, TTCN3, 抽象测试套, 被测系统适配器, 编码解码器

Abstract: Web Service is a standardsbased architecture and XMLbased messaging technology. The language and platformindependence characteristics bring difficulties on testing. For the diverse possibilities of languages and platforms of Web Service, an efficient mapping approach for Web Service ATU with TTCN3 is proposed, which can accommodate all varieties of client types. This paper designs an algorithm for the automated generation of the ATU. In addition, this paper presents the process of the test approach via a test case, illustrates that specifying test suites at an abstract level in TTCN3. The test suites are language and platformindependent and can be reused by diverse types of clients.

Key words: Web Service testing, TTCN3, abstract test suite, system under test adapter, codec