EDUCBA

EDUCBA

MENUMENU
  • Blog
  • Free Courses
  • All Courses
  • All in One Bundle
  • Login
Home Software Development Software Development Tutorials Software Development Basics Soapui Load Test

Soapui Load Test

Updated April 6, 2023

Soapui Load Test

Introduction to Soapui Load Test

SoapUI is an open-source tool for testing Web Services; it may be SOAP web services or the REST web services or HTTP based web services. Load testing in SOAP is one of the forms of performance testing used to check applications’ behaviour under a specific load. In this topic, we are going to learn about Soapui Load Test.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Load testing comes under Performance testing, including increasing load and checking how the application or system behaves under high load. At the time of load testing, we can also monitor response time, throughput, server condition without breaking the target environment. We also have various performance testing types such as Baseline tracking, Stress testing, Soak testing, and Scalability testing.

Load testing is unique as compared to other types of testing,

  • A functional test case that allows the creation and modification of performance quickly.
  • Performance test in SOAP is created from existing functional tests.
  • The performance of web services can be validated under different loads.
  • Distributes its load across a number of load agents; a number of load agents might vary based on a set of input conditions.
  • Allows advanced reporting to capture its performance parameters.
  • Allows End-to-End monitoring of systems performance.
  • Simulates high volume and real-world load testing.

How to create a Load test in SoapUI?

We shall create a SoapUI project and run a load test with the below example.

Example #1

  • Create a new project in SoapUI; here, we are using SoapUI 5.3.0 version

Example 1

  • After clicking new Soap project, a pop up appears,

Soapui Load Test output 2

Give the project name of your choice and WSDL url, then click on ok.

  • Provide details as mentioned below,

Soapui Load Test output 3

When clicking on OK, This is how wsdl setup is looked like,

Soapui Load Test output 4

  • To create a test for the wsdl file, right-click on any request where you can find ‘Add to test case’ or in some of the SOAP versions, you can press CTRL+N to make a load test case. Give TestSuite name and TestCase name, click on Ok.

Soapui Load Test output 5

  • By clicking on Ok, this is how the SoapUI looks like,

Soapui Load Test output 6

  • We have created a test case below,

Soapui Load Test output 7

  • Creation of load test case.

Creation of load test case

  • This is how the actual load test console looks like,

Soapui Load Test output 9

By default, the load test window is configured to run for 60 seconds, which is labeled as Limit, but also it can be adjusted accordingly. Also, it runs with default 5 threads using a simple load strategy.

  • Clicking on the green arrow option on the top left corner, test case ‘Add-Request1’ would run, and below is the console of how it shows after load test runs.

Soapui Load Test output 10

It shows the load test start time and end time; button ‘LoadTestLog’ shows the test log, i.e .start time and end time, failures if any.

Soapui Load Test output 11

  • Then we add assertions to load the test case, click on the plus option where a pop up appears, select any option. Here, we are selecting ‘Step Maximum’.

Soapui Load Test output 12

  • Then clicking on Ok, opens a pop-up, Select the test case from the drop-down, and set the max time to 1000 milliseconds in which it takes to a service request from web service.

Soapui Load Test output 13

Here, max time is assumed to be 1000 milliseconds; hence if the response from web service takes more than 1000 milliseconds, an error will be logged further assertion failing. If the Load test takes less than 1000 milliseconds, assertion passes.

  • Now we need to run the load test again,

Soapui Load Test output 14

This is how we can add assertions to load test web service requests. Other assertions like ‘Max Error’, ‘Step Average’, ‘Step Status’, ‘Step TPS’.

Max errors: It is used to verify the test’s total errors should not exceed the specified value.

Max errors Assertions

Max Absolute Errors: Absolute maximum number of errors allowed for test step.

Max relative Errors: It can have a value between 0 and 1. If the value is set to 0.2 as above, at the max, 20% of the specified test step’s run should result in an error.

Step Average: Used to verify the average of test step not exceeding the specified value.

Step Average Assertion

Max Average: Checks if the test step average is greater than the defined value and log an assert error.

Sample interval: Step count used to calculate average.

Step Status: Used to verify test step is not failed with an error.

Step Status Assertion

Step TPS: Used to verify transaction per second of the test step.

Name: Assertion name.

Minimum Requests: Minimum number of requests to be executed before assertion being applied.

Minimum TPS: The desired value of TPS

Max Errors: Value by which test should be cancelled

Test Step: Shows the entire test setup defined under the test case and lets the user select the one on which the user wants to apply assertion.

Soapui Load Test output 18

Example #2

Load Test for Multiplication

Post applying above mentioned steps till step 9,

Load Test for Multiplication

Soapui Load Test output 20

We apply the assertion of ‘Step Maximum’ to Multiply_request1 and give maximum time delay to be 100ms, and hence the assertion fails, showing the LoadTestLog as ‘time[277] exceeds limit [100] discarded’ and also err rate is at 184 as shown above. Soap Respone is Valid as per our assertion.

Example #3

Division load test

Division load test

Load test case passes with ‘Step Maximum’ assertion and with err 0.

Step Maximum

Soapui Load Test output 23

The below screenshot shows the statistics for the load test on the divide.

statistics for the load test

Assertions verify the conditions of tests and decide whether tests are fail or pass, and is said to be completed only if it is completed without throwing any exception.

With this, we shall conclude this article. Let’s have a short recap on the ‘SoapUI Load Test’. We learnt what SoapUI is and what is it used for; out of many types of testing, we went through the Load test, which is a part of Performance testing. Illustrated some of the examples in SoapUI, got to know about assertions and what type of assertions can be applied during load test of the web service calls.

Recommended Articles

This is a guide to Soapui Load Test. Here we discuss what SoapUI is and How to create a Load test in SoapUI, and the examples. You may also have a look at the following articles to learn more –

  1. What is SoapUI?
  2. SoapUI Alternatives
  3. SoapUI Interview Questions
  4. SOAP Web Services Interview Questions
All in One Excel VBA Bundle
500+ Hours of HD Videos
15 Learning Paths
120+ Courses
Verifiable Certificate of Completion
Lifetime Access
Financial Analyst Masters Training Program
2000+ Hours of HD Videos
43 Learning Paths
550+ Courses
Verifiable Certificate of Completion
Lifetime Access
All in One Data Science Bundle
2000+ Hour of HD Videos
80 Learning Paths
400+ Courses
Verifiable Certificate of Completion
Lifetime Access
All in One Software Development Bundle
5000+ Hours of HD Videos
149 Learning Paths
1050+ Courses
Verifiable Certificate of Completion
Lifetime Access
Primary Sidebar
All in One Software Development Bundle5000+ Hours of HD Videos | 149 Learning Paths | 1050+ Courses | Verifiable Certificate of Completion | Lifetime Access
Financial Analyst Masters Training Program2000+ Hours of HD Videos | 43 Learning Paths | 550+ Courses | Verifiable Certificate of Completion | Lifetime Access
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Java Tutorials
  • Python Tutorials
  • All Tutorials
Certification Courses
  • All Courses
  • Software Development Course - All in One Bundle
  • Become a Python Developer
  • Java Course
  • Become a Selenium Automation Tester
  • Become an IoT Developer
  • ASP.NET Course
  • VB.NET Course
  • PHP Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more