[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Testing
The first advice I give on this is: when you say that as the document recipient, you want to ensure that the incoming documents are "valid", you aren't using the word "valid" in the XML sense. An XML document is valid if it conforms to the DTD that the originator says it conforms to. That's not what you're interested in, you're interested in whether it meets the constraints imposed by your application. Your first challenge is to define exactly what you want "valid" to mean in your context. You can then set about deciding how to test for that validity: some combination of validation against a DTD, a Schema, or a custom application. It depends how complex the rules are, and whether validation is self-contained or contextual ("the document must identify an employee whose personnel number is already in the database"). I've seen some people use XSLT stylesheets for validation, and the Schematron engine gives you a good way of doing this. I think it's also a good idea to build in a concept of trust. You don't need to validate documents from originators whom you can trust to get it right. Michael Kay Software AG home: Michael.H.Kay@n... work: Michael.Kay@s... > -----Original Message----- > From: Paul Tucker [mailto:ptucker@m...] > Sent: 06 March 2002 16:40 > To: xml-dev@l... > Subject: Testing > > > This is my first venture into the XML world so please excuse > my ignorance. I am testing an application that has an XML > interface to allow B2B messaging. At the moment this is very > much a learning phase for me (in at the deep end as usual!) > and I am trying to gather as much info as possible. > > When it comes to testing for XML the main focus seems to be > on testing that documents are valid. From my perspective I am > interested in this but also how my application is going to > deal with the XML it receives (whether it be valid or > invalid). This means that I am going to have to send > different documents (both invalid and valid) with different > sets of data and check the response document and data is OK > and that what I expect to happen in the application itself > actually happens. > > We have started prototyping an application that will allow us > to do this type of testing but I wanted to find out what > other people do for this - I guess system - testing and if > there are already any tools that I've missed! > > Thanks, > > Paul > > Paul Tucker > Merit AT Ltd > Professional Test Automation > Tel: 01506 41 43 49 > Mob: 0771 511 0244 > www.merit-at.com > > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://lists.xml.org/ob/adm.pl> >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|