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.

Failure to run Sahi Scripts through ANT and Jenkins

Hello All
I have a problem when trying to integrate Sahi with Jenkins through ANT plugin , It works fine when running the scripts from Sahi itself .
But when trying to run from the Build.xml file created by Sahi and using ANT to run it as (Ant.exe -f build.xml) I receive this error although I have already followed all the steps needed for integrating Sahi with Jenkins


set_timestamp:

set_properties_chrome:

runtestschrome:
[sahi] Jul 31, 2018 11:43:36 AM in.co.sahi.distributed.DSahiRunner startNon
DistributedRun
[sahi] INFO: SuiteId : sahi_5509a3a6062b504d990aa5603529da7f514c
[sahi] Jul 31, 2018 11:43:36 AM in.co.sahi.distributed.DSahiRunner startNon
DistributedRun
[sahi] INFO: URL : http://localhost:9999/_s_/dyn/in.co.sahi.command.Master_
runNonDistributed?1=1&baseURL=http%3A%2F%2Fcai1-sv00035%3A8085%2Ftms-1&browserTy
pe=chrome&emailPasswordHidden=true&emailProp=&emailProperties=C%3A%5CUsers%5Cf-b
farag%5Csahi_pro%5Cuserdata%5Cconfig%5Cemail.properties&emailTrigger=success%2Cf
ailure&failedSuiteName=Login.sah&host=localhost&isSendEmailS=false&isSingleSessi
onS=true&jsCodeCoverage=false&logsInfo=&port=9999&scriptsPathMaster=C%3A%2FUsers
%2Ff-bfarag%2Fsahi_pro%2Fuserdata%2Fscripts%2F&sendEmailPeriodicallyS=false&send
EmailPeriodicallyTime=&showPeriodicSummary=true&startWith=%24startWith&suiteId=s
ahi_5509a3a6062b504d990aa5603529da7f514c&suitePath=TMS%2FTestScripts%2FLogin.sah
&threads=5
[sahi] Jul 31, 2018 11:43:37 AM STARTED: Login.sah BROWSER: chrome
[sahi] Jul 31, 2018 11:43:37 AM Testcases: 0/0, Scripts: 0/1 BROWSER: chrom
e
[sahi] Jul 31, 2018 11:45:15 AM FAILED: Login.sah BROWSER: chrome
[sahi] Jul 31, 2018 11:45:15 AM Testcases: 0/0, Scripts: 0/1 BROWSER: chrom
e
[sahi] Jul 31, 2018 11:45:18 AM net.sf.sahi.ant.RunSahiTask startServer
[sahi] INFO: STATUS:FAILURE

set_timestamp:

set_properties_chrome:

failsahichrome:

BUILD FAILED
C:\Users\f-bfarag\sahi_pro\userdata\scripts\TMS\build.xml:61: The following erro
r occurred while executing this line:
C:\Users\f-bfarag\sahi_pro\userdata\scripts\TMS\build.xml:65: Sahi tests failed
on browser chrome!

Total time: 1 minute 41 seconds



ANT Is trying to launch Chrome but with no good trial .
Please help as we need to start using continuous validation for my projects using Jenkins and Sahi Pro
Sign In or Register to comment.