Im trying to run a previously recorded test suite from the command line.
It throws a long and absolutely non-understandable error. Please see below.
The log-directory /fritzbox_test.out/ is empty.
Can anybody help?
Thanks in advance.
OS: Linux Mint 17.2
Command: java -jar selenium-html-runner-3.4.0.jar -htmlSuite "*firefox"
http://fritz.box/ ./fritzbox_test.suite fritzbox_test.out
Output from command line:
Multi-window mode is longer used as an option and will be ignored.
1496503517014 geckodriver INFO Listening on
127.0.0.1:154431496503517463 geckodriver::marionette INFO Starting browser /usr/lib/firefox/firefox with args ["-marionette"]
(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(firefox:26569): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(firefox:26569): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1496503525242 Marionette INFO Listening on port 45795
(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed
(/usr/lib/firefox/firefox:26630): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
Jun 03, 2017 5:25:26 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C
2017-06-03 17:25:26.279:INFO::main: Logging initialized @11905ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-06-03 17:25:26.406:INFO:osjs.Server:main: jetty-9.4.z-SNAPSHOT
2017-06-03 17:25:26.449:INFO:osjsh.ContextHandler:main: Started o.s.j.s.h.ContextHandler@70325e14{/tests,null,AVAILABLE}
2017-06-03 17:25:26.505:INFO:osjs.AbstractConnector:main: Started ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{
0.0.0.0:19701}
2017-06-03 17:25:26.506:INFO:osjs.Server:main: Started @12132ms
2017-06-03 17:25:27.711:INFO:osjs.AbstractConnector:main: Stopped ServerConnector@291caca8{HTTP/1.1,[http/1.1]}{
0.0.0.0:19701}
2017-06-03 17:25:27.713:INFO:osjsh.ContextHandler:main: Stopped o.s.j.s.h.ContextHandler@70325e14{/tests,null,UNAVAILABLE}
1496503527721 Marionette INFO New connections will no longer be accepted
[Child 26630] WARNING: pipe error (3): Die Verbindung wurde vom Kommunikationspartner zurückgesetzt: file /build/firefox-McLvGS/[fGiFrXe1f-o]x:- 5R3e.c0e.i3v+el iInPuCx mcilnots1e+ rwoistah/ iprce/acshorno=mAibunmo/rsmracl/Schhrome/common/ipc_channel_posiutdown
x.cc, line 346
Jun 03, 2017 5:25:27 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNUNG: Test of browser failed: *firefox
org.openqa.selenium.JavascriptException: TypeError: document.body is undefined
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'XPS-L502X', ip: '127.0.1.1',
os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-119-generic', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.6TBkoHttl6ia, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=53.0.3, platformVersion=3.13.0-119-generic, moz:processID=26569.0, browserName=firefox, javascriptEnabled=true, platformName=linux}]
Session ID: b1b9f58a-d08e-415c-bbc0-838fba52b474
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:150)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:115)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:45)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
at org.openqa.selenium.server.htmlrunner.CoreTestCase.getLoggableTests(CoreTestCase.java:83)
at org.openqa.selenium.server.htmlrunner.CoreTestCase.run(CoreTestCase.java:64)
at org.openqa.selenium.server.htmlrunner.CoreTestSuite.run(CoreTestSuite.java:73)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:120)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)
Contents of suite-file fritzbox_test.suite:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="fritzbox_test.case">fritzbox_test</a></td></tr>
</tbody></table>
</body>
</html>
Contents of case-file fritzbox_test.case:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="
http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="
http://fritz.box/" />
<title>fritzbox_test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">fritzbox_test</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=uiPass</td>
<td>password</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=submitLoginBtn</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=blueBarUserMenuIcon</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=logout</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>