C# TeamCity和Selenium WebDriver

C# TeamCity和Selenium WebDriver,c#,selenium-webdriver,nunit,teamcity,C#,Selenium Webdriver,Nunit,Teamcity,我有一个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尝试执

我有一个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服务器和代理都配置为在服务帐户下运行的Windows服务


有什么我遗漏的吗?

结果是我无法将生成代理作为Windows服务运行。我必须在控制台中运行它。一旦我这样做,问题就解决了。

TeamCity文档中的更多信息: