【发布时间】:2016-04-07 06:30:57
【问题描述】:
我有一个 NUnit 测试项目,其中我有一个简单的测试方法,它使用 WebDriver 来查找页面上的元素。
我可以在VS2015中运行测试方法没有问题。然后我尝试在 TeamCity (9.1.6) 中构建这个项目,构建步骤如下:
Runner type: NUnit
NUnit runner: NUnit 3
Path to NUnit console runner: packages\NUnit.ConsoleRunner.3.2.0\tools\nunit3-console.exe
当 TeamCity 尝试执行构建步骤时,我收到以下错误:
[Web.Test.FindPage] OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:64963/session/27d5b5b821e3b90c9d6f8183f05a3d05/element timed out after 60 seconds.
----> System.Net.WebException : The operation has timed out
TeamCity Server 和 Agent 都配置为在服务帐户下运行的 Windows 服务。
我有什么遗漏的吗?
【问题讨论】:
标签: c# selenium-webdriver nunit teamcity