当我通过此命令启动selenese时:
java -jar selenese-runner.jar -d chrome --chromedriver chromedriver.exe -b http://localhost:8080 C:\ Trunk \ src \ selenium \ suiteTest
我收到此错误:
[2017-11-30 11:02:36.722 +01:00] [ERROR]jp.vmi.selenium.selenese.SeleneseRunnerRuntimeException: No such command: Build info: version: '3.5.3', revision: 'unknown', time: 'unknown' System info: host: 'WALOX', ip: '10.1.85.3', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version:'1.8.0_121'
我在包含selenese-runner.jarv3.8.0和chromeDriver.exe v2.33.506120的文件夹中启动它
这是所有堆栈以防万一:
[2017-11-30 11:02:33.218 +01:00] [INFO] Start: Selenese Runner 3.8.0
Starting ChromeDriver 2.33.506120 (e3e53437346286c0bc2d2dc9aa4915ba81d9023f) on port 12619
Only local connections are allowed.
[2017-11-30 11:02:36.293 +01:00] [INFO] Detected dialect: OSS
[2017-11-30 11:02:36.300 +01:00] [INFO] Initial window size: system default
[2017-11-30 11:02:36.300 +01:00] [INFO] Initialized: ChromeDriver
[2017-11-30 11:02:36.308 +01:00] [INFO] Override base URL: http://localhost:8080
[2017-11-30 11:02:36.313 +01:00] [INFO] Timeout: 30000 ms
[2017-11-30 11:02:36.674 +01:00] [INFO] Start: TestSuite[suiteTest] (C:\Trunk\src\selenium\suiteTest)
[2017-11-30 11:02:36.712 +01:00] [INFO] Existing driver found.
[2017-11-30 11:02:36.720 +01:00] [INFO] Current speed: 0 ms/command
[2017-11-30 11:02:36.722 +01:00] [ERROR] jp.vmi.selenium.selenese.SeleneseRunnerRuntimeException: No such command:
Build info: version: '3.5.3', revision: 'unknown', time: 'unknown'
System info: host: 'WALOX', ip: '10.1.85.3', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
Driver info: driver.version: unknown
[2017-11-30 11:02:36.724 +01:00] [INFO] End(0,000sec): TestSuite[suiteTest] (C:\Trunk\src\selenium\suiteTest)
[2017-11-30 11:02:36.724 +01:00] [INFO] Exit code: 3
[2017-11-30 11:02:37.430 +01:00] [INFO] Quit: ChromeDriver
我看了网。看来我是这个世界上唯一有这个错误的人。我不知道了!
答案 0 :(得分:0)
分辨
事实上它真是太愚蠢了!我在firefox上使用Selenium IDE来编写测试,并在最后添加了一个空命令行,在生成的HTML中生成一个空条目: <tr>
<td></td>
<td></td>
<td></td>
</tr>
这使得脚本在此错误上失败了!