loadrunner-planning load test chapter 2

12
Krish Hegde 1 Planning Load Test Steps: Analyzing the Application (AUT) Defining Testing Objectives Planning LoadRunner Implementation Examining Load Testing Objectives

Upload: api-3738664

Post on 11-Apr-2015

508 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: LoadRunner-Planning Load Test Chapter 2

Krish Hegde 1

Planning Load Test

Steps:

• Analyzing the Application (AUT)

• Defining Testing Objectives

• Planning LoadRunner Implementation

• Examining Load Testing Objectives

Page 2: LoadRunner-Planning Load Test Chapter 2

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.

Page 3: LoadRunner-Planning Load Test Chapter 2

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?

Page 4: LoadRunner-Planning Load Test Chapter 2

Krish Hegde 4

Define Testing Objectives

Page 5: LoadRunner-Planning Load Test Chapter 2

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.

Page 6: LoadRunner-Planning Load Test Chapter 2

Krish Hegde 6

Select Vuser types Suppose that you have five kinds of users, each performing a different business process:

Page 7: LoadRunner-Planning Load Test Chapter 2

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

Page 8: LoadRunner-Planning Load Test Chapter 2

Krish Hegde 8

Measure Response Time

Page 9: LoadRunner-Planning Load Test Chapter 2

Krish Hegde 9

Measuring AUT Capacity

Page 10: LoadRunner-Planning Load Test Chapter 2

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.

Page 11: LoadRunner-Planning Load Test Chapter 2

Krish Hegde 11

Identify Bottlenecks

Page 12: LoadRunner-Planning Load Test Chapter 2

Krish Hegde 12

• Questions?