2. Contents
SoapUI NG - Pre-requisites and Installation.
What are Web services.
What is SoapUI.
SoapUI NG - Plan and Prepare
How to Analyse API’s from Front End
Running API Functional Testing Suite
Reports
3. Windows:
1GHz or higher 32-bit or 64-bit processor
4GB of RAM
300MB of hard disk space for installation
Windows XP or later
Linux:
1GHz or higher 32-bit or 64-bit Intel or AMD64 processor
4GB of RAM
300MB of hard disk space for installation
Ubuntu, Red Hat, Fedora, CentOS, Suse; or other distributions
Java 7
Mac:
1GHz or higher 32-bit or 64-bit Intel or PowerPC processor
4GB of RAM
300MB of hard disk space for installation
(Ready! API and HermesJMS)
Mac OS X 10.7.3 or later; Mac OS X Server 10..7 or later (Java JDK 7)
Pre-requisites, Installation and Running
3
4. What are Web services
A Web Service can be defined by following ways:
is a client server application or application
component for communication.
method of communication between two devices
over network.
is a software system for interoperable machine to
machine communication.
is a collection of standards or protocols for
exchanging information between two devices or
application.
java
. Net
PHP
. Net
PHP
Web
services
java
5. What is SoapUI
SOAP UI is the leading open source cross-platform
API Testing tool
SOAPUI allows testers to execute automated functional, coverage
test, data driven, and load tests on different Web API.
SOAPUI supports all the standard protocols and technologies to
test all kinds of API's.
SOAPUI interface is simple that enables both technical and non-
technical users to use seamlessly.
6. How to Analyze API’s From Front End
Select Inspect by right clicking the window.
Go to the Network Tab.
Write API in search filter.
All the API’s will be hit on that window.
Some of the sub tabs are as:-
• Header
• Response
Request Method
• GET
• POST
• DELETE
• PATCH
7. SoapUIWeb – Plan & Prepare
7
There are multiple ways to create a functional test in Ready! API. Steps to perform API testing:
1.Run ReadyAPI ! From desktop.
2.Open soapUI and Select File > New > Functional Test.
3.Select the URL option.
Steps to create API Functional Test in SoapUI Web
8. SoapUIWeb – Plan & Prepare
4. Enter the URL of REST service. We can specify multiple URLs to
create separate requests from.
5. We can create a single test case for all specified URLs or a
separate test case for each request:
9. Running API Functional Testing
Right click on Test case and select Add steps.
Select any Test step .
Test steps
•Data Sink
•Data Source
•Data Gen
•Data Loop
•Soap Request
•Rest Request
•Property
•Property Transfer
•Groovy Script
10. Running API Functional Testing
Run functional SoapUI Tests
From UI
• Click to test case of project.
• On right hand side click on start.
• For stop click the stop button.
From TestRunner GUI
To launch the runner from the ReadyAPI user interface, select the appropriate
menu command.
• In SoapUI, right-click the test case you need and select Launch TestRunner.
11. Running API Functional Testing
Ready API displays a dialog box, where you can
configure the run parameters.
Click on Launch, new dialog box display.
12. Running API Functional Testing
Save File with .bat extension.
Double click the batch file.
13. Reports
Results are displayed in SoapUI by adding a
step Data Sink
Results are displayed in excel sheet with
extension of .csv format for future.
Response time headers are also added to
check the response Time of each API that are
running in Soap UI.