Selenium 3 beta 4 html runner exceptions [Linux]

281 views
Skip to first unread message

GeoChris[Dev]

unread,
Oct 7, 2016, 4:37:49 AM10/7/16
to Selenium Users
Hello all,

while trying selenium-html-runner-3.0.0-beta4.jar with a simple test suite:
$ java -jar selenium-html-runner-3.0.0-beta4.jar -htmlSuite "*chrome" "http://www.google.com" selTest.html myresults.html

I receive an exception like this :
Exception in thread "main" java.lang.NullPointerException
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.validateArgs(HTMLLauncher.java:261)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:218)
    at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)

Any ideas?

For full info please see my gist

RandomTester

unread,
Oct 13, 2016, 6:55:09 AM10/13/16
to Selenium Users
I have the exact same problem and to be honest it sucks that there is no documentation about this.
If anyone has a solution for this: please share it with us.

Simon Stewart

unread,
Oct 14, 2016, 4:58:21 AM10/14/16
to seleniu...@googlegroups.com
It would be really useful to have a reproducible test case that causes this. Can you please file an issue on GitHub? With the example test?

Also, which docs would you like? We did our best to make this work with the same command line flags and output results in the same way, so the expectation is that the existing docs about how to run this will still be valid. 

Kind regards,

Simon

Sent from my iPhone
--
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-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/f4af16bc-ff45-4e13-825f-32b7428e9f36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

RandomTester

unread,
Oct 17, 2016, 3:22:28 AM10/17/16
to Selenium Users
Hi!

My Testsuite looks pretty identical to what GeoChris posted in the first post.
Gist: https://gist.github.com/gchr/300a16b0b3b5271247609a28b2e98a1f

When I use an old selenium server standalone (e.g. v 2.40.0) and run this command:
java -jar selenium-server-standalone-2.40.0.jar -htmlSuite *firefox http://www.google.de Testsuite.html out.html
--> Firefox will start / but since the version is to new it wont work properly.

But when I use selenium-html-runner-3.0.0.jar instead I get:

Exception in thread "main" java.lang.NullPointerException
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.validateArgs(HTMLLauncher.java:261)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:218)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)

I have the jar, the geckodriver/chromedriver the Testsuite.html and Testcase.html in one folder.

I tried different ' and " surroundings but the test wont start.
Maybe I'm having some basic understanding errors and the command is wrong but I can't find any help :/

The java -jar selenium-html-runner-3.0.0.jar -help command shows me this:
  * -htmlSuite
       Run an HTML Suite: '*browser' 'http://baseUrl.com'
       'path\to\HTMLSuite.html' 'c:\absolute\path\to\my\results.html'

I also used absolut path to the results.html but this also did not change anything.

Any help :(?

GeoChris[Dev]

unread,
Nov 8, 2016, 10:57:47 AM11/8/16
to Selenium Users
Hello Simon,

meanwhile the official 3.0.1 is out.
Problems and exceptions persist, though.

I filed an issue in github

Thanks
Reply all
Reply to author
Forward
0 new messages