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.

I got an error while creating .suite file

CVPCVP Members
edited June 2013 in Sahi - Open Source
Error is as follws
========================================================================================
New Usage 1: java -cp /path/to/ant-sahi.jar net.sf.sahi.test.TestRunner -test <t
est_or_suite_name> -browserType <browser_type> -baseURL <start_url> -threads <nu
mber_of_threads>
--- More options ---
-test path to test or suite
-baseURL baseURL for all tests
-threads no. of browser instances to run in parallel
-browserType browserType as specified in sahi/userdata/config/browser
_types.xml
-browser full browser to browser. Ignored if browserType specifie
d.
-browserProcessName browser process name used to find the pid when using ps
or tasklist commands. Ignored if browserType specified.
-browserOption Options to be passed to browser. Ignored if browserType
specified.
-junitLog true or false. Enable or disable junit logs
-junitLogDir path to junit log dir. If not specified, uses default lo
cation in userdata/logs
-htmlLog true or false. Enable or disable html logs
-htmlLogDir path to html log dir. If not specified, uses default loc
ation in userdata/logs
-initJS Any javascript which would be executed before every scri
pt
-useSingSession true or false. Execute all scripts sequentially
in a single browser session. Default is false.
-extraInfo Any extra info that may be accessed using _extraInfo()
--- OR ---
Usage: java -cp /path/to/ant-sahi.jar net.sf.sahi.test.TestRunner <test_or_suite
_name> <browser_executable> <start_url> <log_dir> <sahi_host> <sahi_port> <numbe
r_of_threads> <browser_executable> [<browser_option>]
Set log_dir to "default" to log to the default log dir
Set number_of_threads to a number which is compatible with your machine CPU and
RAM.
Look at http://sahi.co.in/w/Running+multiple+tests+in+batch+mode for details on
browser options for various browsers.
Shutting down ...
Connection refused: connect
========================================================================================
End of the error

Best Answer

  • edited June 2013 Answer ✓
    How did you try to execute java? Please provide the full command.
    Shutting down ...
    Connection refused: connect
    

    Seems like your Sahi Proxy is not running.

Answers

  • CVPCVP Members
    edited June 2013
    My Command is :

    D:\Testing\Sahi Installed\userdata\bin>testrunner.bat Content/demo_Content.suite site_address firefox
  • CVPCVP Members
    \Testing\Sahi Installed\userdata\bin>testrunner.bat Content/demo_Content.suite site_address firefox
  • CVPCVP Members
    I done it Successfully.... :-)
    "Wormi" Sir, There is no proxy is running background.
    Thanks a lot sir
  • xD no problem
Sign In or Register to comment.