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 with Cucumber and Ruby Installation steps for Mac

livewebliveweb Members
edited November -1 in Sahi - Open Source
Hi,

I am new to Sahi. It looks promising. And I would really like to promote this tool within the company.

However, I am facing lot of issues running sahi with cucumber and ruby on mac os. There is no documentation or installation steps for starting the sahi controller and modifying the proxies for MAC OS.

Could anyone please provide me with steps to start the Sahi Controller and configuring the proxies for mac and getting the Cukes working?

Regards,
Live Web Team

Comments

  • Hi liveweb,

    Kindly follow the below URLs:

    http://sahi.co.in/w/ruby

    http://blog.sahi.co.in/2010/05/ruby-sahi-with-cucumber.html

    Also, follow this link to work with configuring the proxy:

    http://sahi.co.in/forums/viewtopic.php?id=205

    Let me know if you face any problem.

    Regards
    Sumitra
  • Thanks Sumitra. I was able to setup the proxy and start the controller on mac. I am trying to run the example "login.feature" file provided by sahi to start with.However when I try to run the login.feature file I get below errors.I have installed all the required gems, modified the FF proxies and modified the sahi.properties file to use ruby mode and running to sahi.sh. Anything else that I am missing? Appreciate your help.

    Scenario: Login with valid credentials # login.feature:6
    Given I am not logged in # login.rb:20
    error:Playback session not started. Verify that proxy is set on the browser. (RuntimeError)
    ./login.rb:21:in `/^I am not logged in$/'
    login.feature:7:in `Given I am not logged in'
    When I try to login with "test" and "secret" # login.rb:24
    Then I should be logged in # login.rb:30
  • Hi liveweb,

    Also, you need to have java1.5 or above to run sahi scripts.

    You will need to specify the browser to use Sahi as its proxy, and ask Sahi to use your office proxy.
    After setting the browser proxy settings to localhost 9999, follow the instructions here: http://sahi.co.in/w/configuring-an-external-proxy

    Check if this solves your issue.

    Regards
    Sumitra
Sign In or Register to comment.