Load Runner

Download Load Runner

Post on 26-Oct-2014

575 views

Category:

Documents

4 download

Embed Size (px)

TRANSCRIPT

Performance

-1-

PerformanceTABLE OF CONTENT Performance Testing:................................................................................................................................... 3 Pre-requisites for Performance Testing................................................................................................. 3 Load Tests:.................................................................................................................................................... 4 Why we need to do Load Tests? ............................................................................................................. 4 Stress Tests:................................................................................................................................................... 4 Focus of stress test ................................................................................................................................... 5 Soak Tests: (Also Known as Endurance Testing) ..................................................................................... 5 Volume Tests: ............................................................................................................................................... 5 Some of the Tools for Performance Testing:.............................................................................................. 5 Apache JMeter.............................................................................................................................................. 5 Seagull ........................................................................................................................................................... 6 WebLOAD .................................................................................................................................................... 6 Rational Performance Tester ...................................................................................................................... 6 Description: .............................................................................................................................................. 6 LoadRunner .................................................................................................................................................. 6 Real Time Scenario: ..................................................................................................................................... 6 Over View of LoadRunner: ......................................................................................................................... 7 Loadrunner Architecture ............................................................................................................................ 7 Virtual User Generator:............................................................................................................................... 7 Recording a Script ................................................................................................................................... 8 How to open Virtual User Generator? .............................................................................................. 8 Protocol Selection: .............................................................................................................................. 9 Recording Options ............................................................................................................................ 12 View the script: ................................................................................................................................. 18 Manual Correlation:......................................................................................................................... 21 Automatic Correlation: .................................................................................................................... 22 Parameterization: ............................................................................................................................. 23 Run Time Settings: ................................................................................................................................ 27 Definition for Run time setting:............................................................................................................ 27 Configuring Run-Time Settings: .......................................................................................................... 27 Configuring Run Logic Run-Time Settings (multi-action):...................................................... 28 Pacing Run-Time Settings ........................................................................................................... 31 Configuring the Log Run-Time Settings:................................................................................... 33 Configuring the Think Time Settings......................................................................................... 35 Configuring Miscellaneous Run-Time Settings ......................................................................... 37 Browser Emulation: ..................................................................................................................... 39 2. Controller ................................................................................................................................................ 41 LoadRunner Vuser Technology .................................................................................................. 42 Creating and Configuring Vusers: ............................................................................................. 43 Monitors........................................................................................................................................ 47 The following monitors are available through LoadRunner: ............................................................ 47 Vuser Status ........................................................................................................................................... 47 Transaction Monitor ............................................................................................................................. 47 Network Latency.................................................................................................................................... 47 Database Servers.................................................................................................................................... 50 The total number of bytes received from the client over Net8 ............................................ 52 The total number of current logons ....................................................................................... 52 3. Analysis ................................................................................................................................................ 56

-2-

Performance

Performance Testing:Performance Tests are tests that determine end to end timing (benchmarking) of various time critical business processes and transactions, while the system is under low load, but with a production sized database. This sets best possible performance expectation under a given configuration of infrastructure. It also highlights very early in the testing process if changes need to be made before load testing should be undertaken. For example, a customer search may take 15 seconds in a full sized database if indexes had not been applied correctly, or if an SQL 'hint' was incorporated in a statement that had been optimized with a much smaller database. Such performance testing would highlight such a slow customer search transaction, which could be remediated prior to a full end to end load test. Pre-requisites for Performance Testing A performance test is not valid until the data in the system under test is realistic and the software and configuration is production like. The following table list pre-requisites for valid performance testing, along with tests that can be conducted before the pre-requisites are satisfied: Performance Test Pre-Requisites Comment Caveats on testing where Pre-requisites are not satisfied.Lightweight transactions that do not require significant processing can be tested, but only substantial deviations from expected transaction response times should be reported.

Production Like Environment

Production Like Configuration

Production Like Version

Low bandwidth performance testing of high bandwidth transactions where communications processing contributes to most of the response time can be tested. Configuration of each component needs While system configuration will have less to be production like. impact on performance testing than load testing, only substantial deviations from expected transaction response times For example: Database configuration should be reported. and Operating System Configuration. Only major performance problems such as The version of software to be tested missing indexes and excessive should closely resemble the version to communications should be reported with a be used in production. version substantially different from the proposed production version. If clients will access the system over WAN, dial-up modems, DSL, ISDN, etc. then testing should be conducted using each communication access method. All relevant tables in the database need to be populated with a production like quantity with a realistic mix of data.

Performance tests need to be executed on the same specification equipment as production if the results are to have integrity.

Production Like Access

Only tests using production like access are valid.

Production Like Data

Low bandwidth performance testing of high bandwidth transactions where communications processing contributes to most of