SharePoint people-pickers in loadtests

A significant number of the webtests in out loadtest need to simulate a human tying into a people-picker control. This control waits until the first few letters have been entered and after that calls SharePoint’s client.svc web-service every time the user enters data into the control. I simulate this with the following logic in webtests: […]

Read more
A loadtest plugin to simulate random chance

An important part of loadtesting with Markov chains is choosing which transition the test should take. This boils down to generating a random number and then seeing in which of the transitions in the probability matrix that number belongs to. The plugin code below generates a random number between your specified lower- and upper bound […]

Read more
A loadtest plugin to extract querystring parameters from responses

When a user creates a new casefile in our system. Its created as a custom content-type that inherits from SharePoint’s document set. My load tests need at least the following information in order to continue working with that casefile: The title of the document set. SharePoint’s ID of the content-type. SharePoint’s ID of the list […]

Read more
Loadtesting using Markov chains to simulate user behavior

One of my clients has a rather large SharePoint farm and uses the add-in / provider-hosted-app model a lot. Everyone who looks at the topology and machine specs, expects the farm to provide a ‘huge’ amount of performance. In practice the users report that its rather slow. The guys in maintenance had done some rudimentary […]

Read more
When Impersonation is useful

In a previous post I stated that Impersonation is not suitable for starting a Selenium browser session as a different user. Even so there are still a few scenarios where I do need it. In my testcases I want to check that the state of the various tasks in SharePoint are conform my expectations. I […]

Read more
Loadtest summary shows many URLs for a single page

When you are running a load test against an MVC page you will see an enormous amount of different URLs reported. That’s because dynamic parameters such as IDs are frequently included in the URL of the page that is being accessed. For example, here is an URL that will update an invoice whose ID is […]

Read more
How to get Selenium to run the browser as a different user

Selenium is great for testing web-apps. One of the challenges that you’ll eventually run into is needing to control which user is connecting to the system under test. Achieving this is far from intuitive. A search for this topic gives many links that don’t solve this problem: Stackoverflow Another Stackoverflow question Google groups Most of […]

Read more
Running your testcases concurrently

System- and integration tests can take a lot of time to complete. If you want to speed this up then you can choose to run multiple test cases at the same time in parallel. Unit Testcases in Visual Studio You can configure Visual Studio to run unit concurrent testcases on your local machine using the […]

Read more