Web performance/load Testing SharePoint 2013 for Beginners (part 1)


Hello,

Web performance/load testing can sound like an intimidating thing, but it is not. And web performance/load testing SharePoint has been made a lot easier with Visual Studio 2012 Update 1. So here is a quick introduction into the subject.

Prerequisites: 

  1. Visual Studio 2012 Ultimate Edition (preferably with Update 1 as it provides the new features for testing SharePoint).
  2. A SharePoint OOB installation
  3. A SQL Server instance (any edition) to create the LoadTestResultsRepository database required by VS 2012’s load testing features. To create the database, browse to C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE from a command prompt window and run SQLCMD /S <yoursqlinstance> -i loadtestresultsrepository.sql

Steps:

1. Launch Visual Studio 2012 Ultimate > New Project > Test > Web Performance and Load Test Project

 

 

When the web performance test is created successfully, an IE window will load with the Web Test Recorder plugin loaded and recording is started. Browse the SharePoint site as the scenario dictates and the Web Test Recorder will record each and every web request (URL) you visit (explicitly or implicitly).

* if you receive any error messages when loading the Web Test Recorder Plugin, Enable 3rd party extensions in IE advanced options

 

3. When done, click Stop in the Web Test Recorder plugin. Visual Studio will save the Web performance test and replay it for one time.

4. If a ProcessQuery request fails, it is because it is expecting a header (X-RequestDigest). So how do we pass this header to the request? Right click the first request in the web performance tree, Add an extraction rule to extract the form input __REQUESTDIGEST and save it in a context parameter (name it for example digest). Right click the ProcessQuery request and click add header. The header name should be X-RequestDigest and the value should be bound to the parameter context digest we created in the extraction rule.

5. Try to replay the test and it should work out successfully.

For more information on Web performance/load testing SharePoint, see the following.

Good Luck!

Yousef

 

 

 

 

 


Comments (10)

  1. Yousef Omar says:

    Hi Steven – I am glad you liked the post! I will be writing a second part on Load Testing sometime soon. Stay tuned 🙂 – Yousef

  2. Good to know,  I'll keep an eye out.

  3. Hi Yousef,

    A solid introduction, thanks for posting this.  How many other parts in the series is there?

    Many thanks,

    Steven

  4. karimSP says:

    Hi Yousef,

    Interesting blog, thanks for the intro.

    Regards,

    karim

  5. dav says:

    like it go on

  6. Atique Ahmed says:

    I have to do performance/load testing of sharepoint 2010 site but using visual studio ultimate 2010. Please suggest because this post uses visual studio 2012. Regards Atiq

  7. Anonymous says:

    Últimamente he estado bastante metido en la realización de pruebas de rendimiento y de carga para soluciones

  8. Abhijith Shastry says:

    Hi Yousef,

    Can we Test Browser based Infopath List-forms using Web-Test? If so do we need to include any extensions to the Web-Test Project?
    I’ve tried to do so, and believe that it is not a straight-forward activity.

    Thanks
    Abhijith

  9. Ashad Al Jafri says:

    I’m still tuned and I can’t see the second part… :/

  10. showbox says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    http://showboxandroids.com/showbox-apk/
    http://showboxappandroid.com/
    Latest version of Showbox App download for all android smart phones and tablets.
    http://movieboxappdownloads.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    http://showboxappk.com/showbox-for-ipad-download/
    http://showboxappk.com/showbox-for-iphone/
    Showbox for PC articles:
    http://showboxandroids.com/showbox-for-pc/
    http://showboxappandroid.com/showbox-for-pc-download/
    http://showboxforpcs.com/
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings. Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android.
    The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.