Mercury load runner

32
TestingQA Mercury LoadRunner Mercury LoadRunner

description

LoadRunner Manual

Transcript of Mercury load runner

Page 1: Mercury load runner

TestingQA

Mercury LoadRunnerMercury LoadRunner

Page 2: Mercury load runner

CONTENTS

What is Performance Testing?Introducing Mercury LoadRunnerLoadRunner TerminologyMercury LoadRunner ComponentsSteps in LoadRunner Testing ProcessLoadRunner Virtual User GeneratorMercury LoadRunner ControllerMercury LoadRunner Analysis

Page 3: Mercury load runner

What is Performance Testing?

Performance testing focuses on the volume, load, scalability and stability of the underlying software architecture and hardware in real-time environments. This includes the various software components software and application servers, hardware servers and network components that make up today's complex software systems.

3

Page 4: Mercury load runner

Introducing Mercury LoadRunner

LoadRunner is a tool used to emulate an environment where multiple users work concurrently. While the application is under load, LoadRunner accurately measures and analyzes the system performance, and its functionality

Page 5: Mercury load runner

LoadRunner Terminology

ScenariosUsing LoadRunner, you divide your application performance testing requirements into scenarios.A scenario defines the events that occur during each testing session.For example, a scenario defines and controls the number of users to emulate, the actions that they perform, and the machines on which they run their emulations.

VusersIn the scenario, LoadRunner replaces human users with virtual users or Vusers.When you run a scenario, Vusers emulate the actions of human users—submitting input to the server. A scenario can contain tens, hundreds, or even thousands of Vusers.

Page 6: Mercury load runner

LoadRunner Terminology

Vuser Scripts

The actions that a Vuser performs during the scenario are described in a Vuser script.

When you run a scenario, each Vuser executes a Vuser script. The Vuser scripts include functions that measure and record the performance of the server during the scenario.

Transactions

To measure the performance of the server, you define transactions.

Transactions measure the time that it takes for the server to respond to tasks submitted by Vusers.

Page 7: Mercury load runner

LoadRunner Terminology

Rendezvous Points

You insert rendezvous points into Vuser scripts to emulate heavy user load on the server.

Rendezvous points instruct multiple Vusers to perform tasks at exactly the same time.

For example, to emulate peak load on the bank server, you insert a rendezvous point to instruct 100 Vusers to simultaneously deposit cash into their accounts.

Controller

You use the LoadRunner Controller to manage and maintain your scenarios.

Using the Controller, you control all the Vusers in a scenario from a single workstation.

Page 8: Mercury load runner

LoadRunner Terminology

Hosts

When you execute a scenario, the LoadRunner Controller distributes each Vuser in the scenario to a host.

The host is the machine that executes the Vuser script, enabling the Vuser to emulate the actions of a human user.

Performance Analysis

Vuser scripts include functions that measure and record system performance during load-testing sessions.

During a scenario run, you can monitor the network and server resources.

Following a scenario run, you can view performance analysis data in reports and graphs.

Page 9: Mercury load runner

Mercury LoadRunner Components

Virtual User Generator (VuGen)

LoadRunner Controller

LoadRunner Analysis

Page 10: Mercury load runner

Steps in LoadRunner Testing Process

Plan the testCreate Vuser scriptsCreate controller scenarioRun the scenarioMonitor the scenarioAnalyze the results

Create Vuser Scripts

Plan the test

Create Controller Scenario

Analyze the results

Run the Scenario

Monitor the scenario

Page 11: Mercury load runner

LoadRunner Virtual User GeneratorVuGen Code View

VuGen Script Editor

Logs

Page 12: Mercury load runner

LoadRunner Virtual User Generator

Section of Script

Vuser_initAction Vuser_end

Sections

Page 13: Mercury load runner

LoadRunner Virtual User Generator

Walk through the scenario to be scripted

Record the scenarioEdit or enhance the scriptConfigure the runtime settingsRun the Vuser script Re-enhance and re-run till working

properlyIncorporate the script into LR

scenario

Developing Vuser Scripts

Page 14: Mercury load runner

LoadRunner Virtual User Generator

Script Enhancements TransactionsParameterizationRendezvous PointsThink Time

ScriptingMainly ‘C’ Programming Language Based

Able to incorporate ‘C’ looping structures (for, if, while,…)

Can also use Java, JavaScript, VB and VBScript

