Venkat Matta

it's all about the Performance Testing

WS by SOAP UI

Load Testing is quite unique in SoapUI, we have created a functionality that allows you to create Performance Tests quickly and modify them easily. The main differentiator is that Performance Tests in SoapUI generally is  created from existing Functional Tests. This allows you to very quickly create advanced Performance Tests. You can then validate a Web Service performance under different Load scenarios, maintain functional validations to see that they don’t break under load, run several load tests simultaneously to see how they affect each other and much more. Let’s move on to the tutorial. What we are going to learn is the following:

  1. Create a new LoadTest
  2. Run The LoadTest
  3. Add Assertions to the LoadTest

1) Create a new LoadTest

  1. Right click on a TestCase in the Navigator and select New LoadTest
    Create new LoadtTest in SoapUI
  2. A New LoadTest Dialog will open. In it, enter the name of your LoadTest and click OK.
    New_LoadTest_Dialog

The LoadTest will open. Done! It really is that simple in SoapUI. Let’s run it.

2) Run The LoadTest

When a new LoadTest is created, it’s preconfigured to run for 60 seconds (top right) with 5 threads using the Simpleload strategy.

Simple LoadTest Strategy in SoapUI

  • Modify these values as desired
  • Run the test.
    You will see the statistics table in the middle beginning collecting data and after 60 seconds should have a finished LoadTest.

Finished LoadTest In SoapUI

We have now successfully run our first Load-test, let’s add an assertion to do Load Validations.

3) Add assertion to the LoadTest

  1. In the LoadTest editor, select the LoadTest Assertion tab at the bottom of the editor
    LoatTest Assertion Tab
  2. Click the Add Assertion button in the LoadTest Assertion menu bar to add an assertion.
    Add assertion button in Load Test Editor
  3. The Add Assertion dialog will now open, select Step Maximum. Select Maximum sets a Max Time in milliseconds that the responses are allowed to take, if the time exceeds what we’ve set, the test will fail. Click OK.
    Add LoadTest assertion dialog
  4. The TestStep Max Assertion window will now open. As you can see we allow a max response of one second, 1000 milliseconds. Let’s not modify anyting, Click Ok
    TestStep Max Assertion
  5. The Step Maximum assertion will now be successfully added.
    TestStep Max inserted
  6. Now run the test again. If the responces take too long, you should see the numbers in the err column add up quickly.

    LoadTest with errors

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on March 22, 2016 by in Webservices.
%d bloggers like this: