Selenium IDE - MalformedURLException when running from command line

191 views
Skip to first unread message

jap...@gmail.com

unread,
Oct 20, 2016, 11:42:32 AM10/20/16
to Selenium Users
Hello,

I have created a test suite using Selenium IDE and I am trying to run it from the command line, but I get a "MalformedULException: unknown protocol: c" error. After i run the command, the browser opens and closes right after that. 

This is the command I use: 

java -jar selenium-html-runner-3.0.1.jar -htmlSuite "*firefox" "https://my.page.pl" "c:\projects\selenium\update_v_suite_old.html" "c:\projects\selenium\result.html"

and this is part of the log I see:


1476971721559   Marionette      INFO    startBrowser 35b486c7-d9ed-4ab0-870a-a07d9cd47768
1476971721587   Marionette      INFO    sendAsync 35b486c7-d9ed-4ab0-870a-a07d9cd47768
pa
č 20, 2016 3:55:21 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO
: Detected dialect: W3C
1476971721956   addons.xpi      DEBUG   Calling bootstrap method shutdown on e10srollout@mozilla.org version 1.1
1476971721957   addons.xpi      DEBUG   Calling bootstrap method shutdown on firefox@getpocket.com version 1.0.4
1476971721957   addons.xpi      DEBUG   Calling bootstrap method shutdown on loop@mozilla.org version 1.4.4
pa
č 20, 2016 3:55:22 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:108)
        at org
.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
        at org
.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)


I use Selenium IDE 2.9.1, Firefox 49.0.1, selenium-html-runner-3.0.1, Java v8u112.

I'm not much of a programmer, so could anybody please help me in as simple way as possible?

Greetings!
Jadzia
Reply all
Reply to author
Forward
0 new messages