From: <[EMAIL PROTECTED]>
> I tried to parse an XML file generated by Canoo Webtest with the following
code:
>
> <project xmlns:x=jelly:xml .... >
> <x:parse var="report" xml="${testSummaryFile.toString()}/>
> <x:if select="$report/summary/testresult[@successful='false']">
> <echo>Test failed</echo>
> </x:if>
> </project>
>
> I try to parse the XML file, access the atttribute "successful" and
determine if the test has failed. Problem is that
> it does not work as intended. I'm not able to find a unsuccessful test ...
:-(

It might help if you provided a sample XML document. Is your XPath
definitely correct?

I take it the file above is your maven.xml? If so you probably want to wrap
the above in a <goal> tag.

Maybe adding some extra tracing information might help. Like

<echo> Found: <x:expr select="count($report/summary/testresult)"/> test
results</echo>

etc.

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

Reply via email to