Error using Selenium Html Runner 3.4.0

276 views
Skip to first unread message

Albert Ruthnik

unread,
Jun 4, 2017, 12:26:09 AM6/4/17
to Selenium Users
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:15443
1496503517463    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>


Brian Walker

unread,
Jun 23, 2017, 12:46:35 AM6/23/17
to Selenium Users
Hell,  Did you ever find a resolution to this?  I don't get any output after the "Multi-window mode..." error. 
Ubuntu 16.04

Thanks.

Simon Stewart

unread,
Jun 26, 2017, 11:43:45 AM6/26/17
to seleniu...@googlegroups.com
Just noticed this. I'll see if I can figure out what's going on. Is there an issue in the tracker for it?

Simon

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/61202b2f-da7e-42db-9a02-76b9e6905399%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

mark collins-cope

unread,
Jul 9, 2017, 12:33:07 AM7/9/17
to Selenium Users
Hello,

I'm fighting this issue as I type (or very similar).
I have got to the point where my test suite is loaded in FF, then it all dies.

Command line:
java -jar /home/mark/selenium/selenium-html-runner-3.4.0.jar -htmlSuite *firefox http://127.0.0.1:3069 /home/mark/GIT/DA/rt-views//payment-api.rtv/testPayment.html /home/mark/out.html

Any assistance really appreciated!

*** Debug Output
Multi-window mode is longer used as an option and will be ignored.
1499517144901 geckodriver INFO Listening on 127.0.0.1:26275
1499517145097 mozprofile::profile INFO Using profile path /tmp/rust_mozprofile.TBI6buWlysAs
1499517145098 geckodriver::marionette INFO Starting browser /usr/lib/firefox/firefox
1499517145099 geckodriver::marionette INFO Connecting to Marionette on localhost:41451
1499517145715 Marionette WARN Deprecated preference marionette.defaultPrefs.enabled detected, please use marionette.enabled
1499517149348 Marionette INFO Listening on port 41451
Jul 08, 2017 1:32:29 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2017-07-08 13:32:30.071:INFO::main: Logging initialized @5842ms to org.seleniumhq.jetty9.util.log.StdErrLog
2017-07-08 13:32:30.175:INFO:osjs.Server:main: jetty-9.4.z-SNAPSHOT
2017-07-08 13:32:30.210:INFO:osjsh.ContextHandler:main: Started o.s.j.s.h.ContextHandler@7c9d8e2{/tests,null,AVAILABLE}
2017-07-08 13:32:30.233:INFO:osjs.AbstractConnector:main: Started ServerConnector@58060228{HTTP/1.1,[http/1.1]}{0.0.0.0:7918}
2017-07-08 13:32:30.237:INFO:osjs.Server:main: Started @6008ms
2017-07-08 13:32:30.992:INFO:osjs.AbstractConnector:main: Stopped ServerConnector@58060228{HTTP/1.1,[http/1.1]}{0.0.0.0:7918}
2017-07-08 13:32:30.993:INFO:osjsh.ContextHandler:main: Stopped o.s.j.s.h.ContextHandler@7c9d8e2{/tests,null,UNAVAILABLE}
1499517150999 Marionette INFO New connections will no longer be accepted
Jul 08, 2017 1:32:31 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNING: 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: 'lenovo', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-83-generic', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=/tmp/rust_mozprofile.TBI6buWlysAs, 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=54.0, platformVersion=4.4.0-83-generic, moz:processID=24506.0, browserName=firefox, javascriptEnabled=true, platformName=linux}]
Session ID: 8fd1bf70-704e-4933-be37-b1ac032b6e37
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)



guillaumemu...@gmail.com

unread,
Oct 3, 2017, 10:18:31 PM10/3/17
to Selenium Users
The error is :
 TypeError: document.body is undefined

In my case it was due to the fact that my test files were nammed xxx.xml. Renamming them to xxx.html was sufficient.

Maybe you have a similar problem (have you checked the HTML validity in a good code/text editor?)
Reply all
Reply to author
Forward
0 new messages