Hi guys!!

Totally new here, been stuck on this for a while.. Apologies if I'm not 
posting appropriately. I've been googling and reading about this for a few 
weeks.

I have Jenkins 1.559 installed on an Amazon EC2.
I launch a webdriver node on a PC I have in the office using the following 
command. It's a physical machine.
java -jar selenium-server-standalone-2.35.0.jar -role webdriver -hub 
http://mydomain.com:4444/grid/register -port 5566

I have the Selenium plugin 2.3 installed in Jenkins and here's how it looks:
http://grab.by/wQeq

Here's what the mydomain.com:4444/grid/register route looks like:
http://grab.by/wQcW

You can see the mydomain.com:4444/grid/console is working here:
http://grab.by/wQeu

I have a Jenkins project that listens for github commits and then runs a 
bash script that triggers python tests.

The error I get in the console output is:

WebDriverException: Message: u'Error forwarding the new session Error 
forwarding the request Connection to http://192.xxx.x.xx:5566 refused' ;


I realize that the IP is probably wrong because the two machines are not on 
the same network. What address should I be using?
Where do I change the host that Jenkins tries to connect to?

Should I append -host to the webdriver command?

============================

I also realize I might need to edit the python tests to connect via:
WebDriver driver = new RemoteWebDriver(new 
URL("http://mydomain.com:4444/wd/hub";), capability);

Currently it's trying to connect like this:
class Grid2(unittest.TestCase):

        capabilities = None

        def setUp(self):
                self.driver = 
webdriver.Remote("http://mydomain.com:4444/wd/hub";, desired_capabilities={
                        "browserName": browser,
                        "platform": platform,
                        # "node": port,
                        "firefox_binary": "/usr/bin/firefox/firefox-bin",
                        "webdriver_firefox_port": 5566,
                        })
        print "set up executed"


Ideas?
Any help is much appreciated. Thanks for reading!!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to