如何在SeleniumJava中为vaadin测试台设置代理设置?

如何在SeleniumJava中为vaadin测试台设置代理设置?,java,selenium-webdriver,vaadin7,http-proxy,test-bench,Java,Selenium Webdriver,Vaadin7,Http Proxy,Test Bench,我需要连接到vaadin服务器以验证vaadin Testbench许可证 System.setProperty("https.proxyHost", "www-proxy.cccc.cccccccc.de"); System.setProperty("http.proxyPort", "1234"); System.setProperty("java.net.useSystemProxies", "true"); System.out.println("

我需要连接到vaadin服务器以验证vaadin Testbench许可证

     System.setProperty("https.proxyHost", "www-proxy.cccc.cccccccc.de");
     System.setProperty("http.proxyPort", "1234");
     System.setProperty("java.net.useSystemProxies", "true");
     System.out.println("in IE");
     System.setProperty("webdriver.ie.driver",
                    "C:\\Users\\ProjectJars\\Selenium\\IEDriiver\\IEDriverServer_Win32_3.9.0\\IEDriverServer.exe");
setDriver(new InternetExplorerDriver());
我得到以下错误; 您的TestBench 4许可证尚未验证。检查您的网络连接。 我在代理后面,这里我需要设置代理设置以连接到服务器进行验证。我正试着用IE驱动程序。我没有使用maven。 我还在maven的seetings.xml中设置代理设置

-<proxy>

<id>optional1</id>

<active>true</active>

<protocol>http</protocol>

<username/>

<password/>

<host>www-ccccc.ccccc.cccccccccc.com</host>

<port>1234</port>

<nonProxyHosts> 111.111.11.1|localhost|111.1.1.1 </nonProxyHosts>

</proxy>
-
选择1
符合事实的
http
www-ccccc.ccccc.cccc.com
1234
111.111.11.1 |本地主机| 111.1.1.1

我在这里更改了值和代理名称

在瓦丁论坛上,关于这一点有一些古老但仍然相关的讨论。也就是说,您需要配置jvm参数,以便Java可以通过代理访问internet

这里有更通用的文档


我通过将maven目标设置为:clean install解决了这个问题,因此我现在能够验证许可证。