Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand
  • Advertisements

Load Testing SharePoint 2013 Site

Posted by Paul on March 4, 2014

In this article we can explore the offering of Visual Studio 2012 Ultimate for Load Testing a SharePoint 2013 site.

What is Load Testing?

Load testing is the process of putting demand on a system or device and measuring its response. 

For example, we can test a SharePoint Site by simulating a load of 100 users at the same time. We can measure the response, possible-errors to validate the load-capacity of the servers(s) and measure Performance, Scalability, Endurance and Volume.


Who Performs Load Testing?

Often load testing is performed by Automation Testers on a pre-configured test environment with same-topology of the production system.

What is the Configuration needed?

Often load testing is performed by Automation Testers on a pre-configured test environment with same-topology of the production system.

What we can infer from the results?

We can use the results for Capacity Validation for coming up with better Capacity Planning.

For example, if the expected response time is 3 seconds for 500 users / minute scenario, and the test result is showing 5 seconds, surely we need to optimize server (s) or change topology based on the bottle necks.

Load Testing helps us validating & improving performance yielding maximum-productivity from the system.

What is the version of Visual Studio 2012 required for Load Testing?

Visual Studio 2012 Ultimate is required for doing Load Testing.


You can get a trial download from here.

Simple Load Testing

To perform a simple load testing, please follow the steps below:

Step 1: Create new project

Create a new project of type Web Performance and Load Test Project


You will get the following screen.


Step 2: Start Recording

Recording is the process of teaching Visual Studio about our activity. The browser will be launched & the URL entry, mouse clicks, keyboard entries will be recorded. The recording will be used for play back later.

Click on the Start Recording button as highlighted above. You will get the following browser window.


Type the URL and enter credential information.

Step 3: Stop Recording

You can see the left pane logs all the requests for pages & scripts. Click the Stop button to stop recording. We are just testing a simple home page load scenario.


Visual Studio will try to find the dynamic parameters like text box entries. The dynamic parameters should be replaced with on-the-fly unique values to avoid duplication.


Time being we do not have any dynamic parameters. You should be getting similar results below in Visual Studio.


Step 4: Stop Recording

You can delete all the URLs except one.


Step 5: Add Loop

We are now adding a loop of 10 counts to the above test. Right click on the url node and choose the Add Loop option.


In the appearing dialog box choose Counting Loop and enter property as 10.


Click the OK button to save changes & you will see the new loop item as shown below.


We are going to try a loop of 10 times to ensure proper page response within 3 seconds.


Please note that 3 seconds is one standard-measure of page response time.

Step 6: Play Recording

Choose the Run Test option from the menu.


You can see the test will get executed 10 times & the result will be similar to below.


You can see that the average response time is less than 3 seconds. This concludes our simple test scenario.


The above is a simple test scenario. Once you gain confidence, you can go for higher levels like:

1. Opening list pages, clicking new item, entering data, clicking save, changing dynamic parameters

2. Testing against production-topology simulated environments

3. Testing with simulated user-volume

4. Passing Credentials

5. Using various load-testing options available in Visual Studio



In this article we have explored an overview of Simple Load Testing of SharePoint sites. I hope this will help you gain the grounds for advanced real world scenarios.


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