[Webtest] ant parallel testSpec not thread safe
Scot Hale
webtest@lists.canoo.com
Tue, 25 Feb 2003 11:02:44 -0800
<html><div style='background-color:'><DIV></DIV>
<DIV></DIV>
<P>I was trying to run multiple tests in parallel earlier. For example : </P>
<P> <target name="test"><BR> <parallel><BR> <antcall target="test1"/></P>
<P>.....<BR> <antcall target="testN"/><BR> </parallel> <BR> </target></P>
<P><target name="test1"><BR> <testSpec name="test1"><BR> &config;<BR> <steps><BR> ....<BR> </steps><BR> </testSpec><BR> </target><BR>.....</P>
<P><target name="testN"><BR> <testSpec name="testN"><BR> &config;<BR> <steps><BR> ....<BR> </steps><BR> </testSpec><BR> </target><BR><BR>And every now and then it will have problems opening the result file (e.g. result.xml). Would it be possible to make multiple testSpec's accessing the same result.xml in parallel "thread safe"?</P>
<P>The only work arounds I have right now are, to write the testSpec's in different build.xml's, just not run them in parallel (which takes longer), or just don't record the information in the result.xml </P>
<DIV>Scot Hale </DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>email: halesm@hotmail.com
<DIV></DIV></div><br clear=all><hr>The new <a href="http://g.msn.com/8HMPENUS/2737">MSN 8:</a> smart spam protection and 2 months FREE* </html>