Load Testing a WordPress site

November 19, 2008

Hi guys, in this blog I am going to cover how to load test a web application. In this case its a wordpress application residing on my local server. You can also set up wordpress locally by downloading it from http://wordpress.org.

So we must start our load test.

  1. Open visual studio and add a new Test project.
    newtestproject
  2. Right click your test project to add a new webtestnewwebtest1
  3.      

  4.  Adding a webtest will launch you a browser with a record panel. In this case I am simulating a login process to a wordpress site .
    webrecorder1 
       
    The record panel record all your browsing activites. Note that the recorder uses the url to record your action. If you have ajax or other script that doesnt changes the url then you need to manually code the test. Run your webtest once to check if it is getting pass. 
     
  5. Next step would be to add a new load test. Right click the test project to add a new load test.newloadtest
  6. Go through the load test wizard and add your webtest to the load test.

  7. You can specify the number of virtual users in the load pattern tab. There are 2 ways to add virtual user. 1 is the constant load other is the step up load. Constant load can be used when you really want to smoke up your server and test how many concurrent user it can handle and for how long.In our case we would be using the step up load. This load pattern simulates a ‘n’ number of user initially and Ramp up the users according to the values provided. You can also specify the duration you want to run your test for.loadpattern
  8. Run your load test and analyze the graphs. You can also save your load test report to the SQL server and then using SQL Server reporting services you can generate your own reports. To know how to save the load test reports to SQL Server view my other blog by clicking here

Entry Filed under: Testing. Tags: , , , .

1 Comment Add your own

  • 1. Vijay  |  November 24, 2008 at 6:28 am

    This is helpful. Keep them coming more.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

November 2008
M T W T F S S
« Oct   Jul »
 12
3456789
10111213141516
17181920212223
24252627282930

Most Recent Posts