SoapUI Beginners Tutorial
What is SoapUI
SoapUI is a cross platform functional testing solution. It is free and open source. SoapUI allows to create and execute functional, compliance, regression and load tests easily with its easy to use graphical interface and features with enterprise class. It supports all standard protocols and technologies and it provides complete test coverage.
Advantages of SoapUI
- User Friendly:- SoapUI is highly user friendly and very comfortable for even the freshers.
- Easy Functional Testing:- With its drag and drop feature for creating test suites, test steps and test requests, functional testing is very easy.
- Vulnerability Testing:- It is the testing to find out the weak areas of website and SoapUi has options to protect website from hackers and viral software applications.
- Load Testing:- SoapUI can estimate the load balancing ability of web applications.
- Automation:- REST and SOAP based services can be used to validate SoapUI which is comfortable interface for all users.
- Data driven Testing:- Data driven test is supported by Soap Pro.
Opportunities for SoapUI professionals
When the demand for different types of software programs and applications are increasing, demand of testing automation professionals are also increasing. SoapUI with its attractive features has become one of the most sought after tool on our planet earth and many developers are trusting on it. The demand for SoapUI experts keeps on increasing.
- Installation: Follow below steps to install SoapUI on windows machine
Open URL https://www.soapui.org/downloads/soapui.html and click Get It button below the SoapUI OpenSource option
Once installer downloaded, start installation by double click
Soon you will see setup screen
Click next and you will be asked to accept license agreement. Select “I accept the agreement”
Click next and leave default option to install
Click next and you will get option to install additional components. Leave default selected options
If HermesJMS option selected, you will be asked to accept license agreement
Click Next until you reach the below screenshot. Installation starts
Note: Follow link https://www.soapui.org/getting-started/installing-soapui.html to install SoapUI on any other platform.
Click finish button to complete installation. Now you are ready to use SoapUI
- Create Test Suite: We are going to use Currency Converter web service for this tutorial. In SopaUI select File – New SOAP project to create new project.
Enter Project Name and WSDL, check Create Requests and Create TestSuite check boxes and click OK
SoapUI prompts to Generate Test Suite, click OK.
Enter Test Suite, click OK
On the left hand side, you can find workspace navigator. After successful project creation, you can find generated interfaces and test suite.
Double click ConversionRate test request under Test Steps to open request and response window. The ConversionRate operation takes two input parameters FromCurrency and ToCurrency and returns current conversion rate of currencies.
Replace “?” between tags with “USD” and “INR” then submit request by clicking green play button on the top of Request window.
Once response received from server, you can see conversion rate in Response window
- Assertions: We need to validate response data received from server. SoapUI provides different assertions to validate; we will see some commonly used assertions.
Click Assertions below the request window, here you can find added assertions list. To add assertion, click plus (+) sign to open assertions dialog
Below are the assertions available in open source version of SoapUI
Property Content
Compliance, Status and Standards
Script
SLA
JMS
Security
No comments:
Post a Comment