【发布时间】:2019-06-05 17:57:06
【问题描述】:
我试图通过从 cmd 调用 debug dll 来运行测试用例,但由于我在日志文件中发现一个错误,所有测试都失败了:
测试方法 SeleniumUnitTest.SearchTests.SearchByProviderLocationTest 抛出 例外: OpenQA.Selenium.DriverServiceNotFoundException:IEDriverServer.exe 文件不存在于当前目录或 PATH 环境变量中的目录。司机可以 下载于 http://selenium-release.storage.googleapis.com/index.html.
说 IEDriverServer.exe 不存在,但驱动程序已经在 DLL 目录中......我从 Visual Studio 运行单元测试时也没有问题。
我运行的命令是:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\mstest.exe" /testcontainer:"C:\Users\John\Source\Repos\APP\Src\App.TestSelenium\bin\Debug\App.TestSelenium.dll"
有什么想法吗?
谢谢。
【问题讨论】:
标签: c# selenium internet-explorer testing