How to test the performance and load testing of asp .net web application

Performance and Load Testing of ASP.Net Application: Here we start the Load and performance testing of the web application with Visual Studio 2010 Ultimate. The basic steps we follow here will apply to nearly all load-testing efforts.

  1. To setup the environment-
  • To install the Visual Studio 2010 Ultimate
  • To install the SQL server
  • To remove the proxy 
  1. After installation-
  • Visual studio – Run as administrator
  • Add New Project
  • Select the Test Project
  • Go to the Solution Explorer

1 2 3 4

5 6  3Add Command prompt in VS 2010 ultimate manually  Step 1: Tools => External Tools => Click on Add Step 2: Fill the following information Title: Visual Studio 2010 Command Prompt Command: cmd.exe Arguments: /k “C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat” Initial Directory: $(ProjectDir) 11 22 33

  •  Now open the path C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat

44   4. Add Web performance test

  • Right click on the Test project and add the web performance test
  • Add the URL in the browser
  • Record the test case description as you want to test.
  • you can play the record test case description
  • Check the Test Result. 

    5. Add the Load Test:

  • Right click on the Test project and add the load test

111 222 333 444

  • Add the Web Performance test

555

  • Choose the network option

666

  • Choose the browser

777 888

  • During the load testing

999

  • After the load testing completed this screen is opened.

100

Performance Testing

What is performance testing?

Performance testing is the process of determining the speed or effectiveness of a computer, network or software program or device.

This process can involve quantitative tests done in a lab, such as measuring the response time or the number of MIPS (millions of instructions per second) at which a system functions. Qualitative attributes such as reliability, scalability and interoperability may also be evaluated. Performance testing is often done in conjunction with stress testing.

Performance Process

Difference between load and stress testing and volume testing

Volume Testing = Large amounts of data
Volume testing: This is done to test how the system handles when there is a need for huge volumes of data.

Load Testing = Large amount of users

Load testing: Here we apply more users or transactions and check where the max limit at which we can get optimal performance is. The intention of this is to find the optimal limit and not to break the system

Stickmen lifting bar for graph

Stress Testing = Too many users, too much data, too little time and too little room

Stress testing: Here we apply more no of users or no of transactions than prescribed with varying resources (ram, bandwidth etc.) and check where the system cannot handle that much load.

The intention of this is to break the system.
Stress 1