Forum Discussion

Finan's avatar
Finan
Frequent Contributor
15 years ago

Error when performing tests via testrunner.bat

Hi,

When I run a testsuite via the soapUI gui, it runs without errors/ fails.
When I run the same testsuite via the testrunner.bat I see the following error in the log:

[exec] java.net.MalformedURLException: no protocol:
[exec] at java.net.URL.<init>(Unknown Source)
[exec] at java.net.URL.<init>(Unknown Source)
[exec] at java.net.URL.<init>(Unknown Source)
[exec] at com.eviware.soapui.impl.wsdl.endpoint.DefaultEndpointStrategy.filterRequest(DefaultEndpointStrategy.java:164)
[exec] at com.eviware.soapui.impl.wsdl.submit.filters.EndpointStrategyRequestFilter.filterRequest(EndpointStrategyRequestFilter.java:35)
[exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:133)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
[exec] at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:236)
[exec] at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:324)
[exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:207)
[exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:138)
[exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:39)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
[exec] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[exec] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
[exec] at java.util.concurrent.FutureTask.run(Unknown Source)
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[exec] at java.lang.Thread.run(Unknown Source)
[exec] 08:43:14,785 INFO [SoapUIProTestCaseRunner] Assertion [SOAP Response] has status VALID
[exec] 08:43:14,786 INFO [SoapUIProTestCaseRunner] Assertion [Not SOAP Fault] has status VALID

But the testsuite completes without failed testcases.

The configuration of the project is like this:
Project, with property "url" (containing the endpoint for the webservice)
WebService, with endpoint: ${#TestCase#url}
-TestSuite 1
- TestCase 1 with property "url"
- TestStep 1 with endpoint: ${#TestCase#url}
-TestSuite 2
- TestCase 1 with property "url": ${#Project#env}
- TestStep 1 (run testcase 1.1) with property url: ${#TestCase#url}


This setup allows us create a default testcase with a complex flow of testcases,
And then creating a testsuite with testcases that have only one teststep which runs the default testcase with different properties.
Are the errors just logs or is something incorrect in our setup/in soapUI?

12 Replies

  • Hi Kevin,

    digging some more I found that there is an endpoint somewhere in your project set to ${#Project#StephensEndpoint}, this evaluates to an empty string which gives the error. This is related how soapUI processes endpoints internally, so I'm going to hide this exception for now, as it doesn't really make any sense at this level; if the actual endpoint used is wrong there will be other exceptions down the line.

    regards!

    /Ole
    eviware.com
  • kmassagli's avatar
    kmassagli
    Occasional Contributor
    Thanks Ole!

    It was a very large project file and there was a reference to invalid endpoint way down toward the end of the file. Much appreciated for taking a look.... And for hiding this exception, as it was invalidating all the endpoints (even the good endpoint references).

    -Kevin