In Focus
Jabalpur Chapter Meet July 13: Register Now
Chandigarh Chapter: Developers Day on 29 June 2013
Delhi Chapter Hands On June 22: Limited Seats Register Now
Email :
Password :
Remember me?
Forgot password
Contribute
An Article
A Blog
A News
A Video
A Link
An Interview Question
Ask a Question
TECHNOLOGIES
.NET 4.5
Chapters
JavaScript, CSS
SharePoint 2010
Web Development
.NET Assemblies
Coding Best Practices
JQuery
SharePoint 2013
Web Services in C#
ADO.NET in C#
Current Affairs
JSP
Silverlight with C#
Windows 8
AJAX in C#
Databases & DBA
Leadership
Smart Devices
Windows Azure
Android Programming
Design & Architecture
Learn .NET
SQL
Windows Controls C#
Articles C#
Exception Handling C#
LightSwitch 2012
SQL Server 2012
Windows Forms C#
ASP.NET Controls in C#
Expression Studio
LINQ
Testing
Windows Phone 8
ASP.NET MVC with C#
Graphics Design
Mobile & Embedded
TypeScript
Windows Server 2012
ASP.NET Programming
How do I
Office 2013
Visual C#
Windows Store Apps
BizTalk Server
HTML 5
OOP/OOD
Visual Studio .NET
Workflow Foundation in C#
C# Language
Internet & Web
Operating Systems
Visual Studio 2010
WPF
C# Tutorials
iPhone/iPad
PHP
Visual Studio 2012
XAML
C, C++, MFC
Java
Products
WCF with C#
XML
Career Advice
Java and .NET
Project Management
Request a new Category
|
View All
ANSWERS
BLOGS
VIDEOS
INTERVIEWS
BOOKS
LINKS
NEWS
CHAPTERS
CAREER ADVICE
Simple Tooltip Using HTML and CSS
Kolkata Chapter Developer Day Official Recap
Object Oriented Programming Using C#: Part 9
JsAction with T4 Template
Logging Using Log4net in Compact Framework 2 ...
Learn OOP Interface Using C#
S.O.L.I.D Principle Inversion of Control and ...
How To Find A Doctor Near Your Home in SQL S ...
Creating Simple MVVM Application With Data B ...
Folder Structure of ASP.Net MVC Project
ARTICLE
222
360
Load Testing of Web Applications using Visual Studio Team System 2008
Posted by
Dharmendra Gaur
in
Articles
|
Testing
on
January 03, 2011
Tags:
Load Test
,
Software Testing
,
Test
,
VS 2008
,
VSTS
,
Web Application Testing
This article discusses how a user can load test their web applications using the load testing features of Visual Studio Team System 2008.
Tweet
7269
0
0
Reader Level:
Many Users are not even aware that they can set up and run some very sophisticated web load tests for an application right from within Visual Studio 2008. I don't know if this is because they don't think testing is important, or just because of a lack of knowledge. Testing is very important; developers need to test the application thoroughly; not just unit tests, but load and performance tests as well before deploying the application into production.
Web Load Testing is very useful in production scenarios. Users can write a web load test and get real-time performance analysis that will enable users to clearly know more about the performance of their application. Web Load Testing can also be used to measure performance and bottlenecks in applications. Users can enlist multiple machines as controllers and multiple machines as agents for load testing.
To set up a web load test project in VS 2008, first we need to set up a load test repository in SQL Server. If you do not have any database, then open up SQL Server Management Studio (SSMS) and use the File/Open/File dialog from the top left of the menu to load the loadtestresultsrepository.sql script from "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE". Execute the script and you are done.
Now in Visual Studio 2008, from the top test menu, choose "Manage Test Controllers" and configure your Load Test Results Store to your new database. You are now ready to set up a test.
Step 1:
In the existing solution as your C# project, add a new Test Project.
Step 2:
Now, Right click the test project node in Solution Explorer and Click on "Add". Now choose a "Web Test" from the displayed list. Now Internet Explorer comes up, this is the Web Test Recorder. User can enter the URL of the initial page that they want to test. The test recorder will record everything that the user does: logging info, navigating to other pages, and so on. When you are done, click the "Stop Recording" link. You've now configured a web test.
Step 3:
Now for adding a load Test. Again from the test project context menu, choose Add and this time select the "Load Test" option from the displayed list. You'll see the following wizard come up. This wizard will walk you through the steps to create a load test.
Step 4:
This wizard has many options that User will probably want to explore and study. After click on next button a load test scenario wizard appears in which user can edit settings for a load test scenario.
Step 5:
Inside load test scenario, a load pattern wizard appears in which user can edit load pattern settings for a load test scenario to simulate load. User can set maximum user count, start user count, step durations etc.
Step 6:
After load pattern, Test mix model wizard will appear in which a test mix model can be selected for the load test from the list on the basis of:
Based on the total number of tests
:
This model of test mix determines which test is run when a virtual user starts a test iteration. At the end of the load test, the number of times that a particular test was run matches the assigned test distribution.
Based on the number of virtual users
:
This model of test mix determines the percentage of virtual users who will run a particular test. At any point in the load test, the number of users who are running a particular test matches the assigned distribution.
Based on user pace:
Over the course of the load test, each test is run the specified number of times per user per hour.
Step 7:
After test mix model, test mix wizard will appear in which user can add tests to a load test scenario and can edit the test mix. When you get to the "Test Mix" Wizard page, you must add your "Web Test" that you added in step 2.
Step 8:
After test mix, browser mix wizard will appear in which user can add browser types to a load test scenario and can edit the browser mix.
Step 9:
After browser mix, network mix wizard will appear in which user can add network types to a load test scenario and can edit the network mix.
Step 10:
After network mix, counter sets wizard will appear in which user can specify computers to monitor with counter sets during load test run and from which user wants to collect the performance data.
Step 11:
After counter sets, run settings wizard will appear in which user can review and edit run settings for a load test such as duration of your test, number of test iterations, sampling rate and its description etc.
Step 12:
After you've completed the Wizard by clicking on finish button, you'll now configure a complete load test, which is ready to run. All the settings done in load test wizard can be verified in test mix, browser mix and network mix on the displayed page. Now to run the load test simply right click on displayed load test name and click on run test or directly click on 'run test' link above the load test name and wait until the load test finished.
Step 13:
After the load test has finished, the result is displayed in the three different ways graph, summary and tables. The result can be easily analyzed by using some performance graphs in real time. Here many types of graphs are displayed like page response time, controllers and agents, test response time and processor time etc. On the basis of these graphs user can analyze and compare at which point system performance is good and at which point the system is heavily loaded.
Step 14:
On the basis of summary the user can analyze complete load test details about the system and application. The summary contains information about overall results, test run information, top slowest tests and error reports etc. By using the entire details user can know about slow tests and about load when system's performance is not good. Now user can analyze and deliver better system and application by using web load test in VS 2008.
Login
to add your contents and source code to this article
This Feature is Sponsored By
.NET Charting component with full set of charting and gauge types
Important Points to Remember during Web Testing
Tags:
Load Testing
,
Software Testing
,
Test
,
Validation
,
Web Testing
TDD - Red Green Refactor Example
Tags:
TDD
,
Red factor in TDD
,
green factor in TDD
,
Test Driven Development
,
.net
,
C#
Related Articles
Creating, Recording & Running Web Project using Visual Studio 2008 Team System Test Edition
Introduction to Microsoft Visual Studio Team System 2008 Test Edition
Add Validation Rule in Visual Studio 2008 Team system test Edition
Load Testing in Visual Studio 2012
Introduction to Unit Testing Framework of VS 2008
Connect to Cloud Team Foundation Server using Visual Studio Test Manager 11 Developer Studio
Introduction to Dynamic Data Web Application Model: Part I
Introduction to Unit Testing Framework of VS 2008: Part IV
Introduction to Macros in Visual Studio 2008
.NET Arrays with Micro Focus COBOL.NET
comments
View Previous Comments
of
COMMENT USING
PREMIUM SPONSORS
Infragistics
Infragistics is experts in technology and design, and passionate about helping you build highly performant and stylish applications that solve problems, deliver inspiration, and maximize results.
TRENDING UP
Simple Tooltip Using HTML and CSS
Kolkata Chapter Developer Day Official Recap
Object Oriented Programming Using C#: Part 9
JsAction with T4 Template
Logging Using Log4net in Compact Framework 2.0 in Visual Studio 2008
Learn OOP Interface Using C#
S.O.L.I.D Principle Inversion of Control and Resolution With Dependency Injection
How To Find A Doctor Near Your Home in SQL Server
Creating Simple MVVM Application With Data Binding
Folder Structure of ASP.Net MVC Project
View All
MOST LIKED ARTICLE
WCF Introduction and Contracts - Day 1
Create SSRS Report Using Report Wizard
CREATE READ UPDATE and DELETE - CRUD Operation Using LINQ to SQL
WCF - Data Contract - Day 4
Factory Design Pattern
Follow @twitterapi
HOT KEYWORDS
black box testing
Boundary value Analysis
Creating
Defect Tracking
Expert view
Keyword view
Load Test
Load testing
Performance testing
QTP
QTP Tool
SDLC
Software Testing
STLC
Stress testing
Test
test driven development
Testing Framework
Testing tutorial
Testing Tutorials
Unit Test
Unit Testing Framework
VSTS
Waterfall model
white box testing
SPONSORED BY
Get the industry leading .NET Charting component
.NET Charting component with full set of charting and gauge types.
My Facebook Friends
WHITEPAPERS AND BOOKS
Interview Questions on SharePoint 2013
SharePoint 2010 Administration & Development
Getting Started with Managed Metadata Service in SharePoint 2010
Windows Phone 7 Hileleri
Windows Phone Development Step by Step Tutorial
Essentials of SharePoint 2010: Business Intelligence Capabilities
Working with Directories in C#
FileInfo in C#
Programming List with C#
Source Code: Graphics Programming with GDI+
View All
Poll
Result
All Polls
Speed of C# Corner
How do you find speed of C# Corner when visiting the site?
Very Fast
OK
Slow
Very Slow
How do you find speed of C# Corner when visiting the site?
Options
Votes
%
Very Fast
4
7.41
OK
43
79.63
Slow
4
7.41
Very Slow
3
5.56
Total
54
100%