Selenium webdriver teamcity测试可以忽略的原因

Selenium webdriver teamcity测试可以忽略的原因,selenium-webdriver,continuous-integration,teamcity,Selenium Webdriver,Continuous Integration,Teamcity,TeamCity上有一些工作,有时会随机忽略其中的一些测试 我有这个记录 [TestSuite] com.aero.mai.ui.app.setup.settingsTest.closeBrowser org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died. 有什么建议可以解释为什么会发生这种情况吗?测试中没有依赖于其他测试。您的浏览器

TeamCity上有一些工作,有时会随机忽略其中的一些测试

我有这个记录

 [TestSuite] com.aero.mai.ui.app.setup.settingsTest.closeBrowser

    org.openqa.selenium.WebDriverException: Error communicating with the remote browser. It may have died.

有什么建议可以解释为什么会发生这种情况吗?测试中没有依赖于其他测试。您的浏览器似乎已经关闭,或者在您的代码中,您可能丢失了浏览器实例或其他内容。如果您调试您的测试用例并在调用
closeBrowser
之前检查您的驱动程序是否处于活动状态,这将是一件好事?i、 e.输入此方法后,驱动程序实例将持续存在。