0
3つのテストサーバー、IE、Chrome、Firefoxを作成しました。 TeamCityでは、3つのビルド設定IE、Chrome、Firefoxを作成しました。 私は3つのAgentIE、AgentChrome、AgentFirefoxを持っています。チームシティで実行しているときにChromeDriver.exeが存在しません
各エージェントは、コンフィギュレーションIEを構築する特定のビルド構成例に割り当てるである私はビルド設定のFirefoxを実行すると、すべてのテストが実行されますが、私はビルドの設定IEとChromeのテストを実行したときに実行されません
をAgentIEすることです。 エラーメッセージは、IEとChromeのexeファイルが存在しないことを示していますが、exeファイルがディレクトリとPATH環境変数のディレクトリに存在することを示しています。
MSTestを]
Framework.FeatureFiles.AdditionalFieldsFeature.CreateNewAdditionalField_0001 (Create New Additional Field: 0001)
[10:35:53][Framework.FeatureFiles.AdditionalFieldsFeature.CreateNewAdditionalField_0001 (Create New Additional Field: 0001)] Assembly Initialization method Framework.BaseClasses.Base.InitWebdriver threw exception. OpenQA.Selenium.DriverServiceNotFoundException: OpenQA.Selenium.DriverServiceNotFoundException: The chromedriver.exe file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html.. Aborting test execution.
[10:35:53][Framework.FeatureFiles.AdditionalFieldsFeature.CreateNewAdditionalField_0001 (Create New Additional Field: 0001)] at OpenQA.Selenium.DriverService.FindDriverServiceExecutable(String executableName, Uri downloadUrl)
at OpenQA.Selenium.Chrome.ChromeDriverService.CreateDefaultService()
at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeOptions options)
at Framework.BaseClasses.Base.GetChromeDriver() in C:\TeamCity\buildAgent\work\eba5cd3c0056fc6a\Framework\BaseClasses\Base.cs:line 61
at Framework.BaseClasses.Base.InitWebdriver(TestContext tc) in C:\TeamCity\buildAgent\work\eba5cd3c0056fc6a\Framework\BaseClasses\Base.cs:line 84
私はチームシティー・サーバ上で実行されているエージェントのクロームビルド構成を実行する場合、テストが実行されます。