我已经阅读了如何使用 selenium-server RC 执行 selenium IDE testcase.html。这是我的设置方式...
C:\Selenium_Server\selenium-server.jar
C:\Scripts\Q2Nightly.html
如果我打开 Firefox 并使用 Selenium IDE 打开测试用例,它将运行良好。从命令行执行它对我不起作用,我需要它作为自动批处理文件的一部分。
这是我正在使用的命令:
java.exe -jar C:\selenium_server\selenium-server.jar -htmlSuite "*firefox" "http://127.0.0.1" "c:\Scripts\Q2Nightly.html" "c:\Scripts\results-firefox.html" -port 5555
命令输出
Apr 14, 2013 11:32:33 AM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
11:32:34.661 INFO - Java: Sun Microsystems Inc. 20.9-b04
11:32:34.662 INFO - OS: Windows 7 6.1 x86
11:32:34.667 INFO - v2.32.0, with Core v2.32.0. Built from revision 6c40c18
11:32:34.731 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:5555/wd/hub
11:32:34.732 INFO - Version Jetty/5.1.x
11:32:34.732 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
11:32:34.733 INFO - Started HttpContext[/selenium-server,/selenium-server]
11:32:34.733 INFO - Started HttpContext[/,/]
11:32:34.755 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@1833955
11:32:34.756 INFO - Started HttpContext[/wd,/wd]
11:32:34.758 INFO - Started SocketListener on 0.0.0.0:5555
11:32:34.758 INFO - Started org.openqa.jetty.jetty.Server@e4f972
jar:file:/C:/Selenium_Server/selenium-server.jar!/customProfileDirCUSTFFCHROME
11:32:34.857 INFO - Preparing Firefox profile...
11:32:36.008 INFO - Launching Firefox...
11:32:36.967 INFO - Checking Resource aliases
打开的两个 Firefox 窗口的屏幕截图:
在这之后什么也没有发生。测试用例没有执行,甚至手动运行按钮也不起作用。有人可以帮忙吗?