Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium &引用;启动Internet Explorer时出现意外错误…“;来自巡航控制系统的硒测试运行_Selenium_Cruisecontrol - Fatal编程技术网

Selenium &引用;启动Internet Explorer时出现意外错误…“;来自巡航控制系统的硒测试运行

Selenium &引用;启动Internet Explorer时出现意外错误…“;来自巡航控制系统的硒测试运行,selenium,cruisecontrol,Selenium,Cruisecontrol,我正在尝试运行selenium测试套件,作为使用巡航控制的持续集成过程的一部分 exec workingdir="projects/AtomWeb/trunk/seleniumTest/bin/debug" command="nunit-console" args="seleniumTest.dll"/> 问题是我收到了以下错误消息 SetUp : System.InvalidOperationException : Unexpe

我正在尝试运行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

关于为什么它不能作为构建过程的一部分工作,有什么想法吗?

CruiseControl可能是在不同的用户下运行Selenium服务器,而不是在控制台上运行它。这意味着Internet Explorer使用的是不同用户的首选项,可能设置不正确。因为这正是错误消息试图告诉您的——您的IE设置不正确。

我发现了基本相同的问题。看见