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.

How to Start SAHI from Jenkins using Ant and execute SAHI scripts in firefox

SreekanthSreekanth Members
edited February 2014 in Sahi - Open Source
Hello All,


I am trying to start SAHI from Jenkins using ant script and then execute SAHI scripts in a jboss that is already up. There is a problem that sahi starts and then it pauses after following message.

[exec] Reading browser types from: D:\sahi\userdata\config\browser_types.xml
[exec]

This was when I tried to start sahi using bin/sahi.bat. Like shown in sahi documentation, I also tried starting it from lib/sahi.jar using java ant task. SAHI starts using both, but pauses and waits after above message. I also changed path of browsers like mentioned in below post by “Srinivasan_Tyto ”
http://sahi.co.in/forums/discussion/4831/browser-not-opening-from-dashboard-after-java-

The second target in my ant scripts is supposed to start after sahi is started. This target is supposed to execute a batch file that triggers testrunner.bat and also has all the parameters to start executing sahi scripts. This target never starts. If I execute this batch file manually, then I can see my sahi scripts getting executed from Jenkins log. This means that, sahi had started but the target from where it’s called is not getting finished.

I am not sure if this gives a clear picture on my problem. These are the questions to which I would like to get answer for.

1. Why is the sahi starting and the target not ending?
2. When I execute the batch file manually, I can see debug values in sahi scripts coming up in Jenkins log. But I don’t see any browser (firefox) coming up. Does this mean, sahi will execute scripts in a headless manner when done so?

For better understanding, I am attaching a screen shot of the Jenkins log.
http://s17.postimg.org/wn0mafz3z/sahi.jpg

SAHI Version: V4.3
Build: 2013-02-06
OS: Windows8
Browser: Firefox 25.
Java Version: 1.6.0_32



Thanks,
Sreekanth.
Sign In or Register to comment.