An automated test oracle for XML processing programs

XML processing programs play an important role in the achievement of XML data querying, manipulation, and construction operations to compose XML data structures for very diverse purposes regarding information representation, storing and exchange on XML-based systems. Testing of XML processing programs is a challenging task since the test input and output data involved in the test executions may be complex and large in volume, which makes it difficult to determine the correctness of the execution results. However, existing approaches on XML-based testing pay scarce attention to the specification and automation of so-called test oracles in charge of judging the execution results from XML processing programs. This paper deals with the definition of an automated test oracle for XML processing programs which operates with differentiated levels of specification. The oracle automation is achieved by transforming these specification levels into program code, and the resulting oracle implementation is evaluated through an experimental study that reveals promising results.

[1]  Scott Boag,et al.  XQuery 1.0 : An XML Query Language , 2007 .

[2]  Juan Luo,et al.  Testing Web services by XML perturbation , 2005, 16th IEEE International Symposium on Software Reliability Engineering (ISSRE'05).

[3]  A. Jefferson Offutt,et al.  Generating test cases for web services using data perturbation , 2004, SOEN.

[4]  M. Young Test Oracles , 2001 .

[5]  Emily Hill,et al.  Automated replay and failure detection for web applications , 2005, ASE '05.

[6]  Tsong Yueh Chen,et al.  An effective testing method for end-user programmers , 2005, WEUSE@ICSE.

[7]  James Clark,et al.  XSL Transformations (XSLT) Version 1.0 , 1999 .

[8]  Eda Marchetti,et al.  XML Every-Flavor Testing , 2006, WEBIST.

[9]  Robert Richards,et al.  Document Object Model (DOM) , 2006 .

[10]  Henry S. Rzepa,et al.  Chemical Markup, XML and the World-Wide Web. 8. Polymer Markup Language , 2008, J. Chem. Inf. Model..

[11]  Elaine J. Weyuker,et al.  On Testing Non-Testable Programs , 1982, Comput. J..

[12]  Claudio de la Riva,et al.  A Partial Test Oracle for XML Query Testing , 2009, 2009 Testing: Academic and Industrial Conference - Practice and Research Techniques.

[13]  Peter Buneman,et al.  Semistructured data , 1997, PODS.

[14]  Robert V. Binder,et al.  Testing Object-Oriented Systems: Models, Patterns, and Tools , 1999 .