Today i will show you how you can integrate JMeter with SharePoint 2010. JMeter is an open source server performance testing tool that can be used to test a variety of scenarios and systems. JMeter is written in Java, so it runs pretty much on any platform. You can download it here.
Download and extract the latest version of JMeter. I used version 2.10 and extracted it to the root of my C: drive. Click the jmeter.bat file to start it. Please be sure that you installed Java (min. Java 6) before starting it, otherwise it will fail.In order to create a Web Test Plan, you can follow this tutorial – it’s a very easy step-by-step guide to create a basic web test.
My experience was that it work’s just as described – the only thing that failed was the authentication against the SharePoint System – but i will cover it in this post! Now let’s say you completed this guide and your .jtl has error messages which look like this:
The problem is that JMeter, by default, does not support NTLM (windows) authentication, which is, also by default, used by SharePoint. There are a few addon’s for JMeter, however i could not make any of them work so i found a rather “simple” solution.
- Connect to your SharePoint (WEF) you want to test against
- Open IIS (inetmgr) and select the Site you want to test
- Open the Feature Pane (see screenshot) and select Authentication
- Enable Basic Authentication