Contributions
Re: Mock service calling another webservice
In MockService you can use variable mockRunner to get to WsdlProject, than use it. import com.eviware.soapui.impl.wsdl.* WsdlProject proj = mockRunner.getMockService().getProject(); for(WsdlTestSuite suite : proj.getTestSuiteList()) { log.info(suite.getLabel()) //use this runner com.eviware.soapui.model.testsuite.TestSuiteRunner runner = suite.run((com.eviware.soapui.support.types.StringToObjectMap)context, true) log.info(runner.getClass()) } Sorry, but i don't have more time to extend this example... Or, you can use Apache HttpClient v4.1 right from groovy script (i think so, i only saw that classes are available) if you don't want to work with TestSuites).1.7KViews0likes0CommentsRe: Help to Property transfer
Why you didn't used help on official site? You can simply use constructuion like this: <esv:certificate>${verifySignature#Response#//certificate}</esv:certificate> This takes value of certificate from response from step "verifySignature" from the same TestCase647Views0likes0Comments- 1.7KViews0likes0Comments
How to run soapUI from sources?
Downloaded sources from svn://svn.eviware.com/soapui/trunk/core. From last comment I found out that maven 3 can be used to compile sources and I need to put all sources to main/java. I using IntelliJ IDEA for building project. 'mvn comple' worked fine but i see error in IDEA in class soapui.demo.DemoListener in line 32: testRunner doen't have method getName(); So I excluded this class from compile and launched after that, here log is: 2012-09-10 10:52:48,978 WARN [SoapUI] Missing folder [D:\IdeaProjects\soapUI-dev\.\ext] for external libraries 2012-09-10 10:52:52,551 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\User\soapui-settings.xml] 2012-09-10 10:52:58,834 INFO [DefaultSoapUICore] Adding listeners from [D:\IdeaProjects\soapUI-dev\.\listeners\demo-listeners.xml] 2012-09-10 10:52:58,994 ERROR [SoapUI] An error occured [java.lang.NullPointerException], see error log for details 2012-09-10 10:52:59,019 ERROR [errorlog] org.apache.xmlbeans.XmlException: java.lang.NullPointerException org.apache.xmlbeans.XmlException: java.lang.NullPointerException at com.eviware.soapui.support.xml.XmlUtils.createXmlObject(XmlUtils.java:228) at com.eviware.soapui.impl.wsdl.support.soap.SoapVersion11.<init>(SoapVersion11.java:70) at com.eviware.soapui.impl.wsdl.support.soap.SoapVersion11.<clinit>(SoapVersion11.java:52) at com.eviware.soapui.impl.wsdl.support.soap.SoapVersion.<clinit>(SoapVersion.java:36) at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:153) at com.eviware.soapui.StandaloneSoapUICore.<init>(StandaloneSoapUICore.java:38) at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:662) at com.eviware.soapui.SoapUI.main(SoapUI.java:761) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) 2012-09-10 10:52:59,063 ERROR [SoapUI] An error occured [java.lang.NullPointerException], see error log for details 2012-09-10 10:52:59,063 ERROR [errorlog] org.apache.xmlbeans.XmlException: java.lang.NullPointerException org.apache.xmlbeans.XmlException: java.lang.NullPointerException at com.eviware.soapui.support.xml.XmlUtils.createXmlObject(XmlUtils.java:274) at com.eviware.soapui.impl.wsdl.support.soap.SoapVersion12.<init>(SoapVersion12.java:61) at com.eviware.soapui.impl.wsdl.support.soap.SoapVersion12.<clinit>(SoapVersion12.java:46) at com.eviware.soapui.impl.wsdl.support.soap.SoapVersion.<clinit>(SoapVersion.java:37) at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:153) at com.eviware.soapui.StandaloneSoapUICore.<init>(StandaloneSoapUICore.java:38) at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:662) at com.eviware.soapui.SoapUI.main(SoapUI.java:761) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) On every action i get: 10:59:57,881 ERROR [SoapUI] An error occured [java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V], see error log for details937Views0likes0CommentsI can't post my question!
I'm trying to post my question, but every time when i over my post and click "submit", I get an error "the server did not return response for this request". it is very annoying! It happens with only one message. I didn't find what is the cause (special letters, or something). Here is what i'm trying to ask: https://docs.google.com/document/d/1QFX ... 0SXec/edit12 years agoPlace ReadyAPI QuestionsReadyAPI Questions967Views0likes0CommentsHTTP Header Content-Type changing if I run sample/TestCase
If I change sample request and send it from interface Content-Type of message is "text/xml;charset=UTF-8" If I send the same request from testStep in TestCase Content-Type becomes "application/soap+xml;charset=UTF-8;action="http://pa.minregion.ru/ServicePlanningAreas/GetDraft"". Why is it happens?798Views0likes0Comments