我正在尝试使用Saucelabs在Circleci上运行angular-phonecat e2e测试。
我已经分叉了这个项目:
https://github.com/circleci/angular-phonecat
并根据此文档修改了circle.yml:
docs.saucelabs.com/ci-integrations/circleci /
其他文件不会更改。
e2e测试传递给Circleci。但在Saucelabs我没有看到任何测试。隧道正在打开和关闭(参见附件stdout_cd_11281)。我也在Saucelabs开启和关闭时看到它。并且测试也成功执行(参见附件stdout_npm_11891.txt)。但没有在Saucelabs上记录测试。
无论我是否打开隧道,测试都会在圆圈上运行,所以我怀疑隧道没有被使用。
为了让圈子使用隧道在酱油上运行测试,我需要配置什么? 这是我的分叉和修改的anguar-phonecat项目:
https://github.com/alphatools/angular-phonecat
我感谢您的帮助!感谢。
circle.yml
machine:
node:
version:
0.10.28
dependencies:
post:
- wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz
- tar -xzf sc-latest-linux.tar.gz
test:
override:
- npm run test-single-run
- cd sc-*-linux && ./bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready:
background: true
# Wait for tunnel to be ready
- while [ ! -e ~/sauce_is_ready ]; do sleep 1; done
- npm start:
background: true
- sleep 5
- npm run protractor
post:
- killall --wait sc # wait for Sauce Connect to close the tunnel
stdout_cd_11281.txt:
10 Oct 22:33:28 - Sauce Connect 4.3, build 1283 399e76d
10 Oct 22:33:28 - Using CA certificate bundle /etc/ssl/certs/ca-certificates.crt.
10 Oct 22:33:28 - Using no proxy for connecting to Sauce Labs REST API.
10 Oct 22:33:29 - **********************************************************
10 Oct 22:33:29 - A newer version of Sauce Connect (build 1757) is available!
10 Oct 22:33:29 - Download it here:
10 Oct 22:33:29 - https://saucelabs.com/downloads/sc-4.3.11-linux.tar.gz
10 Oct 22:33:29 - **********************************************************
10 Oct 22:33:30 - Started scproxy on port 45650.
10 Oct 22:33:30 - Please wait for 'you may start your tests' to start your tests.
10 Oct 22:33:30 - Starting secure remote tunnel VM...
10 Oct 22:33:33 - Secure remote tunnel VM provisioned.
10 Oct 22:33:33 - Tunnel ID: 8569af871fff44ffbbca7a2e1cf0024f
10 Oct 22:33:34 - Secure remote tunnel VM is now: booting
10 Oct 22:33:50 - Secure remote tunnel VM is now: running
10 Oct 22:33:50 - Remote tunnel host is: maki78195.miso.saucelabs.com
10 Oct 22:33:50 - Using no proxy for connecting to tunnel VM.
10 Oct 22:33:50 - Starting Selenium listener...
10 Oct 22:33:50 - Establishing secure TLS connection to tunnel...
10 Oct 22:33:50 - Selenium listener started on port 4445.
10 Oct 22:33:52 - Sauce Connect is up, you may start your tests.
10 Oct 22:33:52 - Connection established.
10 Oct 22:34:21 - Cleaning up.
10 Oct 22:34:21 - Finished! Deleting tunnel.
10 Oct 22:34:22 - Overlapping domain: sauce-connect.proxy, removing tunnel 8569af871fff44ffbbca7a2e1cf0024f.
10 Oct 22:34:25 - Goodbye.
stdout_npm_11891.txt:
> angular-phonecat@0.0.0 prestart /home/ubuntu/angular-phonecat
> npm install
> angular-phonecat@0.0.0 postinstall /home/ubuntu/angular-phonecat
> bower install
> angular-phonecat@0.0.0 start /home/ubuntu/angular-phonecat
> http-server -p 8000
[33mStarting up http-server, serving [39m[36m./[39m[33m on port: [39m[36m8000[39m
Hit CTRL-C to stop the server
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/index.html[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/bower_components/bootstrap/dist/css/bootstrap.css[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/css/app.css[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/css/animations.css[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/bower_components/jquery/jquery.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/bower_components/angular/angular.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/bower_components/angular-animate/angular-animate.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/bower_components/angular-route/angular-route.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/bower_components/angular-resource/angular-resource.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/js/app.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/js/animations.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/js/controllers.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/js/filters.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/js/services.js[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/favicon.ico[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/partials/phone-list.html[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/phones/phones.json[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/motorola-xoom-with-wi-fi.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/motorola-xoom.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/motorola-atrix-4g.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/dell-streak-7.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/samsung-gem.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/dell-venue.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/nexus-s.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/lg-axis.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/samsung-galaxy-tab.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/samsung-showcase-a-galaxy-s-phone.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/droid-2-global-by-motorola.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/droid-pro-by-motorola.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/motorola-bravo-with-motoblur.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/motorola-defy-with-motoblur.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/t-mobile-mytouch-4g.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/samsung-mesmerize-a-galaxy-s-phone.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/sanyo-zio.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/samsung-transform.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/t-mobile-g2.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:10 GMT] "[36mGET[39m [36m/app/img/phones/motorola-charm-with-motoblur.0.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:16 GMT] "[36mGET[39m [36m/app/partials/phone-detail.html[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:16 GMT] "[36mGET[39m [36m/app/phones/nexus-s.json[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:16 GMT] "[36mGET[39m [36m/app/img/phones/nexus-s.1.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:16 GMT] "[36mGET[39m [36m/app/img/phones/nexus-s.2.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
[Sat, 10 Oct 2015 22:34:16 GMT] "[36mGET[39m [36m/app/img/phones/nexus-s.3.jpg[39m" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"