尝试通过下面的Mstest命令运行自动化脚本,
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\mstest.exe"
/testcontainer:C:\Test\Release\Rainbow.TestAutomation.dll /test:"RS_VerifyTheLogin" /resultsfile:C:\Test\Release\TestResultLog.trx
内部,我的Mstest在 Out 文件夹中搜索文件,并得到如下所示的异常情况,
OpenQA.Selenium.DriverServiceNotFoundException:
The file C:\Test\Release\stan_12345 2018-12-10 06_38_57\Out\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html.
给我指路!