Go back to all articles

SoapUI Tutorial: A Detailed Guide on how to create Project, Test Suite, TestCase and TestStep

Nov 9, 2020
6 min read

Web and API testing is an integral part of website testing. However, without a comprehensive software testing tool, it’s difficult to find hidden errors inside the software. Open-source tools like SoapUI provide us the perfect set of features for functional and non-functional testing. This is why it is widely used for Web Services testing.

For proper testing, we must organize all our tests in a proper format. Without it, software test automation tools cannot work with the desired functionality. For this reason, SoapUI provides a collection of standard guidelines that help us create test cases in a defined hierarchy.

In this article, we will provide a detailed guide on how to create Project, Test Suite, and TestCase in SoapUI.

Table of Contents

  1. Understanding the SOAP Protocol 
  2. Structure of Test Cases in SoapUI
  3. Projects in SoapUI
  4. TestSuite in SoapUI
  5. Creating a TestSuite in SoapUI
  6. TestCase in SoapUI
  7. Benefits of Using SoapUI
  8. Conclusion

Understanding SOAP

If you want to use SoapUI effectively, you have to understand the basics of the SOAP. SOAP (Simple Object Access Protocol) is a platform-independent XML-based protocol that enables the communication between applications written in different programming languages. For example, it makes it possible for a system developed in .NET to exchange messages with a system created in Java. 

SOAP messages are encoded in XML and consist of <Envelope> element with two child elements: <Header> and <Body>. <Body> element also contains <Fault> subelement. These messages are used both for requests and responses. And one of the most used transports for SOAP messages is HTTP. 

SOAP is one of the protocols supported by SoapUI (along with  REST and JMS).

Structure of Test Cases in SoapUI

SoapUI Testing

SoapUI test structure

SoapUI follows a three-tier hierarchy to create test cases. TestStep is at the lower level of the hierarchy and is used to verify a single action. Several TestSteps are grouped in TestCases, and TestCases are grouped in TestSuite.

Multiple TestSuites are organized in Projects, and several Projects can be available through a single Workspace. So, to run web service testing with SoapUI, we first enter Workspace and create Project; create TestSuite; develop test cases for individual scenarios, and then outline TestSteps for our test cases.

Projects in SoapUI

Project is a set of all your TestSuites, TestCases and TestSteps you need to test for one product. You can create a SOAP or REST project or choose an empty one. 

There are multiple ways to create a new project:

  • select New SOAP Project/New Rest Project options on the main screen
  • right-click on the “Project” in the left navigation bar and select the type of project you need
  • choose the button with the type of project you need on the upper navigation bar
  • or left-click on the “Project” in the upper menu

Also, it is possible to import projects.

SoapUI Testing

New project creation in SoapUI

TestSuite in SoapUI

A TestSuite is a group of several TestCases. A SoapUI project can contain any number of TestSuites

Creating a TestSuite in SoapUI

To create a new TestSuite in SoapUI, follow the steps below:

  • Right-click on the Project in the left navigation bar or left click on the Project menu on the top navigation bar. Select New TestSuite option.
  • Also you can use CTRL+T combination
SoapUI Testing

TestSuite creation in SoapUI

You will see a dialogue box where you can specify the name of the TestSuite. After clicking on the “OK” button, an empty TestSuite will be created. 

It worth noting that with SoapUI you can generate TestSuite for all the methods provided by the WebServices in a single step. To do that, right-click on one of SOAP services in your project and select the option “Generate TestSuite”. Select suitable options in the window that will appear, set your new TestSuite name, and you are done.

SoapUI Testing

Generating TestSuite in SoapUI

TestCase in SoapUI

А test case is a set of instructions on what actions and in what sequence we have to perform to validate the expected behavior of the system. And SoapUI TestCase is a set of TestSteps — that is, steps that need to be executed in a given sequence to test the system. A SoapUI TestSuite can contain multiple TestCases.  

So, how to create a TestCase in SoapUI?

Creating a TestCase in SoapUI

SoapUI Testing

New TestCase creation in SoapUI

  • Right-click on one of your TestSuites in the left navigation bar or click on the “Suite” menu on the top navigation bar. Select “New TestSuite”. You can also press CTRL+N.
  • A dialogue box will appear, where you can specify the name of the TestCase.
  • A new empty TestCase under the TestSuite will be created. 

TestStep in SoapUI

TestStep in SoapUI describes one particular step that must be performed to validate the functionality of the service to be tested. One TestCase can contain multiple TestSteps. 

SoapUI Testing

New TestStep creation in SoapUI

