Node.js 量角器/Selenium/Jasmine超时,除非手动启动webdriver管理器
我很难找到这个问题 环境:Node.js 量角器/Selenium/Jasmine超时,除非手动启动webdriver管理器,node.js,jasmine,protractor,Node.js,Jasmine,Protractor,我很难找到这个问题 环境: Windows Server 2012 R2 铬:73.0.3683.75 量角器:v5.4.2 WebDriver管理器:v12.1.1 Chrome Webdriver:v2.46或v73.0.3686.68 工作流程: TeamCity推出的测试套件 TeamCity启动远程powershell脚本以在目标系统上启动量角器 目标系统上的脚本运行dragrator-gragrator.conf.js 在Chrome自动更新到73.xxx版本之前,一切都正常
- Windows Server 2012 R2
- 铬:73.0.3683.75
- 量角器:v5.4.2
- WebDriver管理器:v12.1.1
- Chrome Webdriver:v2.46或v73.0.3686.68
- TeamCity推出的测试套件
- TeamCity启动远程powershell脚本以在目标系统上启动量角器
- 目标系统上的脚本运行
dragrator-gragrator.conf.js
[21:10:51][Step 2/4] A- First test....
[21:10:51][Step 2/4] - Failed: timeout: Timed out receiving message from renderer: 600.000
[21:11:34][Step 2/4] protractor : (node:6836) UnhandledPromiseRejectionWarning: WebDriverError: No active session with ID
[21:11:34][Step 2/4] 0a7594e8b0c09966cd91bd158b4ba1e9
[21:11:34][Step 2/4] At C:\webenrollmentautomation\Automation\WebEnroll.ps1:58 char:3
[21:11:34][Step 2/4] + protractor protractor.conf.js --params.machine $machine 2>&1 ...
[21:11:34][Step 2/4] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[21:11:34][Step 2/4] + CategoryInfo : NotSpecified: ((node:6836) Unh...d91bd158b4ba1e9:String) [], RemoteException
[21:11:34][Step 2/4] + FullyQualifiedErrorId : NativeCommandError
[21:11:34][Step 2/4]
[21:11:34][Step 2/4] at Object.checkLegacyResponse
[21:11:34][Step 2/4] (C:\Users\identix\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:546:15)
[21:11:34][Step 2/4] at parseHttpResponse
[21:11:34][Step 2/4] (C:\Users\identix\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:509:13)
[21:11:34][Step 2/4] at doSend.then.response
[21:11:34][Step 2/4] (C:\Users\identix\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:441:30)
[21:11:34][Step 2/4] at <anonymous>
[21:11:34][Step 2/4] at process._tickCallback (internal/process/next_tick.js:189:7)
[21:11:34][Step 2/4] (node:6836) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing
尝试将下面的一个添加到您的配置中
exports.config = {
directConnect: true
}
希望这将解决您的问题。尝试将下面的问题添加到配置中
exports.config = {
directConnect: true
}
希望这能解决你的问题