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.

Sahi not starting from Jenkins

tj2point0tj2point0 Members
edited November -1 in Sahi - Open Source
I am integrating Sahi OS with Jenkins. I have created build file that works only if I manually start Sahi dashboard from the menu. My Sahi version is V3.5, Build 2011-07-19 running on Ubuntu 11.04

However Sahi does stop running once the tests are finished. Unfortunately I cannot yet post my build.xml file as I am new to the forum. Any help would be appreciated.

Comments

  • JaoBrJaoBr Members
    I don't know how the tests are executed if you do it like the article Integrate with Jenkins says or if the integration only works with Sahi Pro, but I managed use Sahi and Jenkins just using batch mode and Sahi OS.

    I don't know if you want to use like this, is quite simple, although I have not finalized all the settings I want or need, if you want I can try it again and post it here (I don't remember how I did), I won't do it now because I don't have much time right now.

    I did it using Windows and .bat files, but it should be the same using it on Linux.
  • I am running the tests in batch mode. My only problem is that I have to start Sahi Dashboard manually just before running a build. This additional step prevents automation.
  • no problem

    in your Job, configure a build step "run shell script" with the contents
    cd $PATH_TO_SAHI_BIN
    sh sahi.sh &
    
    now call ant and build.xml
    then add another step with a shell
    lsof -i:$9999 -F p | cut -dp  -f2 | xargs kill
    
    this should kill sahi

    regards
    wormi
Sign In or Register to comment.