Hi Stefan,
We use the same scenario as you need, IMHO ... Some non-parallel
test are running synchronously [using standard "webtest.bat"]. These
tests are testing application and are creating many application objects
from scratch ...
After successfully running these non-parallel tests we can start
parallel tests [using ant -Dwt.parallel.nbWorkers=XX + increase
-Xms1024M -Xmx1024M in ant.bat].
We use one startTest.cmd file with all steps ...
Example:
rem #1. Test
set TEST_FILE=test1.xml
SET TEST_PROPERTIES=-DlogLevel.root=off -Dtest.result.postfix=MTPL1
-Dtest.file=%TEST_FILE% -Dtest.host=%APP_SERVER%
-Dtest.username=%LOGIN_USERNAME% -Dtest.password=%LOGIN_PASSWORD%
-Dtest.lemail=%LEMAIL%
-Djavax.net.ssl.trustStore=webtest/certs/trust.keystore
start webtest.bat -f build.xml %TEST_PROPERTIES%
rem #2. Test
set TEST_FILE=test2.xml
SET TEST_PROPERTIES=-DlogLevel.root=off -Dtest.result.postfix=MTPL2
-Dtest.file=%TEST_FILE% -Dtest.host=%APP_SERVER%
-Dtest.username=%LOGIN_USERNAME% -Dtest.password=%LOGIN_PASSWORD%
-Dtest.lemail=%LEMAIL%
-Djavax.net.ssl.trustStore=webtest/certs/trust.keystore
start webtest.bat -f build.xml %TEST_PROPERTIES%
using kwyword "start" as prefix for webtest.bat you can control
parallel, or non-parallel run
Next options are using this scenario [Canoo WebTest - smoke-test,
stres-test - from my article]:
http://dennik.inet.sk/clanok/5859-testovanie-webovych-aplikacii-pouzitim
-canoo-webtest-cast-v/
it's in Slovak language, but maybe you can use google translator ;o)
Cheers,
Roman.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Stefan Seger
Sent: Thursday, October 21, 2010 1:56 PM
To: [email protected]
Subject: RE: [Webtest] How to use parallel testing?
Hello Roman,
thanks for your quick reply. But when I do it like you described it, I
will
launch all my tests parallel. I don't want that, because some suite
can't
run parallel. The question that I have is: how can I specify which
suites
run parallel and which not?
Hesteric Roman - Together SK wrote:
>
> Hi Stefan,
>
> --AllTest.xml--
> <?xml version="1.0"?>
> <project default="test">
> <target name="test" description="runs all the tests">
> <ant antfile="googleWebTest.xml" />
> <ant antfile="googleWebTestSteps.xml" />
> <ant antfile="googleWebTest.xml" />
> <ant antfile="webTestConference.xml" />
> <ant antfile="googleWebTestSteps.xml" />
> <ant antfile="googleWebTest.xml" />
> </target>
> </project>
>
>
> Then: ant -Dwt.parallel.nbWorkers=6
>
>
> Here you can find some more info about parallel testing:
>
>
http://mguillem.wordpress.com/2008/02/04/boost-your-webtests-50-faster-o
> r-more/
>
> Cheers,
> Roman.
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Stefan Seger
> Sent: Thursday, October 21, 2010 1:35 PM
> To: [email protected]
> Subject: [Webtest] How to use parallel testing?
>
>
> Hello,
>
> I've read about the "unreleased" feature of parallel testing with
Canoo
> webtest. But I didn't find any information on how it works exactly.
>
> I have a "TestSuite.xml" file in which I have listed all my special
> testsuites. This way, I can enable/disable different testsuites. I can
> do
> this again in the special testsuites.
>
> For example, I only want my init tests and from these tests only the
> user
> creation in our application.
>
> How can I define which testsuites or which tests should run parallel?
> There
> are many test cases that have dependencies to other. So they MUST run
> sequentially.
>
> It would be great to use this feature for some of my tests, because
they
> run
> about 4 hours.
>
> BR,
> Stefan
> --
> View this message in context:
>
http://old.nabble.com/How-to-use-parallel-testing--tp30018569p30018569.h
> tml
> Sent from the WebTest mailing list archive at Nabble.com.
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
View this message in context:
http://old.nabble.com/How-to-use-parallel-testing--tp30018569p30018752.h
tml
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest