18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
Sahi - Jenkins, multiple executions jobs
Hi,
first, sorry for my bad english ....
Here is my problem:
I use Jenkins to execute test ".suite" on a linux server with xvfb.
My sahi proxy is always open and therefore available on port 9999 on my linux server.
When I execute a single task, everything works !
But I could execute several job at the same time with the same proxy, but when I run 2 task, it does not work, because an instance of Firefox is already open ...
Thank you in advance
Regards
Seb
first, sorry for my bad english ....
Here is my problem:
I use Jenkins to execute test ".suite" on a linux server with xvfb.
My sahi proxy is always open and therefore available on port 9999 on my linux server.
When I execute a single task, everything works !
But I could execute several job at the same time with the same proxy, but when I run 2 task, it does not work, because an instance of Firefox is already open ...
Thank you in advance
Regards
Seb
Best Answer
-
I recommend using the Sahi Testrunner.jar. http://sahi.co.in/w/Running+multiple+tests+in+batch+mode
There you can specify the --browserOptions to use a different profile for every job. You could e.g set the browser options to "-profile $WORKSPACE/tmp/profile -no-remote" to create a profile in your jobs workspace. With a single profile set, you can only run tests with one thread.

Answers
so you are running 2 Jenkins jobs which execute Sahi via Ant/Testrunner?
In you browser.xml http://sahi.co.in/w/browser-types-xml there is a line for firefox When running 2 Sahi Jobs, both Jobs will try to access ff/profiles/sahi0 as profile which firefox will prohibit.
When executing multiple Sahi jobs you should try to get them different instances of Sahi or different browser profiles.
Regards
Wormi
thank you very much for your reply
I suspected the problem was, I had already doing tests without success
I use Ant and I have these settings, but I do not manage to create a new profile ... A tip?
Because I would like to use a single instance of Sahi
again thank you
Seb
I'll change it then!
regards
Seb