You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "Legelis, John" <Jo...@fmr.com> on 2003/04/04 18:49:18 UTC

Specifying testcases in XML?

Has anyone tried using JTestCase
(https://sourceforge.net/projects/jtestcase) in conjunction with Cactus to
allow test-case data to be specified in an xml file?  

For example: 
<method name="testCalculate" test-case="positive-minus">
<params>
<param name="var1" type="int">10</param>
<param name="var2" type="int">20</param>
<param name="opt" type="java.lang.String">-</param>
</params>
<asserts>
<assert name="result" type="int" action="EQUALS">-10</assert>
</asserts>

I might take a shot at integrating this with Cactus.  Anybody else
interested, or has this already been done?