我们的CI在Mac机器(Chrome浏览器)上运行量角器测试。该脚本托管在测试计算机中,该计算机触发该套件在远程Mac上运行。 Mac运行一个处理selenium请求的selenium服务器。最近,一些测试失败,错误 'unknown error: result was not received in 10 seconds'
。这是最近才出现的。测试在Windows和iOS上运行良好。
错误详情:
失败:
消息:
[31m失败:未知错误:未在10秒内收到结果
(会议信息:chrome = 46.0.2490.80)
(驱动信息:chromedriver = 2.15.322455(ae8db840dac8d0c453355d3d922c91adfb61df8f),platform = Mac OS X 10.11.1 x86_64)(警告:服务器未提供任何堆栈跟踪 信息) 命令持续时间或超时:20.12秒 构建信息:版本:' 2.45.0',修订版:' 5017cb8',时间:' 2015-02-26 23:59:50' 系统信息:主持人:' lab-imac.local',ip:' 10.70.210.97',os.name:' Mac OS X',os.arch :' x86_64',os.version:' 10.11.1',java.version: ' 1.8.0_65' 驱动程序信息:org.openqa.selenium.chrome.ChromeDriver 功能[{applicationCacheEnabled = false,rotate = false,mobileEmulationEnabled = false, 铬= {userDataDir = /变种/文件夹/ SC / 9n_x6lvs7mb0cvx22znsy86w0000gn / T / .org.chromium.Chromium.tVh2Ny}, takesHeapSnapshot = true,databaseEnabled = false,handlesAlerts = true, version = 46.0.2490.80,platform = MAC,browserConnectionEnabled = false, nativeEvents = true,acceptSslCerts = true,locationContextEnabled = true, webStorageEnabled = true,browserName = chrome,takesScreenshot = true, javascriptEnabled = true,cssSelectorsEnabled = true}] 会议ID:13bd640cff1fe4c6ca2083526cf92579 [0m 堆: UnknownError:未知错误:未在10秒内收到结果 (会话信息:chrome = 46.0.2490.80) (驱动信息:chromedriver = 2.15.322455(ae8db840dac8d0c453355d3d922c91adfb61df8f),platform = Mac OS X 10.11.1 x86_64)(警告:服务器未提供任何堆栈跟踪 信息) 命令持续时间或超时:20.12秒 构建信息:版本:' 2.45.0',修订版:' 5017cb8',时间:' 2015-02-26 23:59:50' 系统信息:主持人:' lab-imac.local',ip:' 10.70.210.97',os.name:' Mac OS X',os.arch :' x86_64',os.version:' 10.11.1',java.version: ' 1.8.0_65' 驱动程序信息:org.openqa.selenium.chrome.ChromeDriver 功能[{applicationCacheEnabled = false,rotate = false,mobileEmulationEnabled = false, 铬= {userDataDir = /变种/文件夹/ SC / 9n_x6lvs7mb0cvx22znsy86w0000gn / T / .org.chromium.Chromium.tVh2Ny}, takesHeapSnapshot = true,databaseEnabled = false,handlesAlerts = true, version = 46.0.2490.80,platform = MAC,browserConnectionEnabled = false, nativeEvents = true,acceptSslCerts = true,locationContextEnabled = true, webStorageEnabled = true,browserName = chrome,takesScreenshot = true, javascriptEnabled = true,cssSelectorsEnabled = true}] 会话ID:13bd640cff1fe4c6ca2083526cf92579 at new bot.Error(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ atoms \ error.js:108:18) at Object.bot.response.checkResponse(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ atoms \ response.js:109:9) 在D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ webdriver \ webdriver.js:379:20 在goog.async.run.processWorkQueue(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ goog \ async \ run.js:124:15) at process._tickCallback(node.js:368:9) 来自:任务: 在PromiseFactory._promiseFactoryFunc(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:73:25) 在PromiseFactory.makePromise(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ node_modules \ eyes.utils \ src \ PromiseFactory.js:36:25) at Object.ViewportSize.setViewportSize(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ ViewportSize.js:118:31) 在Eyes.setViewportSize(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:333:29) 在眼睛。 (d:\用户\管理员\ node_modules \ eyes.protractor \ node_modules \ eyes.sdk \ SRC \ EyesBase.js:704:32) 在D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:75:17 在goog.async.run.processWorkQueue(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ goog \ async \ run.js:124:15) at process._tickCallback(node.js:368:9) 来自:任务: 在PromiseFactory._promiseFactoryFunc(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:73:25) 在PromiseFactory.makePromise(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ node_modules \ eyes.utils \ src \ PromiseFactory.js:36:25) 在EyesBase.startSession(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ node_modules \ eyes.sdk \ src \ EyesBase.js:693:37) 在眼睛。 (d:\用户\管理员\ node_modules \ eyes.protractor \ node_modules \ eyes.sdk \ SRC \ EyesBase.js:595:25) 在D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:75:17 在goog.async.run.processWorkQueue(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ goog \ async \ run.js:124:15) at process._tickCallback(node.js:368:9) 来自:任务: 在PromiseFactory._promiseFactoryFunc(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:73:25) 在PromiseFactory.makePromise(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ node_modules \ eyes.utils \ src \ PromiseFactory.js:36:25) 在EyesBase.checkWindow(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ node_modules \ eyes.sdk \ src \ EyesBase.js:580:37) 在callCheckWindowBase(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:179:47) 在D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:198:20 在goog.async.run.processWorkQueue(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ goog \ async \ run.js:124:15) at process._tickCallback(node.js:368:9) 来自:任务: 在Eyes.checkWindow(D:\ Users \ Administrator \ node_modules \ eyes.protractor \ src \ Eyes.js:197:27) 在对象。 (d:\用户\管理员\ CI \ Perforce的\验证\元素\规格\测试\测试spec.js:52:14) 在D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasminewd2 \ index.js:96:23 at new wrappedCtr(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ goog \ base.js:2468:26) 在controlFlowExecute(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasminewd2 \ index.js:82:18) 在goog.async.run.processWorkQueue(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ goog \ async \ run.js:124:15) at process._tickCallback(node.js:368:9) 发件人:任务:在控制流程中运行它("加载页面") 在对象。 (d:\用户\管理员\应用程序数据\漫游\ NPM \ node_modules \量角器\ node_modules \ jasminewd2 \ index.js:81:14) at attemptAsync(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasmine \ node_modules \ jasmine-core \ lib \ jasmine-core \ jasmine.js:1819:24) 在QueueRunner.run(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasmine \ node_modules \ jasmine-core \ lib \ jasmine-core \ jasmine.js:1774:9) 在D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasmine \ node_modules \ jasmine-core \ lib \ jasmine-core \ jasmine.js:1801:16 在D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasmine \ node_modules \ jasmine-core \ lib \ jasmine-core \ jasmine.js:1745:9 在D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasminewd2 \ index.js:18:5 在goog.async.run.processWorkQueue(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ selenium-webdriver \ lib \ goog \ async \ run.js:124:15) 从异步测试: 错误 在套房。 (d:\用户\管理员\ CI \ Perforce的\验证\元素\规格\测试\测试spec.js:47:5) at addSpecsToSuite(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasmine \ node_modules \ jasmine-core \ lib \ jasmine-core \ jasmine.js:743:25) 在Env.describe(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasmine \ node_modules \ jasmine-core \ lib \ jasmine-core \ jasmine.js:713:7) 在jasmineInterface.describe(D:\ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ protractor \ node_modules \ jasmine \ node_modules \ jasmine-core \ lib \ jasmine-core \ jasmine.js:3219:18) 在对象。 (d:\用户\管理员\ CI \ Perforce的\验证\元素\规格\测试\测试spec.js:18:1)