Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12842

Allow to pass proxy and other system properties to selenium grid

    • Icon: New Feature New Feature
    • Resolution: Incomplete
    • Icon: Major Major
    • selenium-plugin
    • None

      The communication from the Selenium Hub to the RCs requires that the high ports are generally open between the master and the slave.

      In our environment, such a setup is not viable. A possibility would be to go over a proxy as described here: http://selenium-grid.seleniumhq.org/faq.html#can_i_configure_the_remote_control_to_use_a_custom_httphttps_proxy

      The environment properties on the general hudson configuration page do not apply here. I did not find a possibility to set system properties with -D during startup of the hub jar:

      Starting Selenium Grid
      [selenium-grid] $ /usr/java/jdk1.6.0_30/jre/bin/java -cp /opt/hudson/data/war/WEB-INF/lib/remoting-1.395.jar hudson.remoting.Launcher -cp /opt/hudson/data/selenium-grid/li
      b/log4j-1.2.14.jar:/opt/hudson/data/selenium-grid/lib/selenium-grid-hub-standalone-1.0.4.jar -connectTo localhost:48365

      Is that possible somewhere? If not, could it be added?

          [JENKINS-12842] Allow to pass proxy and other system properties to selenium grid

          If you are talking about the -connectTo, this is done by the remoting library and is not directly related to the selenium plugin itself. The remoting library is what is used to communicate between jenkins/hudson and it's childs.

          I'll check that out or ask Kohsuke if something can be done against that.

          Richard Lavoie added a comment - If you are talking about the -connectTo, this is done by the remoting library and is not directly related to the selenium plugin itself. The remoting library is what is used to communicate between jenkins/hudson and it's childs. I'll check that out or ask Kohsuke if something can be done against that.

          I've recently had to significantly increase the heap size for my main Jenkins process (running under Tomcat) and I've noticed that the Hub gets launched with the same environment and therefore the same JVM args (so it's being allocated massively more heap than it needs).

          I'd love to find a way round this!

          Michael Bannister added a comment - I've recently had to significantly increase the heap size for my main Jenkins process (running under Tomcat) and I've noticed that the Hub gets launched with the same environment and therefore the same JVM args (so it's being allocated massively more heap than it needs). I'd love to find a way round this!

          This:

          In our environment, such a setup is not viable. A possibility would be to go over a proxy as described here: http://selenium-grid.seleniumhq.org/faq.html#can_i_configure_the_remote_control_to_use_a_custom_httphttps_proxy

          Does not do what you're thinking, I'm fairly sure. I'm guessing that used to link to a tutorial on how to implement your own node proxy, which is completely different from what you want. In any case the link is dead so I can't really determine.

          Rouke Broersma added a comment - This: In our environment, such a setup is not viable. A possibility would be to go over a proxy as described here: http://selenium-grid.seleniumhq.org/faq.html#can_i_configure_the_remote_control_to_use_a_custom_httphttps_proxy Does not do what you're thinking, I'm fairly sure. I'm guessing that used to link to a tutorial on how to implement your own node proxy, which is completely different from what you want. In any case the link is dead so I can't really determine.

            darkrift Richard Lavoie
            dschulten Dietrich Schulten
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: