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

Re: ANN: 'Testing XSLT' training course PDF available

Subject: Re: ANN: 'Testing XSLT' training course PDF available
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 14 Dec 2007 12:31:37 +0000
Re:  ANN: 'Testing XSLT' training course PDF available
On 14/12/2007, Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> FYI, the PDF of my XML 2007 training course, 'Testing XSLT', is
> available at:
>
>    http://www.menteithconsulting.com/wiki/XML2007/TestingXSLT


You mention black box testing under the unit test heading... which
doesn't quite fit.

Personally I don't think you can unit test XSLT*, it's only really
worthwhile to test the output for a given set of inputs.

If you're transforming to HTML one method we had some success with was
to use Selenium - the tests were generated using XSLT off of the input
files, and run using ANT as part of the overall processing pipeline.

If you wanted to ensure, for example, that if <someHeading> occurred
in the input, that <h3>someHeading</h3> occurred in the output then
this is a good technique.  Or say, to check that all of your content
pages, but not your index pages, had a copyright statement the bottom
- you determine the page type when you generate the test from the
content.

Plus its really satisfying to generate 1000's of tests, and run them
against your entire output.

* Maybe with 2.0 and user defined functions it might be worthwhile,
but to ensure your transforms are doing the right thing, I think the
only approach it to check the output for a given set of inputs.

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

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
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.