Session on Load Testing - Alok Agarwal
Agenda for the session Definitions Example on load testing What to Avoid When Testing for Load Goals of Load Testing Test Plan for Load Testing a web Application Demo on LoadRunner tool
Definitions
Performance Testing Identify tasks and measure how long it takes to do each task It will specifically refer to response times
Load Testing Load testing will include the applications behavior up to and including its limits. Load testing refers to steady increases in load until significant operational degradation or failure. This will specifically refer to the load size (number of virtual users) and related values.
Stress Testing Study the program's response to peak bursts of activity
Example for Load Testing
Performance Testing The automobile does zero to sixty miles per hour in a certain number of seconds under various conditions
Load Testing The automobile can pull a trailer weighing a certain number of tons before it can no longer move
Stress Testing The automobile continues to work fine driving 60 miles an hour for two hours, in 120 degree temperatures, with only a gallon of fluid in radiator
What to Avoid When Testing for Load
performing load tests on applications that are changing even as the tests are being performed performing load tests with applications that are not functionally tested so that even basic capabilities are not operational
performing load tests on certain parts of the application that work and extrapolating the results to the entire application performing load tests with a smaller number of concurrent users and extrapolating the result for larger numbers
Goals of Load Testing
Determine the ”Magic Number" The magic number is the maximum number of concurrent users that the system can support while remaining stable and providing reasonable response time to users as they perform a variety of typical business transactions
Determine end user experience under load Can users get to the Web application in a timely manner? Are users able to conduct business or perform a transaction within an acceptable time? What is the failure rate that users observe? Is it within acceptable limits?
Determine server-side robustness and degradation Does my Web server crash under heavy load? Does my application server crash under heavy load? Does my database server crash under heavy load? Should hardware changes be made for improved performance?
Test Plan for Load Testing a Web Application
Define a process that is repeatable for executing load tests throughout the application life-cycle Define the criteria for load test Determine the software tools required to run the load test Determine and configure the hardware and environment needed to execute the load tests
Plan the load tests Plan the test scenarios Create and verify the Visual Scripts Create and verify the load test scenarios
Execute the tests Evaluate the results against the defined criteria Generate required reports
Thank you by Sumanth