【发布时间】:2021-05-14 12:23:23
【问题描述】:
我正在尝试在 Azure DevOps 管道上运行量角器测试并收到以下错误。请注意,即使从 Azure DevOps 服务器运行测试,jar 文件路径也指向我的本地驱动器。知道我需要做什么吗?
从本地计算机运行时相同的测试有效,但在 Azure 上失败。我的项目的 node_modules 文件夹中有 selenium-server-standalone-3.141.59.jar。我不明白的是,当我从 Azure 运行测试时,为什么它会查看我的本地计算机 (C:\Automation)。
[13:33:31] I/launcher - Running 1 instances of WebDriver
[13:33:31] E/local - Error code: 135
[13:33:31] E/local - Error message: No selenium server jar found at
C:\Automation\my_app\node_modules\protractor\node_modules\webdriver
manager\selenium\selenium-server-standalone-3.141.59.jar. Run 'webdriver-manager
update' to download binaries.
【问题讨论】:
-
您是否在本地节点模块文件夹上运行了 webdriver-manager 更新
-
请出示你的量角器 conf.js
-
@salis01 您使用的是 Azure DevOps 服务 (dev.azure.com/xxxx) 还是本地 Azure DevOps 服务器?你能分享你的管道定义吗?尝试以下文档中的示例,看看您是否可以重现此问题:protractortest.org/#。
标签: selenium-webdriver azure-devops protractor