Forum Discussion

Deboro's avatar
Deboro
New Contributor
11 years ago

java.net.MalformedURLException: no protocol:

Hi, everybody.
I integrate the SoapUI tests with TeamCity.
I have the file of start of TestSpssProcessRun.sh
It looks so:
#!/bin/sh
echo "pathSoapUIDirectory" $pathSoapUIDirectory
echo "pathSoapUiProjectWithName" $pathSoapUiProjectWithName
echo "pathReportsDirectory" $pathReportsDirectory
echo "endPoint" $endPoint
$pathSoapUIDirectory/testrunner.sh -e$endPoint -s SpssProcessImplServiceTestSuite -r -I -j -f $pathReportsDirectory/TestSpssProcessReport -E Default $pathSoapUiProjectWithName


In TeamCity I use Build Sted - ComandLine.
As in TeamCity I set environment parameters:
pathSoapUIDirectory =/export/home/appuser/SmartBear/soapUI-Pro-4.5.1/bin
pathSoapUiProjectWithName = /export/home/appuser/teamcity/work/TestLinuxProject.xml
pathReportsDirectory = reports
endPoint = https://nba5.somedomain.ru:8444/cmws/SpssProcess


At dough start from TeamCity the mistake is given:

java.net.MalformedURLException: no protocol: /export/home/appuser/teamcity/work/TestLinuxProject.xml
at java.net.URL. <init> (Unknown Source)
at java.net.URL. <init> (Unknown Source)
at java.net.URL. <init> (Unknown Source)
at com.eviware.soapui.impl.wsdl.WsdlProject. <init> (WsdlProject.java:261)
at com.eviware.soapui.impl.wsdl.WsdlProjectPro. <init> (SourceFile:155)
at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew (SourceFile:32)
at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew (SourceFile:16)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner (SoapUITestCaseRunner.java:337)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run (AbstractSoapUIRunner.java:158)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine (AbstractSoapUIRunner.java:89)
at com.eviware.soapui.SoapUIProTestCaseRunner.main (SourceFile:58)
java.lang.Exception: Failed to load soapUI project file [/export/home/appuser/teamcity/work/TestLinuxProject.xml]
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner (SoapUITestCaseRunner.java:341)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run (AbstractSoapUIRunner.java:158)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine (AbstractSoapUIRunner.java:89)
at com.eviware.soapui.SoapUIProTestCaseRunner.main (SourceFile:58)
Process exited with code 255

I saw at a forum similar problems, but decisions to me didn't approach. I ask for help. Thanks in advance for the help.

1 Reply

  • Deboro's avatar
    Deboro
    New Contributor
    Have a nice day!
    I found the decision of the problem.
    I changed value variable pathSoapUiProjectWithName = %teamcity.agent.work.dir%/TestLinuxProject.xml.
    Now everything works correctly.