HAve you looked at JXUnit http://quickutil.sourceforge.net/view/Main/JXUnit
seems to be doing a similar kinda thing.

> -----Original Message-----
> From: Scott Sanders [mailto:[EMAIL PROTECTED]]
> Sent: 22 May 2001 14:50
> To: [EMAIL PROTECTED]
> Subject: Re: <b>XMLUnit</b> redux
> 
> 
> >> My intention is to allow the definition of test cases in 
> XML, using 
> >> digester to create the test cases, then execute and output 
> >> the result to 
> >> XML, styling to HTML with XSLT.
> >> 
> > 
> > 
> > eh? Can you say that again slowly.
> > 
> You define a test case in xml:
>    <suite>
>      <case id="001">
>        <user-agent-header value="Some user agent"/>
>        <input href="http://blah.blah.org/foo.bar"/>
>        <output href="foo.bar.out"/>
>        <golden-file href="foo.bar.golden"/>
>        <tests>
>          <assert-xpath expr="count(//img)=0"/>
>          ...
>        </tests>
>      </case>
>      ...
>    </suite>
> 
> Then push that through Digester to create JUnit Test Cases 
> that will use 
> HTTPUnit to get the output from the input, and then use XMLUnit to 
> verify either the whole file against the golden file, or just xpath 
> expressions.  Then we log the result to XML using ant and JUnit, then 
> format the results to HTML for the dev group to see.
> 
> How was that?
> 
> Scott Sanders
> 
> 
> 

Reply via email to