In my webtest.xml it says
 
    "CAUTION: WebTest parallel execution is experimental"
 
Does yours have that warning?

--
Jonathan Rosenberg
Founder & Executive Director
Tabby's Place
http://www.tabbysplace.org <http://www.tabbysplace.org/> 


-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of David Jehoul
Sent: Wednesday, July 07, 2010 5:58 AM
To: [email protected]
Subject: [Webtest] Parallel tests



Hi,

 

We want to do some load testing with our existing tests, so I tried to apply
the 'wt.parallel.nbWorkers' and set it to 20.

My webtest command looks as follows: 'webtest -quiet -buildfile
build_allTests.xml -Dwt.parallel.nbWorkers=20'.

However, all tests seem to execute sequentially as they did without
'wt.parallel.nbWorkers'. Is there a way to check whether they run in
parallel?

 

The structure of the test is as follows:

 

Build_allTests.xml:

 

<?xml version="1.0"  encoding="ISO-8859-1"?>

<project name="build_Test_Case" default="all" basedir=".">

      <description>

            Build script for Test_Case.

      </description>

 

      <property file="test.properties"/>

      <property name="webtest_scripts_dir" location="."/>

      <property name="webtest_results_dir" location="./testOutput"/>

      <import file="${webtest.home}/webtest.xml" />

      <import file="general.xml" />

 

      <target name="all">

            <antcall target="-runOneTest">

                  <param name="testfile" value="BT01-01.xml" />

                  <param name="testname" value="main" />

            </antcall>

            <antcall target="-runOneTest">

                  <param name="testfile" value="BT01-02.xml" />

                  <param name="testname" value="main" />

            </antcall>

            

.     

            

<antcall target="createReports"/>

      </target>

 

      <target name="-runOneTest" description="Runs one specific webtest">

            <echo>Running Test ${testname} in file ${testfile} ...</echo>

            <ant antfile="${testfile}" dir="${webtest_scripts_dir}"
target="${testname}" />

      </target>

 

</project>

 

 

BT01-01.xml:

 

<?xml version="1.0"?>

<!DOCTYPE project SYSTEM "WebTest.dtd"[

      <!ENTITY % header SYSTEM "headerFile.xml">

      %header;

]>

 

<project name="BT01-01" basedir="." default="main">

 

      <property file="test.properties"/>

      <import file="${webtest.home}/webtest.xml"/>

      <import file="general.xml"/>

 

      <target name="main" depends="wt.defineTasks">

      <taskdef resource="net/sf/antcontrib/antlib.xml" />

            <webtest name="BT01-01">

                  &config;

                  <steps>

                                    .

                  </steps>

            </webtest>

      </target>

</project>

 

Reply via email to