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 Start up not working

sibusibu Members
edited April 2013 in Sahi - Open Source

SAHI_HOME: ..
SAHI_USERDATA_DIR: ..\userdata
SAHI_EXT_CLASS_PATH:
Sahi properties file = D:\Sahi\config\sahi.properties
Sahi user properties file = D:\Sahi\userdata\config\userdata.properties
>>>> Sahi started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Controller
Reading browser types from: D:\Sahi\userdata\config\browser_types.xml
Firefox 4 was not found at C:\Program Files\Mozilla Firefox 4.0 Beta 7\firefox.exe
Opera was not found at C:\Program Files\Opera\opera.exe
C:\Program Files\Mozilla Firefox\firefox.exe -profile "D:\Sahi\userdata/browser/ff/profiles/sahi0" -no-remote http://sahi.example.com/_s_/dyn/Driver_initialized
Apr 30, 2013 3:50:05 PM net.sf.sahi.ui.Dashboard execCommand
SEVERE: null
java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at net.sf.sahi.util.Utils.executeCommand(Utils.java:528)
at net.sf.sahi.ui.Dashboard.execCommand(Dashboard.java:283)
at net.sf.sahi.ui.Dashboard.access$600(Dashboard.java:49)
at net.sf.sahi.ui.Dashboard$4$1.run(Dashboard.java:270)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 7 more

Best Answers

Answers

  • sibusibu Members

    SAHI_HOME: ..
    SAHI_USERDATA_DIR: ..\userdata
    SAHI_EXT_CLASS_PATH:
    Sahi properties file = D:\Sahi\config\sahi.properties
    Sahi user properties file = D:\Sahi\userdata\config\userdata.properties
    >>>> Sahi started. Listening on port: 9999
    >>>> Configure your browser to use this server and port as its proxy
    >>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Controller
    Reading browser types from: D:\Sahi\userdata\config\browser_types.xml
    Firefox 4 was not found at C:\Program Files\Mozilla Firefox 4.0 Beta 7\firefox.exe
    Opera was not found at C:\Program Files\Opera\opera.exe
    C:\Program Files\Mozilla Firefox\firefox.exe -profile "D:\Sahi\userdata/browser/ff/profiles/sahi0" -no-remote http://sahi.example.com/_s_/dyn/Driver_initialized
    Apr 30, 2013 3:50:05 PM net.sf.sahi.ui.Dashboard execCommand
    SEVERE: null
    java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at net.sf.sahi.util.Utils.executeCommand(Utils.java:528)
    at net.sf.sahi.ui.Dashboard.execCommand(Dashboard.java:283)
    at net.sf.sahi.ui.Dashboard.access$600(Dashboard.java:49)
    at net.sf.sahi.ui.Dashboard$4$1.run(Dashboard.java:270)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 7 more
  • If there was no update for Java, than what i should do? And for your info I am trying to work with Jenkins, But the error that i received as below,

    stopsahi:
    [java] Reverting Proxy
    [java] java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
    [java] at java.lang.ProcessBuilder.start(Unknown Source)
    [java] at java.lang.Runtime.exec(Unknown Source)
    [java] at java.lang.Runtime.exec(Unknown Source)
    [java] at net.sf.sahi.util.Utils.executeCommand(Utils.java:620)
    [java] at net.sf.sahi.util.ProxySwitcher.execCommand(ProxySwitcher.java:95)
    [java] at net.sf.sahi.util.ProxySwitcher.revertSystemProxy(ProxySwitcher.java:28)
    [java] at net.sf.sahi.ResetProxy.run(Proxy.java:219)
    [java] at java.lang.Thread.run(Unknown Source)
    [java] Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    [java] at java.lang.ProcessImpl.create(Native Method)
    [java] at java.lang.ProcessImpl.<init>(Unknown Source)
    [java] at java.lang.ProcessImpl.start(Unknown Source)
    [java] ... 8 more
    [java] Java Result: 1

    failsahi:

    BUILD FAILED
    C:\Program Files (x86)\Jenkins\jobs\SahiPro\workspace\jenkins-sample.xml:12: The following error occurred while executing this line:
    C:\Program Files (x86)\Jenkins\jobs\SahiPro\workspace\jenkins-sample.xml:53: Sahi tests failed!

    Total time: 1 minute 3 seconds
    Shutting down ...
    Connection refused: connect
    Build step 'Invoke Ant' marked build as failure
    Recording test results
Sign In or Register to comment.