Forum Discussion
aholzinger
11 years agoOccasional Contributor
Hi,
thanks for looking into it. I downgraded to eviware:maven-soapui-plugin:4.5.1 and got the same behaviour.
You are correct, a test case was missing. I tested with a manual approach as it is a very limited scenario.
I added a test case and attached it. The test case runs successful now. You can verify the assertions. Most importantly, that there is an attachment.
I tried with the command line runner. It is successful and it gives the following output:
My application still fails with the maven build and the same NullPointerException.
Thanks,
Alfred
thanks for looking into it. I downgraded to eviware:maven-soapui-plugin:4.5.1 and got the same behaviour.
You are correct, a test case was missing. I tested with a manual approach as it is a very limited scenario.
I added a test case and attached it. The test case runs successful now. You can verify the assertions. Most importantly, that there is an attachment.
I tried with the command line runner. It is successful and it gives the following output:
C:\Program Files (x86)\SmartBear\SoapUI-4.6.1\bin>cmd.exe /C testrunner.bat -s"TestSuite 1" -a -fc:\temp\kw45 C:\ws\epm\epm\src\test\resources\epm-soapui-project.xml
SoapUI 4.6.1 TestCase Runner
Configuring log4j from [C:\Program Files (x86)\SmartBear\SoapUI-4.6.1\bin\soapui-log4j.xml]
14:42:46,778 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\ahol\soapui-settings.xml]
14:42:47,444 INFO [WsdlProject] Loaded project from [file:/C:/ws/epm/epm/src/test/resources/epm-soapui-project.xml]
14:42:47,989 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [epm]
14:42:47,990 INFO [SoapUITestCaseRunner] Running TestSuite [TestSuite 1], runType = SEQUENTIAL
14:42:47,999 INFO [SoapUITestCaseRunner] Running SoapUI testcase [TestCase 1]
14:42:48,005 INFO [SoapUITestCaseRunner] running step [getNextElsterXmlOK]
Progress: 1 - Loading Definition from cache
14:42:48,739 DEBUG [AbstractDefinitionContext] Loading Definition...
14:42:48,753 DEBUG [WsdlInterfaceDefinition] Loading WSDL: file:/C:/ws/epm/epm/src/test/resources/download.wsdl
14:42:48,753 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [file:/C:/ws/epm/epm/src/test/resources/download.wsdl]
Retrieving document at 'file:/C:/ws/epm/epm/src/test/resources/download.wsdl'.
14:42:48,884 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace
http://www.w3.org/2004/08/xop/include
14:42:48,919 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetName
space http://www.w3.org/2001/XMLSchema
14:42:48,920 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace
http://www.w3.org/XML/1998/namespace
14:42:48,921 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespa
ce http://ws-i.org/profiles/basic/1.1/xsd
14:42:48,922 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNa
mespace http://www.w3.org/2005/05/xmlmime
14:42:48,923 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNa
mespace http://www.w3.org/2004/11/xmlmime
14:42:48,924 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetN
amespace http://schemas.xmlsoap.org/soap/envelope/
14:42:48,926 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetN
amespace http://schemas.xmlsoap.org/soap/encoding/
14:42:48,927 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targe
tNamespace http://www.w3.org/2003/05/soap-envelope
14:42:48,929 INFO [SchemaUtils] Added default schema from file:/C:/Program%20Files%20(x86)/SmartBear/SoapUI-4.6.1/bin/soapui-4.6.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targe
tNamespace http://www.w3.org/2003/05/soap-encoding
14:42:48,930 INFO [SchemaUtils] Loading schema types from [file:/C:/ws/epm/epm/src/test/resources/download.wsdl]
14:42:48,930 INFO [SchemaUtils] Getting schema file:/C:/ws/epm/epm/src/test/resources/download.wsdl
14:42:49,170 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
14:42:49,503 INFO [SoapUITestCaseRunner] Assertion [SOAP Response] has status VALID
14:42:49,503 INFO [SoapUITestCaseRunner] Assertion [Contains] has status VALID
14:42:49,504 INFO [SoapUITestCaseRunner] Assertion [Script Assertion] has status VALID
14:42:49,512 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [TestCase 1], time taken: 1492ms, status: FINISHED
14:42:49,513 INFO [SoapUITestCaseRunner] TestSuite [TestSuite 1] finished with status [FINISHED] in 1519ms
My application still fails with the maven build and the same NullPointerException.
Thanks,
Alfred
Related Content
- 8 years ago
- 9 years ago
- 8 years ago