-
Book Overview & Buying
-
Table Of Contents
Mastering SoapUI
By :
Approaches to test SOA architecture are usually based on the scope of the project and requirements to test. Let's look at an example.
Following is a diagram of a three-tier architecture based on SOA architecture:

So we have three integration points which makes us understand that we need integration testing also with functional, performance and security testing. So let's sum up the types of testing that are required to test end-to-end Greenfield projects.
A web service may expose single or multiple functionalities via operations and sometimes we need to test a business flow which requires calling multiple services in sequence which is known as orchestration testing in which we validate that a particular business flow meets the requirement.







Here you can create a TestCase and add validations to it at run time.

Let's take an example of how to test a simple web service functionally.
Test case: Validate that Search Customer searches for the customer from the system database using an MSISDN (Telecom Service).
Please note MSISDN is a unique identifier for a user to be searched in the database and is a mandatory parameter.
API to be tested, Search Customer:
<v11:SearchCustomerRequest>
<v11:username>TEST_Agent1</v11:username>
<v11:orgID>COM01</v11:orgID>
<v11:MSISDN>447830735969</v11:MSISDN>So to test it we pass the mandatory parameters and verify the response which should get us the response parameters expected to be fetched.
By this we validate that searching for the customer using some Search criteria is successful or not, similarly, in order to test this service from a business point of view we need to validate this service with multiple scenarios. Following is a list of a few of them.
Considering it's a telecom application search customer service:
Here is how the response looks:
Response Search Customer
<TBD>
Previous are some examples of Priority1 scenarios that you will require to test this service we will give it a deeper look in the following chapters.
So is it really possible to perform performance testing in SoapUI?
The answer is yes, if you just want to do a very simple test on your service itself, not on the orchestration.
SoapUI does have limitations when it comes to performance testing but it does provide you a functionality to generate load on your web service with different strategies.
So to start with, once you have created your SoapUI project for a service operation, you can just convert the same to a simple load test. Here is how:




We will learn more about performance testing using SoapUI in the following chapters.
API and web services are highly vulnerable to security attacks and we need to be absolutely sure about the security of the exposed web service depending on the architecture of the web service and the nature of its use.
Some of the common attacks types include the following:
SoapUI's security testing functionality provides scans for every attack type and also, if you want to try a custom attack on the service by writing a custom script.
So the scans provided by SoapUI are as follows:
Following are the steps for how we configure a security test in SoapUI:
Load Tests in SoapUI.



For this pane you can select and configure scans on your service operations.





Now we have learnt how to configure a simple security test in SoapUI, we will learn more about it in detail in the coming chapters.
Change the font size
Change margin width
Change background colour