Skip to Content
1. Scenario :

  1. You have developed a synchronous interface (webservice) in XI and want to benchmark the performance of the webservice by generating the required message load
  2. Applied a new Service Pack and want to test the impact of the service pack on the performance time of services
  3. Want to simulate the timeouts produced in your production landscape due to high call volume
  4. Want to stress the Integration hub to see how the resources (threads/memory) are being handled by XI

2. Problem :

There are many ways for simulating message load to XI. Simplest of all is to have have a super users group who could call the XI webservice repeatedly for a given period of time. But this approach will not generate the desired pattern of load (simultaneous load to XI). The other approach would be to automate the testing process by writing custom applications for making concurrent XI calls using thread polling. The main problem with this approach is we need to build a very generic testing tool that could test any webservice, this could take up a lot of development time and resources.

 

3. Solution :

The best way to achieve a true concurrent heavy message load is to use automated testing suite like LoadRunner from MERCURY . LoadRunner provides a means to generate load based on number of concurrent users with behavioral patterns. These users can be configured to make the webservice calls all at once or based on user pattern or time interval or continued execution for a fixed interval of time. LoadRunner consists of the following components

  1. Quality Center : Acts a data store for storing all the load scripts, can also be used for scheduling scripts

  2. VUGen (Virtual User Generator) : Is used for generating load scripts, can used to for recording user actions webservice/websites

  3. Controller : This is the component that is used for running the scripts, scenarios can be created where the number of virtual users can be defined. Controller forks the calls to the various load generators.

  4. Load Generators : primarily responsible for executing the scripts. Each Generator has a maximum limit of 200 concurrent users.

Note : This blog is not intended to provide in dept information on Mercury LoadRunner but is more concentrated on how to use it for testing webservices.

4. Example :

Step 1: Scan the wsdl and generate the script using VUGen. Please look at the technical article “Load Testing Web Services in an ESA Landscape, Part I“. This is a very good article that provides detailed steps on generating the scripts. Scripts can either be saved into Quality center or to the local disk.

Step 2: Launch Controller, create a new scenario and select the script to run from Quality Center or from local disk.
image

Step 3: In the controller choose the number of virtual users(2) , load generator(3) and start the scenario.

image

Step 4: The run tab shows real time statistics like number of passed transactions, average response time, number of virtual users running.

image

 

5. Conclusion

Mercury LoadRunner testing suite is a very handy when trying to simulate realistic volume. It can be used in many ways in a large scale ESA implementation, especially the testing scripts come really handy during SP upgrades and for getting a bench mark on the performance of the services. 

6. How to get it :

Mercury has now partnered with SAP and is now providing LoadRunner under a combined Licensing from SAP.

7. More Information :

SAP LoadRunner by Mercury

Mercury LoadRunner

8. Useful Articles on using LoadRunner :

Load Testing Web Services in an ESA Landscape, Part I

 

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

  1. Michal Krawczyk
    Hi,

    I wish I would have this tool on every project:)
    thanks for sharing info about this tool lond time ago as without you I wouldn’t know about it 🙂

    Regards,
    michal

    (0) 
    1. Hello Michal,

      You are most welcome. I am just doing my share of contribution to the community. 

      Best Regards,
      Naveen

      (0) 
  2. Koffer Shen
    Hi, I have the experience for more than 1 year concentrating on this technology.

    And now we are moving to SAP Netweaver, so my main task here is to learn SAP Netweaver.
    Hope we can communicate more later.

    Thanks
    Koffer

    (0) 
  3. Abhijeet Ambekar
    Hi ,
      SOAP UI can also be used for Load test. Just add your request to Test Cae, Soap Ui generates a Test Suite. On the screen displayed you will have option for Load Test with different configurable options:
    Test Strategy, degree of randomness, number of concurrent threads, etc.

    Also it displays a statistics in graphical format for the results of Load test.

    Hope this input will be of help to some one looking out for Load test options for SOAP scenarios.

    Kind Regards,
    Abhijeet.

    (0) 

Leave a Reply