Protractor 如何在保护器的配置中设置代理
我在angular 4中使用protector,当我运行e2e测试时,它无法从网络下载一些依赖项,因为它在我的组织代理中被阻止 我试图在gragrator.conf.js中设置代理,但它对我不起作用Protractor 如何在保护器的配置中设置代理,protractor,Protractor,我在angular 4中使用protector,当我运行e2e测试时,它无法从网络下载一些依赖项,因为它在我的组织代理中被阻止 我试图在gragrator.conf.js中设置代理,但它对我不起作用 capabilities: { 'browserName': 'chrome', 'proxy': { 'proxyType': 'manual', 'httpProxy': 'http://ptx.proxy.corp.sopra:8080' } 运行ng e2e时出现以下错误 webp
capabilities: {
'browserName': 'chrome',
'proxy': {
'proxyType': 'manual',
'httpProxy': 'http://ptx.proxy.corp.sopra:8080'
}
运行ng e2e时出现以下错误
webpack: Compiled successfully.
events.js:183
throw er; // Unhandled 'error' event
^
Error: connect ETIMEDOUT 216.58.204.144:443
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
有人能告诉我如何在中使用代理吗。我确实找到了设置代理的方法,我在系统环境变量中使用key
http\u proxy设置了代理,并且ng e2e
对我来说运行良好 我确实找到了设置代理的方法,我在系统环境变量中使用keyhttp_proxy
设置了代理,并且nge2e
运行良好