Page 15: Mercury load runner

LoadRunner Virtual User Generator

Defining User Behavior Recording Options

Recording Browser Recording Proxy Advanced Correlation

Runtime Settings General Network Browser Internet Protocol

Page 16: Mercury load runner

Mercury LoadRunner Controller

New Scenario:Manual Scenario

Percentages Option

Goal Oriented Scenario

Page 17: Mercury load runner

Mercury LoadRunner ControllerController Design Tab

Scenario Schedule Section (Manual Scenario)

Edit Schedule Scenario

Scenario Group Section (Manual Scenario)

Run Tab

Page 18: Mercury load runner

Mercury LoadRunner Controller

Configurations on Design TabEdit ScheduleSetting Up the Rendezvous (If

Any)Runtime SettingsLoad GeneratorsNo of Vuser per Script

Page 19: Mercury load runner

Mercury LoadRunner ControllerController Run Tab

Scenario Status

Scenario Groups

Available Graphs Tree

Graph Viewing area

Graph Legend

Online Monitor Graphs

Page 20: Mercury load runner

Mercury LoadRunner ControllerMonitoring at Scenario RunIn Scenario Status you can monitor the errors

and number of transactions done.In Scenario Groups you can monitor what any

particular group of users are doing.You can monitor the different graphs In the

graph viewing area.Legends area will have whatever

measurements that you have added and what color on the graph represents each measurement.

Page 21: Mercury load runner

Mercury LoadRunner AnalysisAnalysis Summary

Available Graphs

Summary Report

Data with Legend

Page 22: Mercury load runner

Mercury LoadRunner AnalysisViewing a part of scenarioYou can instruct LoadRunner to calculate graphs

and reports based on a part of the scenario. For example, if you have a scenario with a duration

of 400 seconds, but you are only interested in the period beginning at 60 and ending with 360 seconds, you can specify that interval in the Time Filter dialog box.

After setting the time filter, you must rebuild the result database in order for the changes to take effect.

Page 23: Mercury load runner

Mercury LoadRunner AnalysisMerging Graph

Page 24: Mercury load runner

Mercury LoadRunner Analysis

Running Virtual Users Graph

The Running Virtual User graph displays the number of Vusers that executed Vuser scripts during each second of a scenario run. This graph is useful for determining the Vuser load on your server at any given moment. The x-axis represents the elapsed time (in seconds) since the start of the scenario run. The y-axis represents the number of running Vusers in the scenario

Page 25: Mercury load runner

Mercury LoadRunner Analysis

Transactions per Second Graph

(Passed)The Transactions per Second (Passed) graph displays the number of completed, successful transactions performed during each second of a scenario run.

Page 26: Mercury load runner

Mercury LoadRunner Analysis

About Scenario PerformanceDuring scenario execution, Vusers generate data

as they perform their transactions. LoadRunner allows you to generate graphs that

show scenario activity or overall scenario performance.

Scenario performance graphs and reports let you analyze Vuser behavior throughout the scenario.

The Performance graphs map the transaction response time, and other general information about the scenario.

Page 27: Mercury load runner

Mercury LoadRunner Analysis

Transaction Response Time (Percentile)

The Percentile graph analyzes the percentage of transactions that were performed within a given time range. This graph helps you determine the percentage of transactions that met the performance criteria defined for your system.

Page 28: Mercury load runner

Mercury LoadRunner AnalysisTransaction Response

Time Under Load Graph

The Transaction Response Time Under Load graph indicates transaction response times relative to the number of Vusers running at any given point during the scenario.

Page 29: Mercury load runner

Mercury LoadRunner Analysis

Hits Per Second Graph

Displays the number of hits made on the Web server by Vusers during each second of the load test. This graph helps you evaluate the amount of load Vusers generate, in terms of the number of hits.

Page 30: Mercury load runner

Mercury LoadRunner AnalysisThroughput

Displays the amount of throughput (in bytes) on the Web server during the load test. Throughput represents the amount of data that the Vusers received from the server at any given second. This graph helps you to evaluate the amount of load Vusers generate, in terms of server throughput.

Page 31: Mercury load runner

Mercury LoadRunner Analysis

Server and Network Graph(s)

Depending on the measurements selected and the server selected LoadRunner produces graphs based on them.Sample: Weblogic and Oracle

Page 32: Mercury load runner

Thank You!

Mercury LoadRunner