Forum Discussion

ushaplaxo's avatar
ushaplaxo
Contributor
14 years ago

Not able to run the tests using testrunner on mac

Hi,

I have soap ui 4.5 on both my mac and my parallels running windows xp. When I run my test suite on windows using the test runner, it runs fine. But when I try to run the same project on mac using the test runner, I get the following errors. Can some one please help me to understand the error and how to resolve it?



Running soapUI TestRunner for [Test Project]
directory: /Applications/SmartBear/soapUI-Pro-4.5.0.app/Contents/Resources/app/bin/.
command: sh -c ./testrunner.sh -s"ProvisioningDVCServiceSoapBinding TestSuite" -c"SubmitTNFeatures TestCase" -a -f"/Users/usha/Kraken API Automation using Soap UI/Reports" -EDefault "/Users/usha/Kraken API Automation using Soap UI/Projects/Test-Project-soapui-project.xml"
================================
=
= SOAPUI_HOME = /Applications/SmartBear/soapUI-Pro-4.5.0.app/Contents/Resources/app
=
================================
soapUI Pro 4.5.0 TestCase Runner
Configuring log4j from [/Applications/SmartBear/soapUI-Pro-4.5.0.app/Contents/Resources/app/bin/soapui-log4j.xml]
14:21:53,517 INFO [DefaultSoapUICore] initialized soapui-settings from [/Users/usha/soapui-settings.xml]
14:21:53,821 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/Applications/eviware/soapUI-Pro-3.6.1.app/Contents/Resources/app/bin/scripts]
14:21:53,823 INFO [DefaultSoapUICore] Adding listeners from [/Applications/SmartBear/soapUI-Pro-4.5.0.app/Contents/Resources/app/bin/listeners/demo-listeners.xml]
14:21:55,102 INFO [SoapUI] File [/Users/usha/Kraken%20API%20Automation%20using%20Soap%20UI/Projects/Test-Project-soapui-project.xml] does not exist, trying URL instead
14:21:55,102 ERROR [SoapUI] An error occured [no protocol: /Users/usha/Kraken%20API%20Automation%20using%20Soap%20UI/Projects/Test-Project-soapui-project.xml], see error log for details
java.net.MalformedURLException: no protocol: /Users/usha/Kraken%20API%20Automation%20using%20Soap%20UI/Projects/Test-Project-soapui-project.xml
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
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)
14:21:55,210 ERROR [SoapUIProTestCaseRunner] java.lang.Exception: Failed to load soapUI project file [/Users/usha/Kraken%20API%20Automation%20using%20Soap%20UI/Projects/Test-Project-soapui-project.xml]
14:21:55,210 ERROR [SoapUI] An error occured [Failed to load soapUI project file [/Users/usha/Kraken%20API%20Automation%20using%20Soap%20UI/Projects/Test-Project-soapui-project.xml]], see error log for details
java.lang.Exception: Failed to load soapUI project file [/Users/usha/Kraken%20API%20Automation%20using%20Soap%20UI/Projects/Test-Project-soapui-project.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)






Thanks,
usha

1 Reply

  • Hi,

    I can't reproduce that particular behavior but i could not use the "-c" flag to the script.

    sh ./testrunner.sh -s "TestSuite 1" -c "TestCase 1" -a -EDefault "/Users/hj/test dir w spaces/Test-soapui project.xml"

    alternatively dropping sh works as well

    ./testrunner.sh -s "TestSuite 1" -c "TestCase 1" -a -EDefault "/Users/hj/test dir w spaces/Test-soapui project.xml"

    I do get that error if there is a typo in the path or file name. One thing you could try is to check if your filesystem is case sensitive or insensitive. It is possible to have sensitive although by default its insensitive so if you never changed it it should be the same is I have. I can have lower case across the line even though the project file is upper case.

    Regards,
    Henrik Johansson
    Smartbear