Willi / all,
I was able to execute a parallel test with the following ant target example. I
hope it helps.
Description: starts four ant tasks with web tests. Each test repeats 10 times
and keeps a counter. then prints the value and exits the task. I had not
problems using this.
<target name="experiment2">
<parallel>
<webtest name="Parallel-1" description="experiment with parallel tests">
&configuration; <!-- <config> block, you probably don't need this line
to try this test -->
<steps>
<repeat count="10">
<scriptStep description="js1" language="javascript">
var i = step.getWebtestProperty('JSPropertyCount1')
i++;
step.setWebtestProperty('JSPropertyCount1', i);
</scriptStep>
</repeat>
<echo message="Count(1): #{JSPropertyCount1}"/>
</steps>
</webtest>
</parallel>
<parallel>
<webtest name="Parallel-2" description="experiment with parallel tests">
&configuration;
<steps>
<repeat count="10">
<scriptStep description="js1" language="javascript">
var i = step.getWebtestProperty('JSPropertyCount2')
i++;
step.setWebtestProperty('JSPropertyCount2', i);
</scriptStep>
</repeat>
<echo message="Count(2): #{JSPropertyCount2}"/>
</steps>
</webtest>
</parallel>
<parallel>
<webtest name="Parallel-3" description="experiment with parallel tests">
&configuration;
<steps>
<repeat count="10">
<scriptStep description="js1" language="javascript">
var i = step.getWebtestProperty('JSPropertyCount3')
i++;
step.setWebtestProperty('JSPropertyCount3', i);
</scriptStep>
</repeat>
<echo message="Count(3): #{JSPropertyCount3}"/>
</steps>
</webtest>
</parallel>
<parallel>
<webtest name="Parallel-4" description="experiment with parallel tests">
&configuration;
<steps>
<repeat count="10">
<scriptStep description="js1" language="javascript">
var i = step.getWebtestProperty('JSPropertyCount4')
i++;
step.setWebtestProperty('JSPropertyCount4', i);
</scriptStep>
</repeat>
<echo message="Count(4): {JSPropertyCount4}"/>
</steps>
</webtest>
</parallel>
</target>
Mike
----- Original Message ----
From: Willi Kuhnis <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thursday, December 20, 2007 11:55:18 AM
Subject: [Webtest] Webtest parallel - where to use ?
Hi,
I want to make a stress test.
I think, I could use parallel for this reason.
But now I didnt find out a constellation, which works.
When I use the <Parallel>-function inside the <Webtest>,
then I get a error-message.
Did somebody use it ?
I tried it now on many different ways - without success.
Also the following configuration dont work:
<project name="ABC" default="test">
<target name="test">
<parallel>
<webtest name="Test 1">
... do someting
</webtest>
<webtest name="Test 2">
... do someting
</webtest>
</parallel>
</target>
</project>
Thanks for any tips.
--
Willi Kuhnis
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs