[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Testing


negative testing of canonicalization
Paul Tucker wrote:-

>From what you have said, I see the need for at least three levels of
testing
> when it comes to XML. I need to check that the document is valid in the
> XML sense (ie conforms to the DTD). I then need to check the data
>contained within any reply to my XML request is as expected. Finally I need
> to check that the application has done what it was supposed to do when
>the request arrived.

>With this in mind I need to run a series of positive and negative test
cases
>using combinations of well formed documents, malformed documents,
>good data and bad data. With each request I need to perform the various
>checks that apply to that case (ie - does the document conform, if it does
>is the data OK and has the application done what it was supposed to do?).

>I'm now starting to get a picture of what I need to do (as above). Is this
the
>kind of testing that other people do or is it unique to my case?

With the exception of checking that your application has done the right
thing, the process you describe is very much how the OASIS/NIST XML
conformance tests [1] work.

The OASIS conformance test suite is comprised of a large number of of XML
input files with negative and positive tests.  The positive tests have an
associated xml document which is the canonical form of the input document.
The XML parser under test is required to emit a canonical form of the input
document.  This canonical output can then be compared with the expected
output.  As canonicalization specifies a precise format, regular file
comparison tools can be used to check for equality.

To help automate the whole process, the XML input files are described by
another XML document which describes the intended purpose and outcome of
each test.

Regards
~Rob

--
Rob Lugt
ElCel Technology
http://www.elcel.com/

[1]
http://www.oasis-open.org/committees/xml-conformance/xml-test-suite.shtml



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.