0

我刚开始实习/saucelabs。每当我尝试远程测试时,我都会得到Error: failed to connect to tunnel VM.

我的 intern.js 有

environments: [
    { browserName: 'firefox', version: '28'},
],
tunnel: 'SauceLabsTunnel',
tunnelOptions: {
   username: 'foo',
   accessKey: 'xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxx'
},

执行日志

$ intern-runner config=theintern/intern-sauce.js
Listening on 0.0.0.0:9000
Starting tunnel...
Using no proxy for connecting to Sauce Labs REST API.
**********************************************************
A newer version of Sauce Connect (build 1283) is available!
Download it here:
https://saucelabs.com/downloads/sc-4.3-linux.tar.gz
**********************************************************
Started scproxy on port 44275.
Starting secure remote tunnel VM...
Secure remote tunnel VM provisioned.
Tunnel ID: 6586b9012ca2424b8ecd6bd6970e996c
Secure remote tunnel VM is now: booting
Secure remote tunnel VM is now: running
Remote tunnel host is: maki76026.miso.saucelabs.com
Using no proxy for connecting to tunnel VM.
Establishing secure TLS connection to tunnel...
Cleaning up.
Finished! Deleting tunnel.
Error: failed to connect to tunnel VM.
Error: failed to connect to tunnel VM.
  at reject  <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:353:17>
  at readStartupMessage  <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:381:12>
  at <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:434:12>
  at Array.some  <native>
  at Socket.<anonymous>  <../../../../../../../usr/lib/node_modules/intern/node_modules/digdug/SauceLabsTunnel.js:428:21>
  at Socket.EventEmitter.emit  <events.js:117:20>
  at Socket.<anonymous>  <_stream_readable.js:746:14>
  at Socket.EventEmitter.emit  <events.js:92:17>
  at emitReadable_  <_stream_readable.js:408:10>
  at emitReadable  <_stream_readable.js:404:5>

如果它很重要,我目前处于免费套餐中。

4

1 回答 1

0

人们在使用 Sauce Connect 时遇到的一些最常见问题与防火墙和代理设置有关。请确保在 Sauce Connect 和 *.saucelabs.com 之间打开 443。如果代理服务器用于路由网络上的流量,Sauce Connect 通过传递--pacor–p标志来支持代理服务器。

请从https://docs.saucelabs.com/reference/sauce-connect/下载最新版本的 Sauce Connect,并使用所有必要的标志启动客户端(上述页面上提供了完整列表)。如果此版本不起作用,请启动 Sauce Connect 并传递-v标志,这将生成一个详细的日志文件,这将帮助 Sauce Labs 诊断连接问题。

于 2014-09-08T15:01:34.833 回答