load runner ppt

25
Company Confidential PERFORMANCE TESTING

Upload: api-3813837

Post on 10-Apr-2015

4.557 views

Category:

Documents


18 download

TRANSCRIPT

Page 1: Load Runner Ppt

Company Confidential

PERFORMANCE TESTING

Page 2: Load Runner Ppt

Company Confidential

WHAT IS PERFORMANCE TESTING

Although performance testing is a part of system testing, it can be regarded as a distinct level of testing

The purpose of Performance testing is to measure and evaluate the response times, transaction rates and other time sensitive requirements of an application in order to verify that performance requirements have been achieved.

Page 3: Load Runner Ppt

Company Confidential

Load and Stress Testing

2. Stress Testing :Stress testing is testing the system performance where some complicated activities like DB queries or repeated actions are applied on the system.

1. Load Testing :Load testing is testing an application under heavy loads, such as the testing of a web site under a range of loads to determine at what point the system response time will degrade or fail

Page 4: Load Runner Ppt

Company Confidential

CAN U PERFORM MANUALLY ???…..

Page 5: Load Runner Ppt

Company Confidential

Testers

Load Generation System Under Test

Do you have the testing resources?• Testing personnel• Client machines

How do you coordinate and synchronize users?

How do you collect and analyze results?

How do you achieve test repeatability?

Analysis?

123.20

All of you, click the

GO button again

Manual Testing Is Problematic

Web server Database server

Coordinator

Page 6: Load Runner Ppt

Company Confidential

BENEFITS OF AUTOMATION !!!!!….

Page 7: Load Runner Ppt

Company Confidential

Load Generation System Under Test

The LoadRunner Solution

Web server Database server

Vuser host

• Controller manages the virtual users

• Replaces testers with virtual users

Solves the resource limitations

• Runs many Vusers on a few machines

• Analyzes results with graph & report tools

• Repeats tests with scripted actions

AnalysisController

Page 8: Load Runner Ppt

Company Confidential

Testing Process of LOAD RUNNER

1. Planning the Test.

2. Creating Vuser Scripts.

3. Creating the Scenarios.

4. Run the scenarios.

5. Analyzing the test Results.

Page 9: Load Runner Ppt

Company Confidential

Vuser Scripts:Virtual User Generator

Web server Database server

Virtual User Generator

Page 10: Load Runner Ppt

Company Confidential

Virtual User Generator Script

Script consists of 3 sections…

• Vuser_init( ) ----login to server

• Actions ----clients activities

• Vuser_end( ) ----logoff

Page 11: Load Runner Ppt

Company Confidential

Virtual User Script Model

Logon(recordingoptional)

vuser_init.c

User Actions(Business Processes)

Action1.c, Action2.c, etc.(e.g., Create Order, Ship Order)

This section may be iterated (repeated) during one test run

Logoff(recordingoptional)

vuser_end.c

Page 12: Load Runner Ppt

Company Confidential

Virtual Users

Several types of vusers

• GUI vusers• WEB vusers• RTE vusers• TUXEDO vusers• DB vusers

……………..

Page 13: Load Runner Ppt

Company Confidential

Scenario

• Vuser Scripts ++++ Vusers ++++ Host machines

CONTROLLER

Page 14: Load Runner Ppt

Company Confidential

Managing Scenario Execution(Performance Under Gradual Load)

The Controller:• Gradually build up load on the server

– load all Vusers– release Vusers in defined time intervals– disable Rendezvous– manually kill Vusers when all have been running and

you’ve obtained enough transactions to measure

The Vuser:

• Run time settings– set number of iterations to be very high (i.e. 9000)– ignore think times

Page 15: Load Runner Ppt

Company Confidential

Analysis ToolsGraphs and Reports

• Analyze various load issues– How many Vusers were running at any point?– How many transactions executed at any point?– Which transactions passed/failed?– What was the transaction response time?– What was the performance under gradual load?

• Pinpoint problem areas– determine what is causing bottlenecks for each transaction– view several graphs simultaneously– zoom to focus on areas of interest– filter to view specific transactions

Page 16: Load Runner Ppt

Company Confidential

Running Vusers

How many Vusers were running at any point during execution?– gradual user load

Page 17: Load Runner Ppt

Company Confidential

Rendezvous

See how rendezvous influenced transaction performance

Page 18: Load Runner Ppt

Company Confidential

Transaction Performance

What was transaction response time at any point during execution?– Where does performance deteriorate?

Page 19: Load Runner Ppt

Company Confidential

Performance vs. LoadView Multiple Graphs

Page 20: Load Runner Ppt

Company Confidential

Transaction Performance Summary

Why is the Average so far from the middle of Min and Max?…(next slide)

Page 21: Load Runner Ppt

Company Confidential

Percentile

Percentage of transactions performed within a given time range– notice 90% of the Simple_Inquiry transactions executed

within 3 seconds

Page 22: Load Runner Ppt

Company Confidential

Cross Scenario Graphing

Compare results from two Scenario executions in the same graph(s)

Page 23: Load Runner Ppt

Company Confidential

Monitor Network Delay

Which network segment is causing the delay?

Page 24: Load Runner Ppt

Company Confidential

Monitor Resources

How is the server handling the load?

Page 25: Load Runner Ppt

Company Confidential

Performance Tunings

Once u find the factors such as network delays, server resources, or transaction breakdowns , those influencing performance of application, by tunings u can achieve better performance….