C# 第一个测试用例在SeleniumWebDriver测试套件运行中总是失败

C# 第一个测试用例在SeleniumWebDriver测试套件运行中总是失败,c#,selenium,webdriver,nunit,C#,Selenium,Webdriver,Nunit,在以持续集成方式运行的Nunit测试套件中,每次第一个测试用例失败时,都会出现以下错误: SetUp : OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:7055/hub/session/384a1a60-4ed3-4cac-8143-265aa63ec980/url timed out after 60 seconds.

在以持续集成方式运行的Nunit测试套件中,每次第一个测试用例失败时,都会出现以下错误:

SetUp : OpenQA.Selenium.WebDriverException : The HTTP request to the remote WebDriver server for URL http://localhost:7055/hub/session/384a1a60-4ed3-4cac-8143-265aa63ec980/url timed out after 60 seconds.
 ----> System.Net.WebException : The operation has timed out
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.]]>
该服务器有Windows8服务器和Mozilla firefox V21

代码是:

#region TestSetup
[SetUp]
public void Setup()
{
    browser = ConfigurationHelper.GetWebDriver();
    browser.Navigate().GoToUrl(ConfigurationHelper.GetConsumerBankingURL());
    browser.Manage().Window.Maximize();
    loginPage = new LoginPage(browser);
    user = VoyagerHelper.EnrollUser();
    //The user should be able to successfully logged into the system. The default destination page shows up
    financialOverviewPage = loginPage.Login(user.UserName, ConfigurationBase.DefaultPassword) as FinancialOverviewPage;
    accountNumbers = financialOverviewPage.GetAccountNumber();
}
#endregion

#region TestTearDown

[TearDown]
public void TearDown()
{
    try
    {
        financialOverviewPage.Logout();
    }
    finally
    {
        browser.Quit();
    }
}
#endregion

没有足够的信息。发布完整的堆栈跟踪,并提供一份您的
TearDown
代码的副本。其中有
null
,我们根本不知道它是什么,因为您没有向我们显示任何内容。请附上您尝试运行的代码。确保所有声明的变量都已正确初始化。这可以是任何变量。哪一行抛出错误?设置区域抛出错误设置:OpenQA.Selenium.WebDriverException:向远程WebDriver服务器请求URL的HTTP请求在60秒后超时。