Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker 在Jenkins中基于Selenium Webdriver和网格构建_Docker_Jenkins_Selenium Webdriver - Fatal编程技术网

Docker 在Jenkins中基于Selenium Webdriver和网格构建

Docker 在Jenkins中基于Selenium Webdriver和网格构建,docker,jenkins,selenium-webdriver,Docker,Jenkins,Selenium Webdriver,用户单击Jenkins管道中的Build。构建基于Jenkins中的Selenium Webdriver和网格。IP地址被列入白名单并设置了代理(Docker esp proxy)。通过Maven命令运行它: mvn clean test -Dmachine=remote -Premote -Dproxy=${env.HTTPS_PROXY} -Dproxy_url=http://selenium.hub/wd/hub 以下是基于Java的代码: Proxy proxyUrl = new Pr

用户单击Jenkins管道中的Build。构建基于Jenkins中的Selenium Webdriver和网格。IP地址被列入白名单并设置了代理(Docker esp proxy)。通过Maven命令运行它:

mvn clean test -Dmachine=remote -Premote -Dproxy=${env.HTTPS_PROXY} -Dproxy_url=http://selenium.hub/wd/hub
以下是基于Java的代码:

Proxy proxyUrl = new Proxy();
proxyUrl.setHttpProxy(proxy);
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.setExperimentalOption("useAutomationExtension", false);
options.setCapability("proxyUrl", proxyUrl);

webdriver = SeleniumHelper.remoteWebDriver(driver_url, options);
自动化框架无法打开url。Chrome浏览器已打开,但在其中获取错误消息:

此页面不工作

ERR\u EMPTY\u响应

用户无法在Jenkins中安装任何插件。这是管理员的角色,无论如何都不允许这样做。如果用户设置Google.com工作正常。 你知道问题的原因吗?可能是错误的docker代理服务器