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 OS Command Line Not working

GHallsGHalls Members
edited April 2013 in Sahi - Open Source
Hi.

I have recently started development again on Sahi OS. The script runs fine using the dashboard. However, I am trying to get it working via the command line, and cannot seem to get it working. I get the following text in the command prompt.

suiteName = scripts/zzzz.suite
base = http://sahi.co.in/demo/
sahiHost = localhost
port = 9999
threads = 5
browserType = ie
this.isSingleSession == false
Added shutdown hook.
http://localhost:9999/_s_/dyn/Suite_start?suite=scripts/Seeding.suite&base=htt
p%3A%2F%2Fsahi.co.in%2Fdemo%2F&threads=5&sahisid=sahi_72cd0c41038050415f082d407f
4891b0cd2c&browserType=ie&html=
Connection refused: connect
Could not connect to Sahi Proxy.
Verify that the Sahi Proxy is running on the specified host and port.

I have tried manually setting the system proxy to localhost & 9999, but to no avail. It wont work for any browser thats installed.

Im running out of ideas, and need to get it working on command prompt.

Thanks

GHalls

Answers

  • Hi GHalls,
    By using command line, I understand you're using testrunner.bat.
    When trying to execute your scripts using testrunner, your Sahi should be launched on port 9999 ie. your dashboard should be launched while performing the command line operation.

    Regards,
    Pratyush
  • Connection refused: connect
    Could not connect to Sahi Proxy.
    

    please make sure sahi is running and listening on port 9999
Sign In or Register to comment.