RuntimeException:无法启动 Selenium 会话:内部服务器错误
我正在尝试使用硒检测空中碰撞问题(同时编辑)。
因此,我使用以下(超类)启动一个selenium会话A
selenium = new MASSelenium(serverHost, serverPort, *iexplore, browserURL);
selenium.start();
selenium.open("index.cgi");
,然后尝试启动一个不同的selenium会话B,指向超类(子类)中的不同浏览器:
selenium2 = new MASSelenium(getServerHost(), getServerPort(), *firefox, getBrowserURL());
selenium2.start();
selenium2.open("index.cgi");
它在我的本地计算机上运行良好(行为符合预期),但是当我在远程机器上运行相同的测试(使用bamboo构建工具),我得到这个异常:
java.lang.RuntimeException: Could not start Selenium session: Internal Server Error
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at gov.baba.arc.mas.selenium.tests.SimultaneousEditingConflictDetected.setUp(SimultaneousEditingConflictDetected.java:78)
Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server Error
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)
知道为什么会发生这种情况吗?
I am trying to detect a midair collision problem (simultaneous editin) using selenium.
So I start a selenium session A with following (Super Class)
selenium = new MASSelenium(serverHost, serverPort, *iexplore, browserURL);
selenium.start();
selenium.open("index.cgi");
then I try starting a different selenium session B pointing to a different browser from the superclass (Sub Class):
selenium2 = new MASSelenium(getServerHost(), getServerPort(), *firefox, getBrowserURL());
selenium2.start();
selenium2.open("index.cgi");
It works fine on my local machine (behaves as expected) but then when i run this same test on a remote machine (using bamboo build tool), i get this exception:
java.lang.RuntimeException: Could not start Selenium session: Internal Server Error
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at gov.baba.arc.mas.selenium.tests.SimultaneousEditingConflictDetected.setUp(SimultaneousEditingConflictDetected.java:78)
Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server Error
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)
Any idea why this is happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有同样的问题。 我通过升级bamboo runner上的Selenium本身(而不是驱动程序)解决了这个问题
I had the same Problem. I solved it by upgrading Selenium itself (not the driver) on the bamboo runner