Functional Web Services Testing Made Easy with SoapUI - Part 1
Part 1: Functional Web Services testing using SoapUI
Before we begin actually writing tests, we need two things first:
1. Download and install SoapUI from here.
2. Next, let’s get a WSDL from NOAA. I wanted to actually focus more on SoapUI rather than any one technology to publish your business logic as web services. So, I took the easy route and found out some interesting things about this publicly available web service.
According to the NOAA web site, this web service allows you to get weather data. It has nine functions. Here is the actual wsdl from the web site:
Now that we have SoapUI downloaded and a web service which we can test, let’s start working.
3. Create a new project within SoapUI; give it a name; and copy and paste the WSDL URL within it. Things should look like this:
Once you have created the project successfully you should be able to see all nine functions that are provided to us by NOAA. We are only going to use three of them, as seen below in the screen shot:
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)