loadrunner-planning load test chapter 2
TRANSCRIPT
Krish Hegde 1
Planning Load Test
Steps:
• Analyzing the Application (AUT)
• Defining Testing Objectives
• Planning LoadRunner Implementation
• Examining Load Testing Objectives
Krish Hegde 2
Plan Load Test
1. Build test scenarios that accurately emulate your working environment. Load testing means testing your application under typical working conditions, and checking for system performance, reliability, capacity.
2. Understand which resources are required for testing. Application testing requires hardware, software, and human resources.
3. Define success criteria in measurable terms. Focused testing goals and test criteria ensure successful testing.
Krish Hegde 3
Analyzing AUT1. Identify System Component: Draw a schematic diagram to illustrate
the structure of the application.2. How many clients are connected to the server?3. What is the client machine configuration? (hardware, memory,
operating system, software, development tool, etc.)4. What type of server is used? (hardware, database type, operating
system, file server etc.)5. How does the server communicate with the client?6. Is there a middleware or application server between the front-end
client and back-end server?7. What is the middleware configuration?8. What other network components may affect response time?
(modems etc.)9. What is the throughput of the communications devices? How many
concurrent users can each device handle?
Krish Hegde 4
Define Testing Objectives
Krish Hegde 5
Define Vuser Activities & Behavior
• Create Vuser scripts based on your analysis of Vuser types, their typical tasks and your test objectives. Since Vusers emulate the actions of a typical end-user, the Vuser scripts should include the typical end-user tasks.
• For example, to emulate a manager, you should create a Vuser manager script that performs typical manager tasks.
Krish Hegde 6
Select Vuser types Suppose that you have five kinds of users, each performing a different business process:
Krish Hegde 7
Load Testing Objectives
1. Measuring end-user response time
2. Defining optimal hardware configuration
3. Checking reliability
4. Checking hardware or software upgrades
5. Evaluating new products
6. Identifying bottlenecks
7. Measuring system capacity
Krish Hegde 8
Measure Response Time
Krish Hegde 9
Measuring AUT Capacity
Krish Hegde 10
Reliability Testing
Determine the level of system stability under heavy or continuous work loads. You can use LoadRunner to create stress on the system: force the system to handle extended activity in a compressed time period to simulate the kind of activity a system would normally experience over a period of weeks or months.
Krish Hegde 11
Identify Bottlenecks
Krish Hegde 12
• Questions?