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.

Error In Suite Run

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

I got this error in suite file --->

Starting script
Could not connect to the web server.
java.net.UnknownHostException: machine_name
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:126)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:82)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:145)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:91)
at java.lang.Thread.run(Unknown Source)
at Feb 15, 2011 5:46:19 PM
JSERROR
Step >_sahi._setValue(_sahi._textbox("userIdStr"), "admin.cspi@fadv.com");< did not complete in 230 seconds. at Feb 15, 2011 5:50:12 PM
Stopping script

Only one script failed but here it is telling "Could not connect to the web server" But i checked it there is no server problem at that time.Same script running fine from controller.

Can any one tell me why this failure happend.

Thanks
Aparanji

Comments

  • narayannarayan Administrators
    Looks like some network problem between your machine and the webserver. Could you check if it recurs?
  • Hi
    I found what the problem is i didnt gave base URL for this script in suite file.

    Regards
    Aparanji
Sign In or Register to comment.