SoapUI Testing Tutorial | Setup and Installation
One of the most popular API Testing tools that a lot of people use today is SoapUI. I have created a SoapUI Testing Tutorial to help you grab a look and feel of how SOAP requests are made.
SoapUI is an automated testing tool for SOAP and REST APIs. With the help of SoapUI, you can not only write, run and integrate but also automate, all sorts of advanced API tests with maximum ease.
Getting Started – SoapUI Testing Tutorial
Here we are going to see how to download the setup and install it in your system. We will see an example too later on to get you started with it.
How to Download SoapUI
First things first! You need to have the setup of SoapUI to get started ASAP. Follow these steps below to download the software:
Step 1: Navigate to the following URL:
https://www.soapui.org/downloads/latest-release.html
Step 2: Based on the operating system you are using click on the Download button. I am using Windows, so I am going to go ahead and click on Download button for Windows Installer.
NOTE: If you are using Windows 32-bit, you need to select that from the dropdown.
Step 3: With that the download would begin.
Step 4: Once it gets downloaded successfully, just open the setup file.
Installation of SoapUI
Step 5: Once you click the setup file open, this is what you might see on the screen:
Step 6: Just wait for the next screen to open. Then click on Next:
Step 7: Click on Next without changing a thing. Or if you want to, you can specify where you wish the software to get saved.
Step 8: Select components in the next screen. If you are not sure which ones, you could simply let things be as they are. Then click on Next.
Step 9: In the next screen, you can click on Next, or provide a location to store the tutorials first and then click on Next. Your choice! I am leaving everything intact, and clicking on Next.
Step 10: You can choose to create a Start Menu Folder. Click on Next if you would want that.
Step 11: Whether or not you want to create a desktop icon, can be selected in the next screen. Click on Next, once you have made that decision.
When you click on Next, the installation would begin. Sit back for a while and let it happen:
Step 12: Once the installation finishes, you will get the following dialog box. Just click on Finish to end the setup.
NOTE: I have unchecked the release notes checkbox, since I do not wish to see that. If you plan on launching SoapUI do not uncheck the second box, and let it run.
Opening SoapUI for the First Time
With that SoapUI has been installed on your system. This is what you might see when you open it for the first time.
First this:
Wait for a while and it will be followed by this:
In case, you see dialog or pop-ups you can choose to close them or skip them to fill them later. Like I skipped this one:
Now it is time to see an example.
WSDL Example for SoapUI Testing
We are going to see an example of a calculator WSDL here. WSDL stands for Web Service Definition Language which is nothing but an XML format used to describe functionality offered by a web service.
Step 13: Click on File > New SOAP Project.
Step 14: In the next dialog box provide a project name and a WSDL that you need to work with.
I have a WSDL of a calculator with me here:
http://www.dneonline.com/calculator.asmx?wsdl
I am just going to simply paste it in the Initial WSDL box. If you have a WSDL with you, you can simply browse and select that using the browse button located next to the box.
Wait for a bit. This is what you will get:
Step 15: Flair open Add. You will see the following.
Step 16: Double click on Request 1, and it will open the following:
The question mark symbols are user inputs. You can replace them with numbers you wish to add. Let’s just add 5 and 9.
Step 17: Type 5 for intA and 9 for intB and then click on the green button which means submit request. Alternatively, you can press Alt + Enter as well.
This is what you will get as result.
Ain’t that 14?
That’s it folks! You can try different WSDLs and come up with the results you are looking for.
Check out more cool stuff on DITD.