Forum Discussion
hova_da_god
16 years agoOccasional Contributor
Sry but I can't sent you the project because it's a big one.
But lets put aside the project. I tried to create a new project from the begining and still have
problems. So I will tell you the steps I made.
I installed a fresh copy of soapUI 3.0 from the link you gave me(after downloading it) .
Afterwards I opened the soapUI 3.0.
Then FILE/New soapUI Project
- a little windows opened where I entered the name of the project and then clicked OK
- the project was made. Then right click on the project and New REST Service
- another window opened where I entered the name of the REST service and the Service endpoint and clicked OK
- right click on the REST service I just made and select New Resource
- another windows opened where i entered the name and the ressource and clicked OK.
- another windows opened to create the REST method. Here i entered a name for the method and all the parameters of the REST request. Then clicked OK.
- another windows opened to create the REST request.Here i didn't do a thing because all the parameters I entered in the previous window were here.
- then I created 3 more REST methods(for this resource) to whoom the program attached the coresponding REST request with different names for eachone.
- then i created 2 more Resources and for each ressource four REST methods with the corresponding REST requests, with different names.
--------
Then right click on the project and selected New TestSuite.After entering the name and clicked okai, it made the Test Suite.
Then right click on the test suite I just created and selected New TestCase. I entered a name and then clicked okai and the TestCase was made. So i have a testcase without any TestSteps. So right clikc on the TestSteps and add step and selected REST Test Request. Then I had to select the REST method to invoke for the request and i chose from the first Resource the first method.
Then i wanted to add another TestStep.So right click on the TestSteps and sleect add step and REST Test Request. Then once again i had to select the the REST method to be invoked with the request i just made. I selected from the 2nd Ressource the 2nd method and then ERRRRROR...
Fri Oct 23 10:25:15 EEST 2009:ERROR:An error occured [java.lang.NullPointerException], see error log for details
Fri Oct 23 10:25:15 EEST 2009:ERROR:java.lang.NullPointerException
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.ensureUniqueName(WsdlTestCase.java:300)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.insertTestStep(WsdlTestCase.java:479)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.addTestStep(WsdlTestCase.java:401)
at com.eviware.soapui.impl.wsdl.actions.testcase.AddWsdlTestStepAction.perform(AddWsdlTestStepAction.java:48)
at com.eviware.soapui.impl.wsdl.actions.testcase.AddWsdlTestStepAction.perform(AddWsdlTestStepAction.java:29)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:101)
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)
So in conclusion to this. I cannot create two Rest Test Request with different Resources in the same TestCase.
-------------------------------------------------------
And then with the importing again.
In a new project I tried to import a TestSuite(this TestSuite had 4 TestCases and each TestCase had almost 70 Steps that pointed to different Resources) previous made in soapUI2.5 after creating the resources needed for it. The import was Okai. But i had to select for each step the corresponding Resource. So i did that. Then i runed the Test Suite. Everything was perfect. So i saved the project. Exit the soapUI and very happy that this was working went outside to smoke. When i came back and opened the soapUI the TestSuite i imported was there the resources i created were there. BUT soapUI associated for all the REST Test Steps the first Resource In the list and with the first method. So it was just like I've done a fresh import for that TestSuite.
In conclusion soapUI didn't "remember" the Resources that were assigned for each Rest Test Request.
Please tell me if i did something wrong or how to do this the right way!
THANKS
Hova
But lets put aside the project. I tried to create a new project from the begining and still have
problems. So I will tell you the steps I made.
I installed a fresh copy of soapUI 3.0 from the link you gave me(after downloading it) .
Afterwards I opened the soapUI 3.0.
Then FILE/New soapUI Project
- a little windows opened where I entered the name of the project and then clicked OK
- the project was made. Then right click on the project and New REST Service
- another window opened where I entered the name of the REST service and the Service endpoint and clicked OK
- right click on the REST service I just made and select New Resource
- another windows opened where i entered the name and the ressource and clicked OK.
- another windows opened to create the REST method. Here i entered a name for the method and all the parameters of the REST request. Then clicked OK.
- another windows opened to create the REST request.Here i didn't do a thing because all the parameters I entered in the previous window were here.
- then I created 3 more REST methods(for this resource) to whoom the program attached the coresponding REST request with different names for eachone.
- then i created 2 more Resources and for each ressource four REST methods with the corresponding REST requests, with different names.
--------
Then right click on the project and selected New TestSuite.After entering the name and clicked okai, it made the Test Suite.
Then right click on the test suite I just created and selected New TestCase. I entered a name and then clicked okai and the TestCase was made. So i have a testcase without any TestSteps. So right clikc on the TestSteps and add step and selected REST Test Request. Then I had to select the REST method to invoke for the request and i chose from the first Resource the first method.
Then i wanted to add another TestStep.So right click on the TestSteps and sleect add step and REST Test Request. Then once again i had to select the the REST method to be invoked with the request i just made. I selected from the 2nd Ressource the 2nd method and then ERRRRROR...
Fri Oct 23 10:25:15 EEST 2009:ERROR:An error occured [java.lang.NullPointerException], see error log for details
Fri Oct 23 10:25:15 EEST 2009:ERROR:java.lang.NullPointerException
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.ensureUniqueName(WsdlTestCase.java:300)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.insertTestStep(WsdlTestCase.java:479)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.addTestStep(WsdlTestCase.java:401)
at com.eviware.soapui.impl.wsdl.actions.testcase.AddWsdlTestStepAction.perform(AddWsdlTestStepAction.java:48)
at com.eviware.soapui.impl.wsdl.actions.testcase.AddWsdlTestStepAction.perform(AddWsdlTestStepAction.java:29)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:101)
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)
So in conclusion to this. I cannot create two Rest Test Request with different Resources in the same TestCase.
-------------------------------------------------------
And then with the importing again.
In a new project I tried to import a TestSuite(this TestSuite had 4 TestCases and each TestCase had almost 70 Steps that pointed to different Resources) previous made in soapUI2.5 after creating the resources needed for it. The import was Okai. But i had to select for each step the corresponding Resource. So i did that. Then i runed the Test Suite. Everything was perfect. So i saved the project. Exit the soapUI and very happy that this was working went outside to smoke. When i came back and opened the soapUI the TestSuite i imported was there the resources i created were there. BUT soapUI associated for all the REST Test Steps the first Resource In the list and with the first method. So it was just like I've done a fresh import for that TestSuite.
In conclusion soapUI didn't "remember" the Resources that were assigned for each Rest Test Request.
Please tell me if i did something wrong or how to do this the right way!
THANKS
Hova