Travis Lingenfelder
Travis is a Senior Lead Consultant for Catapult Systems and blogs about Microsoft technologies including SharePoint, but is passionate about all things relating to technology. Travis is a MCTS for SharePoint Server 2007 and 2010, application development and configuration.

Step-by-Step: Configure Performance Testing using Visual Studio 2008   

Tags: Testing, Visual Studio
Technorati Tags: ,

There are two editions of Visual Studio 2008 that can be used to do performance testing – Visual Studio Team System 2008 Test Edition and Visual Studio Team System 2008 Team Suite.  When using these products, there are also two types of test platforms that can be used: Local without a Controller and a Test Rig.  The difference being the use of the Visual Studio 2008 Team Test Load Agent/Controller to build a test rig that can utilize the processing power of multiple machines.

Things you will need

To do performance testing, you must have the following components installed:

  • SQL Server – This can be SQL Server (Std or Ent) or SQL Server Express
  • Visual Studio Team System 2008 (Test Edition or Team Suite)
  • Servers running the web application to test (including SharePoint Servers)

To build a test rig you must also have these additional components:

  • 1-n agent workstations.
  • Visual Studio 2008 Team Test Load Agent installed on each agent workstation.*
  • A controller workstation.
  • Service accounts for both the controller and agents.


* This is a separate product and is *NOT* included with either Test Edition or Team Suite.  If you are a volume license customer log into the volume license download center to obtain this product.

Install the base components

  1. For local test platforms or for a test rig, start by installing Visual Studio and SQL on your workstation.
  2. Install Visual Studio 2008 SP1.
  3. Create the LoadTest database:
    1. Open SQL Server Management Studio and connect to your local SQL server.
    2. In SQL Server Management Studio open the file: <Program Files>\Microsoft Visual Studio 9.0\Common7\IDE\loadtestresultsrepository.sql
    3. Press the Execute button on the toolbar to build/wipe the LoadTest database.

Local testing without a test rig (only when NOT using a test rig)

  1. Start Visual Studio and create a new Test Project.
  2. Under the Test menu, select Administer Test Controllers…
    1. Leave the Controller drop down as <Local – No controller>
    2. Click the button with the 3 ellipses next to the box Load Test Results Store:
      1. Enter the name of your SQL server instance in the Server name box.
      2. Make sure Use Windows Authentication is selected.
      3. Choose the LoadTest database in the Select or enter a database name drop-down.
      4. Use the Test Connection button to verify that you can connect to the database.
      5. Click OK.
    3. Click Close.
  3. Configure your web and load tests.

Test Rig additional installations (only when using a test rig)

  1. On the same computer in which you installed Visual Studio and SQL server install the controller.
    1. Start the Load Test Agent installation.
    2. When prompted, choose Install Team Test Load Agent Controller.
    3. Accept the EULA.
    4. When prompted, enter the credentials of the service account that will be used for the controller.
    5. Install Visual Studio 2008 SP1.
  2. On each agent workstation install the agent software.
    1. Start the Load Test Agent installation.
    2. When prompted, choose Install Team Test Load Agent.
    3. Accept the EULA.
    4. When prompted, enter the credentials of the service account that will be used for the agent.
    5. When prompted, enter the name of the machine that is hosting the Team Test Load Agent Controller.
    6. Restart the machine when prompted.
    7. Install Visual Studio SP1.
  3. Start Visual Studio and create a new Test Project.
    1. Under the Test menu, select Administer Test controllers…
      1. In the Controller box, either select or type the name of the machine that you installed the Team Test Load Agent Controller onto.
      2. Click Close.
    2. On the Test menu, select a run configuration from the Edit Test Run Configurations submenu.
      1. Select the Controller and Agent category on the left.
      2. Choose the Remote option.
      3. In the drop down, select the name of the controller you want to use.
  4. Configure your web and load tests.

Additional/Recommended additional configuration

When using a multi-core agent workstation, configure the agent to use Server Garbage Collection:

  1. Open in Notepad the file: <Program Files>\Microsoft Visual Studio 9.0 Team Test Load Agent\LoadTest\QTAgent.exe.config
  2. In the XML document, locate the /configuration/runtime tag.
  3. Create a new child tag of: <gcServer enabled=”true”/>

 

User accounts and security groups

  • Use only domain accounts.
  • On agent computers, add the controller service account to either the Performance Log Users or Administrators local security group.
  • On servers testing, add the controller service account to the Performance Log Users local security group.

 

Problems retrieving performance counters from servers

 

del.icio.us Tags: ,

 
Posted by  Travis Lingenfelder  on  6/18/2009
1  Comment  |  Trackback Url  | 2  Links to this post | Bookmark this post with:        
 

Links to this post


Trackback from  David Broussard  on  8/20/2009  1:34 PM
A Guide to SharePoint Performance Testing (Part I) – What is “Acceptable” Anyway? 

[...] Recently I was involved in a couple of engagements to perfor ... [...]






Pingback from  [RESOLVED]Load and performance testing using .net 2008 | Asp Forum  on  9/10/2014  12:53 PM

Comments


Anil  commented on  Tuesday, February 23, 2010  1:02 PM 
Hi!
How can I collect the performace counter from remote computer when NOT using a test rig

Thanks

Name *:
URL:
Email:
Comment:


CAPTCHA Image Validation