18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Parallel suite run using Ant

JirkaJirka Members
edited November -1 in Sahi - Open Source
Hi,

we are using Sahi also for small load-testing using ant launcher and running suite. It works fine, but there we would like to do small improvement.
Normally, all Firefox instances are created at one time and all of them starts running the script. Is there a way how to start these instances for example with 10 second period?
You know: one browser ... 10secs ... second browser ...10secs ... third ... etc
Just to balance the load.
I have tried <parallel> tag in Ant, but it runs only the first instance of browser.
There is also parameter "suite.time_between_tests" in sahi config, but I assume this works only in serial execution of scripts.
I know that this is not the common usage of sahi, but we haven't found any other load tool which will manage our web app based huge on AJAX. Sahi did.

Thanks

Comments

  • JirkaJirka Members
    Finally I did it using batch file:

    @echo off

    for /l %%a in (0,1,5) do (
    PING 1.1.1.1 -n 1 -w 300000 >NUL
    start java.exe -cp ../../lib/ant-sahi.jar net.sf.sahi.test.TestRunner "C:/app/sahi35/userdata/scripts/performance.sah" "C:/Program Files/Mozilla Firefox/firefox.exe" http://<URL>; 3 firefox "-profile 'C:/app/sahi35/userdata/browser/ff/profiles/sahi%%a' -no-remote"

    )

    must be executed from /userdata/bin folder.
Sign In or Register to comment.