Contributions
TestRunner and http proxy settings
Hi, I would like to appeal to the forum for assistance with an issue I am experiencing with TestRunner. I am using SoapUI 3.5.1 and I use a http proxy server to direct all http requests to for executing all my test cases. The soapui-settings.xml contains the proxy server and host settings and when I click play to execute test cases in a test suite they all execute and complete perfectly fine. The problem, however, is when I attempt to run through all the test cases using TestRunner. When I launch TestRunner I find that I get a timeout java.net.ConnectException: Connection timed out: connect because, I can see from Wireshark data capture, that no request is being made to my proxy server, instead the http requests are going directly to the endpoint. I have tried the following things to resolve this: 1. In the "Custom Args" tab of the "Launch TestRunner" window I have entered in the "Tool Args" field the option to point to my soapui-settings.xml file, eg -t "c:\my\path\to\my\soapui-setting.xml". I had high hopes this would resolve the issue but no, it did not. 2. I entered the following lines in "System Properties" field under "Properties" tab: https.proxyHost=myproxy.com https.proxyPort=8080 http.proxyHost=myproxy.com http.proxyPort=8080 which would result in -Dhttps.proxyHost=myproxy.com -Dhttps.proxyPort=8080 -Dhttp.proxyHost=myproxy.com -Dhttp.proxyPort=8080 being passed in to the testrunner.bat. Alas, this did not resolve the problem either. I am running out of ideas with this and hence my post here. I'd be extremely greatful to hear from other community forum users and from Ole and co. on how I can get TestRunner to use whatever proxy server settings I set. My regards Ian2KViews1like0CommentsRe: IndexOutOfBoundsException when attempting to move a test case up
Hi Ole, I have just done a quick test using latest build SoapUI 3.5.1 and I'm pleased to report that I am able to move my test cases up and down without a hint of any problem...as it should be. Many thanks Ole for your prompt responses. Cheers Ian1.3KViews0likes0CommentsIndexOutOfBoundsException when attempting to move a test case up
Hi, I'm using SoapUI 3.5. I have one TestSuite which consists of (so far) 47 test cases, each of which contain 2-3 test steps of Groovy and REST requests. Some of my test cases are dependent on completion of other test cases, so I usually clone some test cases and re-order them within the TestSuite so that I have these running in the right place before other test cases can be run. All well and good so far. However, I am now getting a problem in SoapUI. When I want to move a test case up from the bottom of the TestSuite I get the following error stack. The knock-on effect is to cause the whole SoapUI tool to virtually lock up (windows don't redraw completely, menu options at the top eg File Tools Desktop Help, don't present their respective submenus. In the end all I can do is close SoapUI. When I re-open SoapUI the changes I have made before the error stack are lost. Please can you help? Regards Ian Wed May 19 13:31:32 BST 2010:ERROR:java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.resetConfigOnMove(WsdlTestCase.java:805) at com.eviware.soapui.impl.wsdl.WsdlTestSuite.moveTestCase(WsdlTestSuite.java:425) at com.eviware.soapui.impl.wsdl.actions.testcase.MoveTestCaseUpAction.perform(MoveTestCaseUpAction.java:41) at com.eviware.soapui.impl.wsdl.actions.testcase.MoveTestCaseUpAction.perform(MoveTestCaseUpAction.java:27) at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:104) 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.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) Wed May 19 13:32:08 BST 2010:ERROR:org.apache.xmlbeans.impl.values.XmlValueDisconnectedException org.apache.xmlbeans.impl.values.XmlValueDisconnectedException at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphaned(XmlObjectBase.java:1244) at com.eviware.soapui.config.impl.ModelItemConfigImpl.getName(Unknown Source) at com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem.getName(AbstractWsdlModelItem.java:94) at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep.getLabel(WsdlTestStep.java:97) at com.eviware.soapui.impl.wsdl.panels.testcase.JTestStepList$TestStepCellRenderer.getListCellRendererComponent(JTestStepList.java:256) at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source) at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source) at javax.swing.plaf.basic.BasicListUI.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ViewportLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.ScrollPaneLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.preferredLayoutSize(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize(Unknown Source) at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(Unknown Source) at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(Unknown Source) at java.awt.Container.layout(Unknown Source) at java.awt.Container.doLayout(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validate(Unknown Source) at javax.swing.JLayeredPane.addImpl(Unknown Source) at javax.swing.JDesktopPane.addImpl(Unknown Source) at java.awt.Container.add(Unknown Source) at com.eviware.soapui.ui.desktop.standalone.StandaloneDesktop.showDesktopPanel(StandaloneDesktop.java:187) at com.eviware.soapui.support.UISupport.showDesktopPanel(UISupport.java:566) at com.eviware.soapui.support.UISupport.selectAndShow(UISupport.java:554) at com.eviware.soapui.impl.wsdl.actions.support.ShowDesktopPanelAction.perform(ShowDesktopPanelAction.java:53) at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:104) at com.eviware.soapui.support.action.swing.DefaultActionList.performDefaultAction(DefaultActionList.java:107) at com.eviware.soapui.ui.Navigator$TreeMouseListener$1.run(Navigator.java:408) at java.awt.event.InvocationEvent.dispatch(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)1.8KViews0likes5CommentsUsing Groovy to set a HTTP header value
Hi, I have several test cases in a test suite. Each test case consists of at least one Groovy test step followed by a REST test step for which I need to manually set a http header value. I am using Test Suite Properties to store the values that I want to insert into a header. What I want to know is the Groovy code I need to create a custom Header field and value in my REST test step please. A nice simple example would help me considerably. Many thanks Ian40KViews0likes9CommentsRe: NullPointerException when adding REST Request to a Test Case
Hi, My apologies in the delay with sending my SoapUI project. I am still experiencing the issue and would like to focus again on understanding why I can add one REST test step to a test case and yet not a second. I have attached my SoapUI project for you to examine. My regards Ian2.6KViews0likes0Comments