Sunday, November 30, 2014

Performance & Load testing - Part 2

Performance & Load testing a WCF service using Visual Studio (Part 2)

In the previous blog, I explained how to create a web test for your service and parametrize the request xml. Next step is to use this web test in our performance and load testing.

In the same project where your web test is present, right click and select load test. A load test wizard will open. 
















Click Next and enter the name of the scenario and select whether you want think times between execution or not.


Click Next and enter the load under wish you wish to test your endpoint. It could be constant load or increasing load















Click Next and select the model of your test. When I say model I mean, how you wish to run your test as shown below:-















Click Next and add your web test for execution.















Click Next and select the network type for you test. If you are not sure, leave it with LAN. 


Click next and select the browser you wish to run this test in. Since we are just testing our service endpoint. Browser really doesn't make any difference.















Click next and select the computer which you wish to monitor during test execution. The system will be monitored for CPU & memory etc















Click next and finally enter the load test duration and test iterations you wish for your performance test and click Finish















Now your load test is configured for execution and right click and click run load test. You should see screen as below with the current status of the test. I took the screen shot when it was finished so don't be afraid if it looks a bit different :)





















Once the test is finished, you will have all the stats with you clearly defining the response time, response at 90th percentile and 95th percentile etc.

Hope you enjoyed doing some performance testing :)

No comments :

Post a Comment