How To: Web Service Load Testing Using VSTS 2010

Apart from performance testing for web sites, I have done load testing on web services for many of our projects. I will show how to create a web test for web service using Visual studio team system 2010 (VSTS) which can be used in load testing.

Steps to create web test for web service:

Click on start, select VS, right click and select run as administrator

You can get the soap envelop and soap action values by visiting asmx page of web service under test

The web service under test requires two values challenge and cardguid, it processes and returns response. In the above code am passing challenge code and card guid, these can be hard coded. But I have data bind them, where HSM1 is database, HSM is table name and challengecode is column name. The parameters values should be in {{ parameter name }} or simply a value without parenthesis.

Data binding is simple, click on the add data source button and select a database

Run the web test and make sure there aren’t any issues before using it for load testing

Your web test for web service is ready and your good to go ahead and use in a load test scenario ( For more information on performance testing, you can refer to my blog post on website performance testing simplified)