我正在尝试运行我的selenium测试套件,作为使用巡航控制的持续集成过程的一部分。
exec workingdir="projects/AtomWeb/trunk/seleniumTest/bin/debug"
command="nunit-console"
args="seleniumTest.dll"/> 问题是我得到了以下错误消息。
SetUp : System.InvalidOperationException : Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)但是,当我使用以下命令通过构建机器上的控制台运行它时,它工作得很好。
nunit-console seleniumTest.dll对于为什么它不能作为构建过程的一部分,有什么想法吗?
发布于 2011-09-06 22:06:10
CruiseControl运行Selenium服务器的用户可能与您从控制台运行它时使用的用户不同。这意味着Internet Explorer使用的是其他用户的首选项,该首选项可能未正确设置。因为这就是错误消息试图告诉你的--你的IE设置不正确。
https://stackoverflow.com/questions/7314157
复制相似问题