Forum Discussion

Chuck_Micklavzi's avatar
Chuck_Micklavzi
Occasional Contributor
16 years ago

command line testrunner.bat failure

tried using the example in the user guide to run from command line.  The test did not run and I get the following error.

C:\Program Files\eviware\soapUI-Pro-2.5.2\bin>testrunner.bat -g -I -a C:\ART\soa
pui_QueryAccountInfoService_RTB1_ProjId-8.xml
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\
bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
soapUI Pro 2.5.2 TestCase Runner
log4j:WARN No appenders could be found for logger (com.eviware.soapui.impl.cover
age.report.CoverageBuilder).
log4j:WARN Please initialize the log4j system properly.

Not sure what I am missing.

Chuck
  • Hi!

    hmm.. strange indeed.. can you show a screenshot of this? Had you saved the project file first (can you attach it)?

    regards,

    /Ole
    eviware.com
  • Chuck_Micklavzi's avatar
    Chuck_Micklavzi
    Occasional Contributor
    The project file was saved first.  SoapUI was not open when I issued the command at the command line.

    Attached screenshot.


    Chuck
  • Chuck_Micklavzi's avatar
    Chuck_Micklavzi
    Occasional Contributor
    I created a new test project and it failed just the same.  I am attaching that project as well as a screen shot of the same results with a different project.  It initially looks to be an issue with paths or loading while trying to run via command line.

    Chuck
  • Hi,

    are you using the latest 2.5.2 build here? Your project worked fine for me..

    regards!

    /Ole
    eviware.com
  • HI again,

    also you could try removing those extra JAVA_OPTIONS things.. they might be interfering somehow!?

    regards,

    /Ole
    eviware.com
  • Chuck_Micklavzi's avatar
    Chuck_Micklavzi
    Occasional Contributor
    I downloaded and installed soapUI-Pro-3_0-beta-2.exe and the problem appears to be gone.  I think something was missing in my previous 2.5.2 version.

    Thanks for the quick help.

    Chuck
  • Beno_Iskratel's avatar
    Beno_Iskratel
    Frequent Contributor
    when i run my test case with TestRunner, this is what i get:

    Running soapUI TestRunner for [Modify-Get]
    directory: C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\.
    command: cmd.exe /C testrunner.bat -sModify_Get -c"Test Case 2_1 get" "C:\Documents and Settings\b.zurman\My Documents\SoapUI\Projekti\Modify-Get-soapui-project.xml"
    soapUI Pro 3.6.1 TestCase Runner
    Configuring log4j from [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\soapui-log4j.xml]
    11:39:59,597 INFO [SoapUI] Adding [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
    11:39:59,597 INFO [SoapUI] Adding [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
    11:39:59,597 INFO [SoapUI] Adding [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\ext\sqljdbc.jar] to extensions classpath
    11:39:59,784 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Documents and Settings\b.zurman\soapui-settings.xml]
    11:40:00,144 INFO [HttpClientSupport$Helper] Initializing KeyStore
    11:40:00,159 ERROR [SoapUI] An error occured [Can't build keystore: [Private key missing (bad password?)]], see error log for details
    java.security.KeyStoreException: Can't build keystore: [Private key missing (bad password?)]
    at org.apache.commons.ssl.KeyStoreBuilder.build(KeyStoreBuilder.java:158)
    at org.apache.commons.ssl.KeyMaterial.<init>(KeyMaterial.java:179)
    at org.apache.commons.ssl.KeyMaterial.<init>(KeyMaterial.java:170)
    at org.apache.commons.ssl.KeyMaterial.<init>(KeyMaterial.java:160)
    at org.apache.commons.ssl.KeyMaterial.<init>(KeyMaterial.java:64)
    at org.apache.commons.ssl.KeyMaterial.<init>(KeyMaterial.java:114)
    at org.apache.commons.ssl.KeyMaterial.<init>(KeyMaterial.java:89)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.initKeyMaterial(HttpClientSupport.java:133)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.initSSL(HttpClientSupport.java:90)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.<init>(HttpClientSupport.java:66)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.<clinit>(HttpClientSupport.java:48)
    at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:342)
    at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:134)
    at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:117)
    at com.eviware.soapui.DefaultSoapUICore.createDefault(DefaultSoapUICore.java:92)
    at com.eviware.soapui.SoapUI.getListenerRegistry(SoapUI.java:1542)
    at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:190)
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:41)
    at com.eviware.soapui.impl.wsdl.WsdlProjectFactory.createNew(WsdlProjectFactory.java:24)
    at com.eviware.soapui.tools.SoapUITestCaseRunner.validateTestSuite(SoapUITestCaseRunner.java:223)
    at com.eviware.soapui.tools.SoapUITestCaseRunner.processCommandLine(SoapUITestCaseRunner.java:126)
    at com.eviware.soapui.SoapUIProTestCaseRunner.processCommandLine(SourceFile:80)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.initFromCommandLine(AbstractSoapUIRunner.java:123)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:80)
    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)
    11:40:00,238 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\listeners\demo-listeners.xml]
    11:40:00,519 INFO [WsdlProject] Loaded project from [file:C:/Documents and Settings/b.zurman/My Documents/SoapUI/Projekti/Modify-Get-soapui-project.xml]
    11:40:01,128 INFO [WsdlProject] Loaded project from [file:C:/Documents and Settings/b.zurman/My Documents/SoapUI/Projekti/Modify-Get-soapui-project.xml]
    Configuring log4j from [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\soapui-log4j.xml]
    11:40:01,175 INFO [SoapUI] Adding [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
    11:40:01,175 INFO [SoapUI] Adding [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
    11:40:01,175 INFO [SoapUI] Adding [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\ext\sqljdbc.jar] to extensions classpath
    11:40:01,175 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Documents and Settings\b.zurman\soapui-settings.xml]
    11:40:01,331 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\listeners\demo-listeners.xml]
    11:40:01,331 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\eviware\soapUI-Pro-3.0\bin\scripts]
    11:40:01,347 INFO [WsdlProject] Loaded project from [file:C:/Documents and Settings/b.zurman/My Documents/SoapUI/Projekti/Modify-Get-soapui-project.xml]
    11:40:01,362 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\eviware\soapUI-Pro-3.0\bin\scripts]
    11:40:01,409 INFO [SoapUIProTestCaseRunner] Running soapUI tests in project [Modify-Get]
    11:40:01,409 INFO [SoapUIProTestCaseRunner] Running TestCase [Test Case 2_1 get]
    11:40:01,862 INFO [SoapUIProTestCaseRunner] Running soapUI testcase [Test Case 2_1 get]
    11:40:01,878 INFO [SoapUIProTestCaseRunner] running step [define dn]
    11:40:01,956 INFO [log] 5000
    11:40:02,269 INFO [SoapUIProTestCaseRunner] running step [getSupplementaryServices]
    11:40:06,331 ERROR [WsdlSubmit] Exception in request: java.net.ConnectException: Connection refused: connect
    11:40:06,331 ERROR [SoapUI] An error occured [Connection refused: connect], see error log for details
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
    at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(SoapUIMultiThreadedHttpConnectionManager.java:1666)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:202)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
    at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:236)
    at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:324)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:207)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:138)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:39)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.start(AbstractTestRunner.java:77)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:599)
    at com.eviware.soapui.tools.SoapUITestCaseRunner.runTestCase(SoapUITestCaseRunner.java:554)
    at com.eviware.soapui.SoapUIProTestCaseRunner.runTestCase(SourceFile:168)
    at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:379)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:144)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:82)11:40:06,378 INFO [SoapUIProTestCaseRunner] Assertion [SOAP Response] has status UNKNOWN
    11:40:06,378 INFO [SoapUIProTestCaseRunner] Assertion [Not SOAP Fault] has status UNKNOWN
    11:40:06,378 INFO [SoapUIProTestCaseRunner] Assertion [Script Assertion] has status UNKNOWN
    11:40:06,378 ERROR [SoapUIProTestCaseRunner] getSupplementaryServices failed, exporting to [C:\Program Files\eviware\soapUI-Pro-3.6.1\bin\ModifyGet-Test_Case_21_get-getSupplementaryServices-0-FAILED.txt]
    11:40:06,393 INFO [SoapUIProTestCaseRunner] Finished running soapUI testcase [Test Case 2_1 get], time taken: 4501ms, status: FAILED
    11:40:06,409 INFO [SoapUIProTestCaseRunner] TestCase [Test Case 2_1 get] finished with status [FAILED] in 4501ms
    11:40:06,409 ERROR [SoapUIProTestCaseRunner] java.lang.Exception: TestCase [Test Case 2_1 get] failed without assertions

    11:40:06,409 ERROR [SoapUI] An error occured [TestCase [Test Case 2_1 get] failed without assertions
    ], see error log for details

    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)
    java.lang.Exception: TestCase [Test Case 2_1 get] failed without assertions

    at com.eviware.soapui.tools.SoapUITestCaseRunner.throwFailureException(SoapUITestCaseRunner.java:492)
    at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:417)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:144)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:82)
    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)


    any ide what could be wrong?

    with best regards,
    beno
  • Hi,

    from your stacktrace we can see that:
    first you have problems with wrong password or your keystore is missing.
    Check that again.

    Second you have "connection refused" error, that can be server down or due to first keystore problem.

    Hope this helps

    regards
    nebojsa
    eviware.com
  • Beno_Iskratel's avatar
    Beno_Iskratel
    Frequent Contributor
    If I run this test in SoapUI it works fine (TestCase, TestSuite, LoadTest,...).
    The problem is just from commanline.

    SoapUI Pro 3.6.1, Build Date 2010/10/18 15:21