Contributions
Re: Modifications lost while using soapUI v2.0 beta2
Hi Ole, I have definitively switched to v2.0 + fix since Jan. 2nd and have not face any problem. Is that fixed soapui-pro-2.0.jar now part of the official soapUI v2.0 version download or new installations that will require that fix will still need to patch the downloaded version with the fixed soapui-pro-2.0.jar you provided ? Thanks.2.6KViews0likes0CommentssoapUI 2.0 pro: context.myXml = myXml causing java.lang.NullPointerException
Hi, I'm seeing this error in the soapUI.log while executing the statement context.myXml = myXml in a groovy script. The error is apparently without consequence, but still appearing as an Exception with the following Exception stack. I have verified that myXml is not null. Is there a way to get rid of that error ? Thanks a lot. 12:05:09,328 ERROR [SoapUI] An error occured [java.lang.NullPointerException], s ee error log for details java.lang.NullPointerException at java.util.Properties$LineReader.readLine(Unknown Source) at java.util.Properties.load0(Unknown Source) at java.util.Properties.load(Unknown Source) at com.eviware.soapui.impl.wsdl.support.XmlBeansPropertiesTestPropertyHo lder.addPropertiesFromFile(XmlBeansPropertiesTestPropertyHolder.java:317) at com.eviware.soapui.model.support.SettingsTestPropertyHolder.addProper tiesFromFile(SettingsTestPropertyHolder.java:118) at com.eviware.soapui.model.propertyexpansion.PropertyExpansionUtils.ini tGlobalProperties(PropertyExpansionUtils.java:92)3.2KViews0likes1CommentRe: How to retrieve the Test Suite and Test Case labels within a groovy script
Hi Ole, this produces the following output: Sun Dec 30 10:04:14 CET 2007:INFO:Initialisation Test Case in com.eviware.soapui.impl.wsdl.WsdlTestSuite@e62df Gives at least the correct Test Case name under soapUI 1.7.6. I'll give a try with soapUI 2.0... Thanks.1.9KViews0likes0Comments- 2.6KViews0likes0Comments
Re: Modifications lost while using soapUI v2.0 beta2
Hi Ole, thanks a lot for your great responsiveness ! Yes our code is heavily relying on Mock Responses as all our Service requests are asynchroneous. For sure we need v2.0 (at least for the Timeout feature). So your work is important to us. Merry Christmas to you, your team and familly.2.6KViews0likes0CommentsGroovy script executed up to the end after a testRunner.gotoStepByName(someStep)
Hi, I'm observing that a Groovy script is executed up to the end even after a testRunner.gotoStepByName(someStep); If there an efficient way to return from a Groovy script after a testRunner.gotoStepByName() call ? return ? Or the only way is if() else ? Thanks and merry Christmas ! if ( requestId.equals(contextRequestId) == false ) { log.info ("ERROR: received RequestId value '" + requestId + "' does NOT match RequestId value in Context '" + contextRequestId + "'"); // Protect the Test Case against out dated or unrelated Notifications //testRunner.fail("Blabla"); log.info ("Ignoring Notification for RequestId '" + requestId + "'. Returning to step Notification Request..."); // Transfers execution of this TestRunner to the TestStep with the specified name in the TestCase testRunner.gotoStepByName("Notification Request"); } This code is always executed: log.info ("Received RequestId value '" + requestId + "' matching RequestId value in Context '" + contextRequestId + "'");3.5KViews0likes1CommentRe: Modifications lost while using soapUI v2.0 beta2
Hi Ole, I reproduced the error where I could not save my changes with the latest v2.0 version. As mentioned earlier, my soapui xml repository was developped with version 1.7.6. Here is an excerpt of the soapUi log: at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) 2007-12-18 15:30:16,468 ERROR [errorlog] org.apache.xmlbeans.impl.values.XmlValueDisconnectedException org.apache.xmlbeans.impl.values.XmlValueDisconnectedException at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1213) at com.eviware.soapui.config.impl.MockResponseConfigImpl.getResponseContent(Unknown Source) at com.eviware.soapui.impl.wsdl.mock.WsdlMockResponse.beforeSave(WsdlMockResponse.java:825) at com.eviware.soapui.impl.wsdl.teststeps.WsdlMockResponseTestStep.beforeSave(SourceFile:711) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.beforeSave(WsdlTestCase.java:766) at com.eviware.soapui.impl.wsdl.WsdlTestSuite.beforeSave(WsdlTestSuite.java:395) at com.eviware.soapui.impl.wsdl.WsdlProject.beforeSave(WsdlProject.java:477) at com.eviware.soapui.impl.wsdl.WsdlProject.save(WsdlProject.java:416) at com.eviware.soapui.impl.wsdl.actions.project.SaveProjectAction.perform(SaveProjectAction.java:40) at com.eviware.soapui.impl.wsdl.actions.project.SaveProjectAction.perform(SaveProjectAction.java:27) at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:92) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)2.6KViews0likes0CommentsHow to retrieve the Test Suite and Test Case labels within a groovy script
Hi, I would like to create some log (using log4j Logger) of my Test activity. For that I need to be able to retrieve the Test Suite ad Test Cases labels from within a groovy script. I have looked at the javadoc of the WsdlTestCaseRunner and WsdlTestRunContext and have found nothing. Is there a way to retrieve that Information ? Thanks.4.8KViews0likes4Comments