help needed

26 views
Skip to first unread message

gold sandhu

unread,
Jan 19, 2018, 5:41:51 AM1/19/18
to Selenium Users
when I try to run below command :
java –jar selenium-server-standalone-3.8.1.jar –htmlsuite *firefox http://book.theautomatedtester.co.uk"C:\Users\hina\Desktop\TestPrep\Selenium Certification\Selenium tests\book\chapter 6\testsuite.html" "C:\Users\hina\Desktop\TestPrep\Selenium Certification\Selenium tests\book\chapter 6\result.html"

I receive below error: 

Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -htmlsuite

⇜Krishnan Mahadevan⇝

unread,
Jan 19, 2018, 5:53:10 AM1/19/18
to Selenium Users
You are using the wrong uber jar.

You should be downloading http://selenium-release.storage.googleapis.com/3.8/selenium-html-runner-3.8.1.jar and then running with this.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
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/a9de9444-7cfc-408e-9441-e4e0c83e174f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gold sandhu

unread,
Jan 19, 2018, 7:15:37 AM1/19/18
to Selenium Users
Hi thanks, this resolved my issue.
But now I get a new error as below. Please help.

C:\Users\x078861\Desktop\TestPrep\Selenium Certification>java -jar selenium-html-runner-3.8.1.jar -htmlsuite *firefox http://book.theautomatedtester.co.uk "C:\Users\x0788
Multi-window mode is longer used as an option and will be ignored.
1516363174363   geckodriver     INFO    geckodriver 0.19.1
1516363174426   geckodriver     INFO    Listening on 127.0.0.1:7146
1516363175546   mozrunner::runner       INFO    Running command: "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" "-marionette" "-profile" "C:\\Users\\x078861\\App
1516363186756   Marionette      INFO    Listening on port 58804
1516363187711   Marionette      WARN    TLS certificate errors will be ignored for this session
Jan 19, 2018 12:59:47 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
1516363188286   Marionette      INFO    New connections will no longer be accepted
Jan 19, 2018 12:59:49 PM org.openqa.selenium.server.htmlrunner.HTMLLauncher mainInt
WARNING: Test of browser failed: *firefox
java.net.MalformedURLException: unknown protocol: c
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.determineSuiteUrl(HTMLLauncher.java:186)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:107)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:253)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:281)

Thanks

On Friday, January 19, 2018 at 4:23:10 PM UTC+5:30, Krishnan Mahadevan wrote:
You are using the wrong uber jar.

You should be downloading http://selenium-release.storage.googleapis.com/3.8/selenium-html-runner-3.8.1.jar and then running with this.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

On Fri, Jan 19, 2018 at 4:11 PM, gold sandhu <janams...@gmail.com> wrote:
when I try to run below command :
java –jar selenium-server-standalone-3.8.1.jar –htmlsuite *firefox http://book.theautomatedtester.co.uk"C:\Users\hina\Desktop\TestPrep\Selenium Certification\Selenium tests\book\chapter 6\testsuite.html" "C:\Users\hina\Desktop\TestPrep\Selenium Certification\Selenium tests\book\chapter 6\result.html"

I receive below error: 

Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: -htmlsuite

--
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.

Krishnan Mahadevan

unread,
Jan 19, 2018, 7:43:37 AM1/19/18
to seleniu...@googlegroups.com

Try to paste the entire command in a notepad without any newlines and then try running it by copy pasting from note pad on to a command prompt.

 

The error seems to suggest that perhaps the uber jar is not able to parse the location of your suite file properly.

 

Thanks & Regards

Krishnan Mahadevan

 

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/

 

gold sandhu

unread,
Jan 19, 2018, 8:14:09 AM1/19/18
to Selenium Users
Thanks, it helped.
Reply all
Reply to author
Forward
0 new messages