Functional Web Services Testing Made Easy with SoapUI - Part 1
5. Now that you have some requests working, let’s create a Test Suite and add some Test Cases.
Follow these steps:
a. Right click on your project node, in our case it is NOAA-Weather-Service. Select the New TestSuite menu item. A dialog will be displayed; enter the TestSuite name, Silver-Spring-Test-Suite. Click OK and the Silver-Spring-Test-Suite editor should open. If any suite-wide initialization is needed, you can do this in the Setup Script, and any cleaning afterwards can be done in the TearDown Script. We are leaving these blank right now, but in the next part we are going to use these scripts as well.
b. Let’s add a few Test Cases to this Test Suite. There are many ways to do this, but because I’m lazy, we will do it the easy way for right now. Right click on each of the Request 1 cases we ran successfully and add them to the TestCase. Once you add all three, you should see something like this in your SoapUI editor:
c. Now we have a TestSuite, and 3 Test Cases. Let’s run these tests. Double click on the Silver-Spring-Test-Suite. The editor should open. Click on the Green button and all three test cases in this test suite should run successfully.
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)