Selenium Grid 会在 NAnt(不是 Ant)下运行吗?
我正在尝试让 Selenium Grid 使用 NAnt 运行,但我有点迷失,因为我能找到的所有解释都使用 Ant - 尽管我认为它们非常相似,但我似乎无法在本地 PC 上启动 Selenium Grid方式。
这是我找到的 Selenium Grid 在线页面的 URL,但它们引用了 Ant...
...引导
I am trying to get Selenium Grid to run using NAnt but am a little lost, as all explanations I can find use Ant - although I thought they were fairly similar, I can't seem to fire off Selenium Grid on my local PC in this way.
Here's the URLs to the Selenium Grid pages online that I've found, but they refer to Ant...
...leading on to
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 Selenium 网格页面:
AFAIK NAnt 设计用于.Net,而不是 Java,所以我认为最好的选择是按照说明安装 Ant、Java 1.5 和 Selenium Grid,然后使用 NAnt 执行任务。
From the Selenium Grid page:
AFAIK NAnt is designed to work with .Net, not Java, so I think your best bet is to install Ant, Java 1.5 and Selenium Grid per the instructions, then invoke the ant task with a NAnt exec task.
这很容易:
启动 hub:
启动 rc:
或简单地从命令行:
java -jar D:\work\SeleniumDesign\build_artifacts\artifacts\continuous\source_tools\selenium\selenium-grid-hub-standalone-1.0.4.jar
和
java -classpath D:\work\SeleniumDesign\build_artifacts\artifacts\连续\source_tools\selenium\selenium-server.jar;D:\work\SeleniumDesign\build_artifacts\artifacts\连续\source_tools\selenium\selenium-grid-remote-control -standalone-1.0.4.jar com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher
it is easy:
start hub:
start rc:
or simply from command line:
java -jar D:\work\SeleniumDesign\build_artifacts\artifacts\continuous\source_tools\selenium\selenium-grid-hub-standalone-1.0.4.jar
and
java -classpath D:\work\SeleniumDesign\build_artifacts\artifacts\continuous\source_tools\selenium\selenium-server.jar;D:\work\SeleniumDesign\build_artifacts\artifacts\continuous\source_tools\selenium\selenium-grid-remote-control-standalone-1.0.4.jar com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher