“启动 Internet Explorer 时出现意外错误...”来自巡航控制硒测试运行
我正在尝试运行我的硒测试套件,作为使用巡航控制的持续集成过程的一部分。
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
关于为什么它不能作为构建过程的一部分的任何想法?
I am attempting to run my selenium test suite as part of a continues integration process using cruise control.
exec workingdir="projects/AtomWeb/trunk/seleniumTest/bin/debug"
command="nunit-console"
args="seleniumTest.dll"/>
The problem is I get the following error message.
SetUp : System.InvalidOperationException : Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)
However when I run this though the console on the build machine with the following command it works fine.
nunit-console seleniumTest.dll
Any ideas as to why it wont work as part of the build process?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CruiseControl 可能在与从控制台运行时不同的用户下运行 Selenium 服务器。这意味着 Internet Explorer 正在使用不同的用户首选项,该首选项可能设置不正确。因为这就是该错误消息试图告诉您的内容 - 您的 IE 设置不正确。
CruiseControl is probably running the Selenium server under a different user than when you run it from the console. Which means Internet Explorer is using a different user's preferences, which may not be set up correctly. Because that's what that error message is trying to tell you - your IE setup is incorrect.