Joe_DuBois
17 years agoOccasional Contributor
Unknown Protocol: C (testrunner.bat)
Trying to run my Project/tests from the command line (to make sure it runs before I integrate it with Maven).
I am using the following command:
testrunner.bat -hlocalhost:8080 -a -fresults C:\workplace\work\Testing\soapUI\OraderWS-soapui-project.xml
The test runs perfect fine from the IDE/GUI. I have re-saved the project, just to make sure it was the latest project file.
Output from running command:
C:\Utils\soapui\bin>testrunner.bat -hlocalhost:8080 -a -fresults C:\workplace\work\Testing\soapUI\OraderWS-soapui-projec
t.xml
soapUI 2.5 TestCase Runner
Configuring log4j from [C:\Utils\soapui\bin\soapui-log4j.xml]
12:58:49,759 INFO [SoapUI] Added [file:/C:/Utils/soapui/bin/ext/ojdbc14.jar] to classpath
12:58:50,400 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Utils\soapui\bin\soapui-settings.xml]
12:58:52,431 ERROR [SoapUI] An error occured [unknown protocol: c], see error log for details
java.net.MalformedURLException: unknown protocol: c
at java.net.URL.(URL.java:574)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at com.eviware.soapui.impl.wsdl.WsdlProject.(WsdlProject.java:181)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:29)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:12)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:241)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:118)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:70)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:92)
12:58:52,634 ERROR [SoapUITestCaseRunner] java.lang.Exception: Failed to load soapUI project file [C:\workplace\work\Tes
ting\soapUI\OraderWS-soapui-project.xml]
12:58:52,634 ERROR [SoapUI] An error occured [Failed to load soapUI project file [C:\workplace\work\Testing\soapUI\Orade
rWS-soapui-project.xml]], see error log for details
java.lang.Exception: Failed to load soapUI project file [C:\workplace\work\Testing\soapUI\OraderWS-soapui-project.xml]
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:244)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:118)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:70)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:92)
I am using the following command:
testrunner.bat -hlocalhost:8080 -a -fresults C:\workplace\work\Testing\soapUI\OraderWS-soapui-project.xml
The test runs perfect fine from the IDE/GUI. I have re-saved the project, just to make sure it was the latest project file.
Output from running command:
C:\Utils\soapui\bin>testrunner.bat -hlocalhost:8080 -a -fresults C:\workplace\work\Testing\soapUI\OraderWS-soapui-projec
t.xml
soapUI 2.5 TestCase Runner
Configuring log4j from [C:\Utils\soapui\bin\soapui-log4j.xml]
12:58:49,759 INFO [SoapUI] Added [file:/C:/Utils/soapui/bin/ext/ojdbc14.jar] to classpath
12:58:50,400 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Utils\soapui\bin\soapui-settings.xml]
12:58:52,431 ERROR [SoapUI] An error occured [unknown protocol: c], see error log for details
java.net.MalformedURLException: unknown protocol: c
at java.net.URL.
at java.net.URL.
at java.net.URL.
at com.eviware.soapui.impl.wsdl.WsdlProject.
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:29)
at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:12)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:241)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:118)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:70)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:92)
12:58:52,634 ERROR [SoapUITestCaseRunner] java.lang.Exception: Failed to load soapUI project file [C:\workplace\work\Tes
ting\soapUI\OraderWS-soapui-project.xml]
12:58:52,634 ERROR [SoapUI] An error occured [Failed to load soapUI project file [C:\workplace\work\Testing\soapUI\Orade
rWS-soapui-project.xml]], see error log for details
java.lang.Exception: Failed to load soapUI project file [C:\workplace\work\Testing\soapUI\OraderWS-soapui-project.xml]
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:244)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:118)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:70)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:92)