Hello everyone,
I am trying to setup a grid of several virtual machines in order to execute the automated tests on several simulators instead of only 1 simulator. Unfortunately, I have an exception thrown when I try to attach the driver as a second node from other machine. ( you can see the exception below in
red )
Some information about the initial environment - I have a windows machine on which I have installed VM Player. There are two virtual machines (MAC OS X version 10.8.3 ) which are added and started on VM Player. On each machine I have installed / downloaded:
Below you can see the commands which I have executed and the output of each command:
- Start hub on MAC VM 1
COMMAND: java -jar selenium-server-standalone-2.35.0.jar -role hub -port 4444 -hubHost 192.168.60.128
OUTPUT: Oct 29, 2013 6:19:55 AM org.openqa.grid.selenium.GridLauncher main INFO: Launching a selenium grid server 2013-10-29 06:20:02.194:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT 2013-10-29 06:20:02.240:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null} 2013-10-29 06:20:02.251:INFO:osjs.AbstractConnector:Started SocketC...@0.0.0.0:4444 Oct 29, 2013 6:20:17 AM org.openqa.grid.selenium.proxy.DefaultRemoteProxy onEvent WARNING: Marking the node as down. Cannot reach the node for 2 tries. Oct 29, 2013 6:21:21 AM org.openqa.grid.selenium.proxy.DefaultRemoteProxy onEvent WARNING: Unregistering the node. It's been down for 63780 milliseconds. Oct 29, 2013 6:21:21 AM org.openqa.grid.internal.Registry removeIfPresent WARNING: Proxy 'host :http://192.168.60.128:5556 time out : 300000' was previously registered. Cleaning up any stale test sessions. Oct 29, 2013 6:21:37 AM org.openqa.grid.selenium.proxy.DefaultRemoteProxy onEvent WARNING: Marking the node as down. Cannot reach the node for 2 tries.
- START node on MAC VM 1
COMMAND: java -jar ios-server-0.6.5-jar-with-dependencies.jar -hub http://127.0.0.1:4444/grid/register -host 192.168.60.128 -port 5556 -simulators
OUTPUT: 20:04:113 INFO ApplicationStore.<init> App archive folder:/Users/nikolay/Documents/applications 20:04:913 WARNING AppleLanguage.create no isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 20:05:339 WARNING AppleLanguage.create zh_CN isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 20:05:356 WARNING AppleLanguage.create zh_TW isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 20:05:420 INFO IOSServer.init Beta features enabled ( enabled by -beta flag ): false Simulator enabled ( enabled by -simulators flag): true Inspector: http://0.0.0.0:5556/inspector/ tests can access the server at http://0.0.0.0:5556/wd/hub server status: http://0.0.0.0:5556/wd/hub/status Connected devices: http://0.0.0.0:5556/wd/hub/devices/all Applications: http://0.0.0.0:5556/wd/hub/applications/all Capabilities: http://0.0.0.0:5556/wd/hub/capabilities/all Monitoring '/Users/nikolay/Documents/applications' for new applications Archived apps /Users/nikolay/Documents/applications using xcode install : /Applications/Xcode.app using IOS version 6.1 ios >= 6.0. Safari and hybrid apps are supported. Applications : --------------- CFBundleName=Safari,CFBundleVersion=8536.25 2013-10-29 06:20:05.978:INFO::jetty-7.x.y-SNAPSHOT 2013-10-29 06:20:06.157:INFO::Started SelectChann...@0.0.0.0:5556 20:12:103 WARNING IOSServlet.getResponse 761ms. GET /status 20:17:913 WARNING IOSServlet.getResponse 747ms. GET /status 20:23:728 WARNING IOSServlet.getResponse 754ms. GET /status 20:28:239 WARNING IOSServlet.getResponse 745ms. GET /status 20:29:607 WARNING IOSServlet.getResponse 860ms. GET /status 20:35:371 WARNING IOSServlet.getResponse 743ms. GET /status
- Start node on MAC VM2
COMMAND: java -jar ios-server-0.6.5-jar-with-dependencies.jar -hub http://192.168.60.134/grid/register -port 5555 -simulators
OUTPUT: 22:36:210 INFO ApplicationStore.<init> App archive folder:/Users/nikolay/Downloads/applications 22:37:162 WARNING AppleLanguage.create no isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 22:37:695 WARNING AppleLanguage.create zh_CN isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 22:37:715 WARNING AppleLanguage.create zh_TW isn't recognized.Please file a bug on github.You won't be able to start the app in that language. 22:37:747 INFO IOSServer.init Beta features enabled ( enabled by -beta flag ): false Simulator enabled ( enabled by -simulators flag): true Inspector: http://0.0.0.0:5555/inspector/ tests can access the server at http://0.0.0.0:5555/wd/hub server status: http://0.0.0.0:5555/wd/hub/status Connected devices: http://0.0.0.0:5555/wd/hub/devices/all Applications: http://0.0.0.0:5555/wd/hub/applications/all Capabilities: http://0.0.0.0:5555/wd/hub/capabilities/all Monitoring '/Users/nikolay/Downloads/applications' for new applications Archived apps /Users/nikolay/Downloads/applications using xcode install : /Applications/Xcode.app using IOS version 6.1 ios >= 6.0. Safari and hybrid apps are supported. Applications : --------------- CFBundleName=Safari,CFBundleVersion=8536.25 Exception in thread "Thread-9" org.openqa.selenium.WebDriverException: Error sending the registration request. Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.3', java.version: '1.7.0_45' Driver info: driver.version: unknown at org.uiautomation.ios.server.grid.RegistrationRequest.registerToHub(RegistrationRequest.java:118) at org.uiautomation.ios.server.grid.SelfRegisteringRemote.registerToHub(SelfRegisteringRemote.java:94) at org.uiautomation.ios.server.grid.SelfRegisteringRemote.access$000(SelfRegisteringRemote.java:34) at org.uiautomation.ios.server.grid.SelfRegisteringRemote$1.run(SelfRegisteringRemote.java:70) at java.lang.Thread.run(Thread.java:744) Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.60.134 refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:827) at org.uiautomation.ios.server.grid.RegistrationRequest.registerToHub(RegistrationRequest.java:113) ... 4 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) ... 10 more 2013-10-29 06:22:38.304:INFO::jetty-7.x.y-SNAPSHOT 2013-10-29 06:22:38.379:INFO::Started SelectChann...@0.0.0.0:5555
Does anyone have an idea how to resolve this problem ?
Thank you in advance.