eclipse - Running selenium tests on Virtual box guest -
so trying run selenium tests written in java through eclipse on guest machine.
my host machine windows 7 , running windows 7 guest machine. have set 2 network adapter nat , host only. farily new whole selenium testing still exploring stuff.
i run hub , node on guest next commands:
java -jar selenium-2.39/selenium-server-standalone-2.39.0.jar -role hub -port 4444 -host 192.168.56.1
and node with:
java -jar selenium-2.39/selenium-server-standalone-2.39.0.jar -role node -port 5555 -hub http://10.0.2.15:4444/grid/register -browser "browsername=internet explorer,version=11,platform=windows" -host 192.168.56.1
from eclipse trying access hub on http://192.168.56.1:5555/wd/hub , http://192.168.56.1:4444/wd/hub in both cases error:
org.openqa.selenium.remote.unreachablebrowserexception: not start new session. possible causes invalid address of remote server or browser start-up failure. build info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35' system info: host: 'xxxxx', ip: '192.168.xxx.xxx', os.name: 'windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31' ...
i not know if using correct ip addresses in both cases, if go browser on guest machine can access console hub
thank in advance.
ok.
so after long playing setting finaly made working. first thing disabled host-only networking , left nat , i've set port 4444 forwarding host (127.0.0.1) guest (10.0.2.15).
i've run hub
java -jar selenium-2.39/selenium-server-standalone-2.39.0.jar -role hub
and node with
java -jar selenium-2.39/selenium-server-standalone-2.39.0.jar -role node -port 5555 -hub http://localhost:4444/grid/register -browser "browsername=iexplorer,version=11,platform=windows" -dwebdriver.ie.driver=selenium-2.39/iedriverserver.exe
later on in eclipse under debug configurations under environment tab set new property (notice: custom property in case)
xx.xxxxxxxxxxxxxxx.selenium.properties.remoteurl value http://localhost:4444/wd/hub
after running tests reach remote hub.
Comments
Post a Comment