EMC_Support
11 years agoContributor
URIException error while running loadtestRunner from cmdline
I am trying to set the properties from command line and run the loadtest using loadtestrunner.bat. But when I set the custom property by specifying the -D option, the run throws the follow stack trace and error. Here is the request that is sent out
13:26:40,497 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /alerts-edaa/msa/alerts/types/ManagedAlert/instances?alt=json HTTP/1.1
and the error is
nu.xom.MalformedURIException: Double slash (//) in path
at nu.xom.Verifier.throwMalformedURIException(Verifier.java:161)
at nu.xom.Verifier.checkPath(Verifier.java:396)
at nu.xom.Verifier.checkAbsoluteURIReference(Verifier.java:907)
at nu.xom.Element._setNamespaceURI(Element.java:869)
at nu.xom.Element.setNamespaceURI(Element.java:852)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.processJSONObject(JsonXmlSerializer.java:1159)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:721)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:676)
at com.eviware.soapui.impl.rest.support.handlers.JsonMediaTypeHandler.createXmlRepresentation(JsonMediaTypeHandler.java:55)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.getContentAsXml(BaseHttpResponse.java:435)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.propertyChange(RestTestRequestStep.java:481)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:85)
at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:732)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:138)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:922)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:235)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner$InternalTestCaseRunner.run(WsdlLoadTestRunner.java:544)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This happens only when I send the query for json format. When I run the same test using the SoapUI gui, it runs fine without any errors. This is the command line I execute.
call "C:\Program Files\SmartBear\SoapUI-Pro-4.6.4\bin"\loadtestrunner.bat -e${#Project#BASE_URL} -hitops-qa-153:8080 -s"Simple Instance Get" -c"Simple Instance GET" -l "Simple Get Loadtest 25 User 25 per Sec" -r -FPDF -R"LoadTest Report" -fC:\tmp\LoadUI\Get_JSON__25_25 -Dsoapui.properties=C:\work\UIAlerts\LoadTest\sopaui_json.properties Z:\svn\UIAlerts\main\alerts\alerts-it\src\test\resources\Alerts-edaa-Simple-Gets-soapui-project.xml >> c:\tmp\loadUI\1.out
I set the custom propery based on the documentation @ http://www.soapui.org/Scripting-Propert ... rties.html
Here is my properties file with a one line entry
test.alt.property=json
and I have the custom property value for alt set as ${test.alt.property}. I get the requests properly in the tomcat server and it seems to be returning 200. There were 746 requests sent by the loadtest and I have 749 stacks of the above error. Would this be related to the same issue discussed @ http://forum.soapui.org/viewtopic.php?f ... 52&p=54439 ? I am using SoapUI Pro 4.6.4
13:26:40,497 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /alerts-edaa/msa/alerts/types/ManagedAlert/instances?alt=json HTTP/1.1
and the error is
nu.xom.MalformedURIException: Double slash (//) in path
at nu.xom.Verifier.throwMalformedURIException(Verifier.java:161)
at nu.xom.Verifier.checkPath(Verifier.java:396)
at nu.xom.Verifier.checkAbsoluteURIReference(Verifier.java:907)
at nu.xom.Element._setNamespaceURI(Element.java:869)
at nu.xom.Element.setNamespaceURI(Element.java:852)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.processJSONObject(JsonXmlSerializer.java:1159)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:721)
at com.eviware.soapui.impl.rest.support.handlers.JsonXmlSerializer.write(JsonXmlSerializer.java:676)
at com.eviware.soapui.impl.rest.support.handlers.JsonMediaTypeHandler.createXmlRepresentation(JsonMediaTypeHandler.java:55)
at com.eviware.soapui.impl.wsdl.submit.transports.http.BaseHttpResponse.getContentAsXml(BaseHttpResponse.java:435)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.propertyChange(RestTestRequestStep.java:481)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at com.eviware.soapui.model.support.AbstractModelItem.notifyPropertyChanged(AbstractModelItem.java:85)
at com.eviware.soapui.impl.support.AbstractHttpRequest.setResponse(AbstractHttpRequest.java:732)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest.setResponse(RestTestRequest.java:138)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:922)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:235)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:43)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
at com.eviware.soapui.impl.wsdl.loadtest.WsdlLoadTestRunner$InternalTestCaseRunner.run(WsdlLoadTestRunner.java:544)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This happens only when I send the query for json format. When I run the same test using the SoapUI gui, it runs fine without any errors. This is the command line I execute.
call "C:\Program Files\SmartBear\SoapUI-Pro-4.6.4\bin"\loadtestrunner.bat -e${#Project#BASE_URL} -hitops-qa-153:8080 -s"Simple Instance Get" -c"Simple Instance GET" -l "Simple Get Loadtest 25 User 25 per Sec" -r -FPDF -R"LoadTest Report" -fC:\tmp\LoadUI\Get_JSON__25_25 -Dsoapui.properties=C:\work\UIAlerts\LoadTest\sopaui_json.properties Z:\svn\UIAlerts\main\alerts\alerts-it\src\test\resources\Alerts-edaa-Simple-Gets-soapui-project.xml >> c:\tmp\loadUI\1.out
I set the custom propery based on the documentation @ http://www.soapui.org/Scripting-Propert ... rties.html
Here is my properties file with a one line entry
test.alt.property=json
and I have the custom property value for alt set as ${test.alt.property}. I get the requests properly in the tomcat server and it seems to be returning 200. There were 746 requests sent by the loadtest and I have 749 stacks of the above error. Would this be related to the same issue discussed @ http://forum.soapui.org/viewtopic.php?f ... 52&p=54439 ? I am using SoapUI Pro 4.6.4