Automatic WSDL-guided Test Case Generation for PropEr Testing of Web Services

With web services already being key ingredients of modern web systems, automatic and easy-to-use but at the same time powerful and expressive testing frameworks for web services are increasingly important. Our work aims at fully automatic testing of web services: ideally the user only specifies properties that the web service is expected to satisfy, in the form of input-output relations, and the system handles all the rest. In this paper we present in detail the component which lies at the heart of this system: how the WSDL specification of a web service is used to automatically create test case generators that can be fed to PropEr, a property-based testing tool, to create structurally valid random test cases for its operations and check its responses. Although the process is fully automatic, our tool optionally allows the user to easily modify its output to either add semantic information to the generators or write properties that test for more involved functionality of the web services.

[1]  Gerardo Canfora,et al.  Service-Oriented Architectures Testing: A Survey , 2009, ISSSE.

[2]  I. Melzer Web Services Description Language , 2010 .

[3]  Eda Marchetti,et al.  WS-TAXI: A WSDL-based Testing Tool for Web Services , 2009, 2009 International Conference on Software Testing Verification and Validation.

[4]  Konstantinos Sagonas,et al.  A PropEr integration of types and function specifications with property-based testing , 2011, Erlang Workshop.

[5]  Steve Vinoski Yaws: Yet Another Web Server , 2011, IEEE Internet Comput..

[6]  C. M. Sperberg-McQueen,et al.  W3C XML Schema Definition Language (XSD) 1.1 Part 1: Structures , 2012 .

[7]  Wei Fu,et al.  monadWS: a monad-based testing tool for web services , 2011, AST '11.

[8]  Wei Fu,et al.  Automatic Testing of Web Services in Haskell Platform , 2010 .

[9]  Tao Zhang,et al.  WSDL-Based Automated Test Data Generation for Web Service , 2008, 2008 International Conference on Computer Science and Software Engineering.

[10]  Shihong Huang,et al.  WSDLTest - A Tool for Testing Web Services , 2006, 2006 Eighth IEEE International Symposium on Web Site Evolution (WSE'06).

[11]  Eda Marchetti,et al.  Automatic Test Data Generation for XML Schema-based Partition Testing , 2007, ICSE 2007.

[12]  Eda Marchetti,et al.  Towards Automated WSDL-Based Testing of Web Services , 2008, ICSOC.