小编jun*_*ken的帖子

karma-sauce-launcher断开每次测试运行,导致IE和Safari运行失败

通过涉及的每个组件的多个版本(karma,socket.io,sauce-connect),我几个月来一直有这个问题.目前我正在使用Karma 12.16.

基本上,当使用https://github.com/karma-runner/karma-sauce-launcher时,Safari和IE浏览器启动会断开每一次测试运行,导致只进行部分测试运行.相关的Karma日志是

Driving the web on session: abf7c976abf1420a9c72b3e06c655040    
DEBUG [wd]:  > RESPONSE init({"base":"SauceLabs","browserName":"internet explorer","platform":"Windows 8.1","version":"11","tags":[],"name":"Karma and Sauce Labs demo","record-video":false,"record-screenshots":true,"build":null,"device-orientation":null,"disable-popup-handler":true}) "abf7c976abf1420a9c72b3e06c655040",null
INFO [launcher.sauce]: internet explorer 11 (Windows 8.1) session at https://saucelabs.com/tests/abf7c976abf1420a9c72b3e06c655040
DEBUG [launcher.sauce]: WebDriver channel for internet explorer 11 (Windows 8.1) instantiated, opening http://localhost:9876/?id=15483642
DEBUG [wd]:  > CALL get("http://localhost:9876/?id=15483642") 
DEBUG [wd]:  > POST /session/:sessionID/url {"url":"http://localhost:9876/?id=15483642"}
DEBUG [web-server]: serving: /Volumes/OSXSTORAGE/Users/a/Dropbox/a/WebstormProjects/a-ui/node_modules/karma/static/client.html
DEBUG [web-server]: serving: /Volumes/OSXSTORAGE/Users/a/Dropbox/a/WebstormProjects/a-ui/node_modules/karma/static/karma.js
DEBUG [wd]:  > RESPONSE get("http://localhost:9876/?id=15483642") 
DEBUG [karma]: A browser has connected on socket xXySXoeppVtPhAr8FVR4
INFO …
Run Code Online (Sandbox Code Playgroud)

saucelabs karma-runner

6
推荐指数
1
解决办法
2200
查看次数

标签 统计

karma-runner ×1

saucelabs ×1