Hi Darren
From: "Darren Syzling" <[EMAIL PROTECTED]>
> Hi James,
>
> No problem - understand you've been busy, thanks for the reply.
>
> I tried the recent b3 release and this seemed to clear some of my other
> problems. Using the Jelly task from Ant still seems to cause problems.
For
> the time being I'm using a workaround - using the Ant Java task and
forking
> a separate process, then load my Ant defined properties from the Jelly
> script. At least I've now got a working prototype for a set of functional
> test scripts for our application.
>
> One piece of functionality I think I'm missing from the current set of tag
> libraries is a way of comparing an expected result set against the result
of
> a query against the database. I'd like a test analyst to be able to
> construct (or extract from an existing database) the expected result set
in
> XML. I'm thinking of wrapping some of the behaviour in DBUnit to achieve
> this. Not sure if this more widely applicable to the community ?
Sounds groovy.
What kind of XML markup would you like to use?
Whenever I find myself chatting with someone about Jelly I try and
emphasise, what would you like the XML to look like, rather than focus on
the current XML languages that Jelly supports. Basically because with Jelly
we can pretty much implement most declarative & procedural XML languages.
Obviously its nice to reuse some of the exisitng XML languages (tag
libraries) if possible.
e.g. right now you could (say) create a bean, configure it then call some
method and assert that its equal to some value in an SQL result set.
<!-- lets do a JellyUnit test case -->
<test:case name="testTax">
<!-- lets make a bean and set its properties -->
<j:useBean var="bean" class="com.acme.Foo" name="James" location="uk"/>
<!-- lets do some SQL -->
<sql:query var="results">select * from results where name =
'James'</sql:query>
<!-- assertions -->
<test:assertEquals expected="${results.rows[0].amount}"
actual="${bean.calculateTax()}"/>
</test:case>
Would this kind of thing be useful or were you thinking of something else?
> I'd like to go back and investigate the source of the problems with the
> Jelly task (+Ant/Jelly interactions) - hopefully I can find some time this
> week and I'll report back. Anything I can do to help...
Great, thanks Darren
James
-------
http://radio.weblogs.com/0112098/
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>