Selenium Grid演示测试用例失败 [英] Selenium Grid Demo Test cases fail

查看:151
本文介绍了Selenium Grid演示测试用例失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用硒网格进行自动化测试.我已经按照官方文件安装了网格.但是在运行run-demo-in-parallel之后,测试盒失败,并在目标文件夹中出现以下错误.

I am using selenium grid for automated testing. I have followed the official documents to install the grid. But after running the run-demo-in-parallel, the test casses fail with the following error in the target folder.

Parameter #1    Parameter #2    Parameter #3    Parameter #4
localhost   4444    *firefox    http://images.google.com

**Could not contact Selenium Server; have you started it on 'localhost:4444'** ?
 Read       more at http://seleniumhq.org/projects/remote-control/not-started.html   Connection refused: connect
 com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:86)
 at    com.thoughtworks.selenium.grid.tools.ThreadSafeSeleniumSessionStorage.startSeleniumSession(ThreadSafeSeleniumSessionStorage.java:26)at com.thoughtworks.selenium.grid.demo.WebTestForASingleBrowser.domme(WebTestForASingleBrowser.java:51)

您能告诉我这个问题是什么吗? 我正在使用Windows7机器. 使用Java JDK和JRE 1.6.硒版本1.0.8.硒独立服务器-2.5.0. 我还能提供更多信息吗?

Can you please tell me what the issue can be ? I am using a windows7 machine. With java jdk and jre 1.6. Selenium version 1.0.8 . Selenium stand alone server -2.5.0. Is there any more information i can give ?

推荐答案

打开taskmanager,查看是否存在名称为java.exe或javaw.exe的进程正在运行,如果不是这种情况,则您的Sel Grid尚未尚未开始.请打开(双击)selenium-server-standalone-2.5.0.jar文件,然后再次运行statup taskmanager,并确保您的网格已启动并正在运行,然后尝试.

open up taskmanager and see if there is a process with the name java.exe or javaw.exe running if that is not the case then your Sel Grid has not yet been started. Please open (double click) the selenium-server-standalone-2.5.0.jar file then again statup taskmanager and make sure your grid is up and running and then try.

如果进程未启动,则可能是由于某些原因您的网格无法启动,我建议打开命令提示符窗口并运行以下命令:

if the process is nt started It might be the case that your grid is not able to start to some reason I would suggest opening up a command prompt window and run the following command:

java -jar selenium-server-standalone-2.5.0.jar -role hub

注意:您需要位于jar文件所在的目录中,以上命令才能起作用,否则cmd会抛出错误,提示找不到文件

Note: You need to be in the directory where the jar file is for the above command to work else cmd will throw an error saying file not found

如果需要更多帮助,请告诉我.

Please let me know if you need more help.

这篇关于Selenium Grid演示测试用例失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