运行 使用 nunit-console 和 mono 的 selenium 测试
Running selenium test with nunit-console and mono
当我尝试使用 nunit-console 在我的 Ubuntu 服务器上 运行 我的测试时,我得到一个错误,因为他没有找到该文件。
System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/www/test/SeleniumTest/SeleniumTest/bin\Debug/SeleniumTest.dll"
我认为原因是反斜杠,但此文件是由 visual studio 生成的。
问题是由反斜杠引起的。 Ubuntu 无法识别路径。您可以尝试直接 运行 dll 而不是解决方案文件。应该没问题。
当我尝试使用 nunit-console 在我的 Ubuntu 服务器上 运行 我的测试时,我得到一个错误,因为他没有找到该文件。
System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/www/test/SeleniumTest/SeleniumTest/bin\Debug/SeleniumTest.dll"
我认为原因是反斜杠,但此文件是由 visual studio 生成的。
问题是由反斜杠引起的。 Ubuntu 无法识别路径。您可以尝试直接 运行 dll 而不是解决方案文件。应该没问题。