Parameterized Load Testing Using soapUI

Posted: September 16, 2011 in soapUI
Tags: , , , , ,

Have you ever wondered –
how you can perform the parameterized load testing using soapUI (open source version)?

I had a chance to author a guest blog for SmartBear (which acquired eviware) about the capability of soapUI to perform the load test. So i decided to cover the topic of “Parametrized Load Testing in soapUI” and is now available at or direct link to the blog

Read & react with comments or feedback.
Till next blog, Happy reading & continue sharing !

P.S. This blog is written considering the soapUI open source version. Same can be achieved in soapUI Pro using the DataSource/Loop.

  1. YoU.Nike says:

    great sharing….next few days i also will cover the load test in soapui, so will reference your post here, maybe help me further know on how to parameterized load testing…thanks again~

  2. Zee says:

    Hi Pradeep,

    Thank you for your SoapUI load testing blog.

    There are a couple of question on the post below which still could benefit from your further feedback if you have the time.

    Thanks in advance and thank you for the blog.



    • Hi Zee,

      I have replied to your question and waiting for Alex to approve the same (to appear on blog).
      Below pasted is the reply :

      As per the request data posted in above comments, we have to modify the same slightly. Modified version would look like this :



      Now to use the above request i need to have to create some property variable at TestCase level named as “Dept” & “EmpId”.

      And the groovy test step (should be first in the sequence of teststep) will contain following :

      @Author : Pradeep Bishnoi
      @Description : Randomly read the input value from the input file. Each input value is entered in a new line. So, my file now contains 11 lines/input values.
      def myTestCase = context.testCase

      File empId = new File(“d:/my_Input_EmpId.txt”)

      File dept = new File(“d:/my_Input_Dept.txt”)

      List empIds = empId.readLines()

      List depts = dept.readLines()

      def x = Math.random()*10 // multiplying random with 10 so the resulting value would be <= 10.
      i = String.valueOf(x).getAt(0)
      i = i.toInteger()
      myTestCase.setPropertyValue("EmpId", empIds[i]) context.expand( '${#TestCase#EmpId}' )

      myTestCase.setPropertyValue("Dept", depts[i]) context.expand( '${#TestCase#Dept}' )

      I hope this will help.

      Best Regards,
      /Pradeep Bishnoi

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s