【问题标题】:TeamCity and Selenium WebDriverTeamCity 和 Selenium WebDriver
【发布时间】: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


    【解决方案1】:

    原来我无法将构建代理作为 Windows 服务运行。我必须在控制台中运行它。一旦我这样做了,问题就解决了。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-25
    • 2012-06-24
    • 2020-08-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-09
    相关资源
    最近更新 更多