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.
Integration with Jenkins and Unix Server using XVFB
Hi,
For a couple of days, we try to integrate Sahi on Jenkins.
Jenkins is installed on an unix debian server. in this case we have to use XVFB to emulate Firefox.
We installed both Xvfb and Firefox as mentionned on the tutorial on your website.
But for the moment we can't run the testrunner. the statuts is failed (FAILURE) and when we start sahi (using start_sahi.sh) we've got this error message :
Reading browser types from: /usr/sahi/userdata/config/browser_types.xml
Firefox was not found at env DISPLAY=:1 firefox
here is the configuration file (as mentionned on tutorial) :
<browserType>
<name>firefox-xvfb</name>
<displayName>Firefox</displayName>
<icon>firefox.png</icon>
<path>env DISPLAY=:1 firefox</path>
<options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
<processName>firefox</processName>
<capacity>5</capacity>
</browserType>
we set env using : export DISPLAY=:1.0 firefox
and start the Xvfb using : Xvfb :1 -screen 0 1152x900x8 &
let us know if we made any mistake on the configuration file.
thanks in advance for your feedback,
For a couple of days, we try to integrate Sahi on Jenkins.
Jenkins is installed on an unix debian server. in this case we have to use XVFB to emulate Firefox.
We installed both Xvfb and Firefox as mentionned on the tutorial on your website.
But for the moment we can't run the testrunner. the statuts is failed (FAILURE) and when we start sahi (using start_sahi.sh) we've got this error message :
Reading browser types from: /usr/sahi/userdata/config/browser_types.xml
Firefox was not found at env DISPLAY=:1 firefox
here is the configuration file (as mentionned on tutorial) :
<browserType>
<name>firefox-xvfb</name>
<displayName>Firefox</displayName>
<icon>firefox.png</icon>
<path>env DISPLAY=:1 firefox</path>
<options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
<processName>firefox</processName>
<capacity>5</capacity>
</browserType>
we set env using : export DISPLAY=:1.0 firefox
and start the Xvfb using : Xvfb :1 -screen 0 1152x900x8 &
let us know if we made any mistake on the configuration file.
thanks in advance for your feedback,
Answers
Try adding before and check.
It would look something like this:
Force makes Sahi ignore checking for path.
Regards,
Narayan
Great, now we can't see the error message regarding firefox.
But when we execute the sample script, it always running after 15 minutes.
We can not see any log file regarding problems or errors.
Could you tell us what is wrong, of if there is a place to see log file ?
for information, at the beginning with the other configuration file (without force true), the test fall in error immediatly.
Regards,
So, it seems legit Sahi can't find "env Firefox" you somehow need to specify a display.
I usually start sahi in Jenkins with "export DISPLAY=:1 sh sahi.sh". As sahi is starting the browser, firefox should get the right display.
I just post my confg, you may find it valuable. Its with chromium, but firefox did work as well. And use the default browser_xml
As we can read we have to install iceweasel instead of firefox.
We continue to investigate to close this installation.