There are different kinds of steps available: SOAP Request, REST Request, HTTP Request, Conditional Go To, Delay and much more. For example, this is the way we can add a TestStep to the SoapUI TestSuite:

 Creating a SOAP TestStep in SoapUI

  • Right-click on of your TestCases and click on “Add Step >> SOAP Request”. You can also click on “Case” in the upper menu.
  • Specify the name of your new TestStep.
  • In the new dialogue box select the operation to invoke for request.
  • Add assertions to your request
  • A window with your SOAP request will open. Edit the XML, if necessary.

 Creating a REST TestStep in SoapUI

Now imagine that we have to test a REST service. For testing REST services, most of the steps will be the same, but when creating TestSteps, we will add REST request, not SOAP one. That is what you have to do:

  • Create a new REST project
  • Add a new TestSuite under the project named
  • Add a new TestCase
  • Right-click on the created test case and select “Add Step >> REST Request” .
  • Enter the name of the test step
  • Select the endpoint of the service you want to test.
  • Select the “REST method” and click “OK”

SoapUI Benefits

Free and powerful tool

SoapUI is a free open-source testing solution. It also has a paid Pro version called ReadyAPI with some additional features for testing and reporting. But even basic functionality of SoapUI is enough to perform functional and load testing of web services. 

User-friendly GUI

SoapUI interface is simple and easy to learn. All the actions you need can be found in drop-down menus or on the upper navigation bar. Also SoapUI allows to use drag-and-drop for test creation, so you don’t need to code to make a test case.

Scripting with Groovy

If you need to create a complex assertion or to manipulate behavior of your test case, you can write scripts with Groovy. Groovy scripts also allow you to integrate Java libraries. And ReadyAPI has even more scripting options.

Integration with automation tools

It is possible to integrate SoapUI with popular automation tools: Maven, Hudson, Junit and Apache – Ant.

Data-driven Testing

ReadyAPI, a paid version of SoapUI, supports data-driven testing. It means that data is stored in some external source and used for driving the test. So one can spreadsheet or XML with test data to perform bulk testing.


SoapUI follows the typical hierarchy of any software testing tool, as it starts from Projects, Test Suites, and ends with Test Steps. Also it provides us with tools for auto-generating TestSuite and for creating TestSuite, TestCase, and TestSteps manually.

SoapUI is a useful tool for testing web and microservices. Without proper web service testing, you cannot build robust applications with different functionalities while ensuring that these functionalities are easy to test and integrate. PFLB is a software testing company. Our mission is to ensure the best software quality for our clients. We have served over 500 companies across a wide variety of domains that range from finance and healthcare to retail and technology. With years of experience at our disposal, our testers have learned how to ensure seamless communication between different software systems with the help of API testing.

Table of contents

Related insights in blog articles

Explore what we’ve learned from these experiences
5 min read

Software Testing Conferences in 2024

software testing conferences preview
Feb 22, 2024

We have compiled a list of the best software testing conferences to visit in 2024. In this article, we’ll explore the why, what, and how of attending these conferences, shedding light on the latest trends, must-attend events, and tips to maximize your experience. The Software Testing Methods Conference aims to unite academic scientists, researchers, and […]

5 min read

TestCon Europe 2024: Your Gateway to the Future of Software Testing

testcon europe 2024 preview
Jan 30, 2024

TestCon Europe 2024, the premier software testing conference, comes to Vilnius, Lithuania, from Oct 22-25. Join experts and enthusiasts onsite or online to explore the evolving landscape of software testing. Topics include Shift-Left Testing, TestOps, AI-Powered Testing, and more. Don't miss your chance to be part of this enriching experience. Secure your spot today at TestCon's official page and be at the forefront of software testing excellence.

4 min read

DevDays Europe 2024 – Software Development Conference

devdays 2024 preview
Jan 24, 2024

DevDays Europe is the ultimate software development conference that aims to bring together the brightest minds and innovators in the software development community. Join the conference for an immersive experience filled with transformative insights, collaborative opportunities, and the latest cutting-edge technology. The DevDays Europe 2024 will be happening both on-site and online, allowing everyone to join the event in their preferred format.

6 min read

The Road to a Successful Software Release: an Inclusive Checklist

The road to a successful software release checklist
Dec 18, 2023

Releasing software is a multifaceted process that demands meticulous planning and execution. A software release checklist is a structured list of items and tasks that development and operations teams follow to ensure a successful release of a software product. This checklist serves as a comprehensive guide, covering various aspects of the software development life cycle. In a way, it substitutes for a roadmap, helping teams navigate the complexities of releasing software in a controlled and efficient manner. To ensure a triumphant launch, a comprehensive software release checklist is indispensable. In this guide, we will delve into the key aspects that demand your attention before the grand release.

  • Be first to know

    Once a month we’ll be sending you a letter with all the useful insights that we could find and analise