Secret ingredients to quality software

Do you run load tests on your website?

Last updated by Tiago Araujo on 23 Apr 2018 06:08 pm (over 3 years ago) See History

Once you have a website up and running, it is important to make sure that it keeps running under load. Local testing of the website will not always reveal the latent problems in the website when it is subjected to thousands of users. Typical issues that result from inadequate load testing are:

  • 503 Service Is Temporarily Unavailable
  • Very slow load times
  • Application Crashes due to:

    • Insufficient resources - so application pools are recycled
    • Too many concurrent users causing race conditions
    • Too many users trying to connect to the database

Load Tests help you avoid these issues by prompting them before you go live. Some issues might be resolved by getting a better web server, while others might require code changes and optimizations.

In Visual Studio 2005 - Software Testers Edition , there is a built-in Test Project to conduct load testing.

  1. From the Test menu select New Test
  2. Select Web Test and Create a new Test Project

  1. Name the Test Project <Namespace>.WebUI.Tests
  2. An Internet Explorer window will open with a recorder toolbar. Navigate to the web pages that need to be Load Tested

  1. Click Stop when you are finished recording the pages to be tested
  2. Click the Run button to make sure the tests run

  1. Add a new Load Test

  1. Follow the Load Test Wizard:

    • Load Pattern - Define the number of users hitting the site
    • Test Mix - Select the web test you recorded earlier
    • Browser Mix - Specify different types of browsers (leave as default)
    • Network Mix - Specify connection speeds of users (leave as default)
  2. Click Finish
  3. Click Run to run the load test

  1. This will kick off the load test and show a live graph of user load, requests per second and response time
Adam CoganAdam Cogan

We open source. Powered by GitHub