Hi Willi!

 

                We use webtest for stress-test this way:

 

In file stress-test.cmd, we have these lines:

 

rem #common setings

set APP_SERVER=localhost

set LOGIN_USERNAME=usr

set LOGIN_PASSWORD=pass

set [EMAIL PROTECTED]

 

rem #1. First parallell  test

set TEST_FILE=test.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. Second  parallell  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%

 

rem #3. Third parallell tests

set TEST_FILE=test3.xml

SET TEST_PROPERTIES=-DlogLevel.root=off -Dtest.result.postfix=MTPL3
-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%

 

etc ...

 

results of each test are in "-Dtest.result.postfix" directory, or you
can use property:

<property name="wt.deleteReports.skip" value="true"/> in build.xml, to
avoid deleting results by parallel running.

 

 

Next way tip:  you can use parallel call the same test in loop:

 

FOR /L %%i IN (1,1,50) DO start cmd /c "1 test.cmd"

 

Regards,

Roman.

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Willi Kuhnis
Sent: 20 December 2007 10:55
To: [email protected]
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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

Reply via email to