SlideShare a Scribd company logo
1 of 32
Mercury LoadRunner

TestingQA
CONTENTS
What is Performance Testing?
Introducing Mercury LoadRunner
LoadRunner Terminology
Mercury LoadRunner Components
Steps in LoadRunner Testing Process
LoadRunner Virtual User Generator
Mercury LoadRunner Controller
Mercury LoadRunner Analysis
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
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
LoadRunner Terminology
Scenarios
Using 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.
Vusers
In 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.
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.
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.
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.
Mercury LoadRunner Components
 Virtual User Generator (VuGen)
 LoadRunner Controller
 LoadRunner Analysis
Steps in LoadRunner Testing Process
Plan the test

 Plan the test
 Create Vuser scripts
 Create controller scenario

Create Vuser Scripts

Create Controller Scenario

 Run the scenario
 Monitor the scenario

Run the Scenario

 Analyze the results
Monitor the scenario

Analyze the results
LoadRunner Virtual User Generator
VuGen Code View

VuGen Script
Editor

Logs
LoadRunner Virtual User Generator
Section of Script
Vuser_init
Action
Vuser_end

Sections
LoadRunner Virtual User Generator
Developing Vuser Scripts
Walk through the scenario to be
scripted
Record the scenario
Edit or enhance the script
Configure the runtime settings
Run the Vuser script
Re-enhance and re-run till working
properly
Incorporate the script into LR scenario
LoadRunner Virtual User Generator
Scripting
Mainly ‘C’ Programming Language Based
Able to incorporate ‘C’ looping structures (for, if, while,…)
Can also use Java, JavaScript, VB and VBScript

Script Enhancements
Transactions
Parameterization
Rendezvous Points
Think Time
LoadRunner Virtual User Generator
Defining User Behavior
Recording Options






Recording
Browser
Recording Proxy
Advanced
Correlation

Runtime Settings
 General
 Network
 Browser
 Internet Protocol
Mercury LoadRunner Controller

New Scenario:
Manual Scenario
Percentages Option
Goal Oriented Scenario
Mercury LoadRunner Controller
Controller Design Tab

Scenario Schedule
Section (Manual
Scenario)
Edit Schedule
Scenario

Scenario Group
Section (Manual
Scenario)

Run Tab
Mercury LoadRunner Controller
Configurations on Design Tab
Edit Schedule
Setting Up the Rendezvous (If Any)
Runtime Settings
Load Generators
No of Vuser per Script
Mercury LoadRunner Controller
Controller Run Tab

Scenario Status
Scenario Groups
Available Graphs Tree
Graph Viewing
area
Online Monitor
Graphs

Graph Legend
Mercury LoadRunner Controller
Monitoring at Scenario Run
In 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.
Mercury LoadRunner Analysis
Analysis Summary

Available Graphs

Summary Report

Data with Legend
Mercury LoadRunner Analysis
Viewing a part of scenario
You 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.
Mercury LoadRunner Analysis
Merging Graph
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
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.
Mercury LoadRunner Analysis
About Scenario Performance
During 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.
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
Mercury LoadRunner Analysis
Transaction
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.
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
Mercury LoadRunner Analysis
Throughput
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
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
Mercury
LoadRunner

Thank You!

More Related Content

Similar to Mercury load runner

advanced_load_runner.ppt
advanced_load_runner.pptadvanced_load_runner.ppt
advanced_load_runner.pptSunilKumar61580
 
LoadRunner Performance Testing
LoadRunner Performance TestingLoadRunner Performance Testing
LoadRunner Performance TestingAtul Pant
 
Top 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdfTop 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdfAnanthReddy38
 
Top 20 LoadRunner Interview Questions and Answers in 2023.pptx
Top 20 LoadRunner Interview Questions and Answers in 2023.pptxTop 20 LoadRunner Interview Questions and Answers in 2023.pptx
Top 20 LoadRunner Interview Questions and Answers in 2023.pptxAnanthReddy38
 
Performance testing with loadrunner by kc
Performance testing with loadrunner by kcPerformance testing with loadrunner by kc
Performance testing with loadrunner by kckrishna chaitanya
 
How the monitors work
How the monitors workHow the monitors work
How the monitors workraghutrv
 
Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Hima Bindu Kosuru
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runnerReturn on Intelligence
 
Loadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue SolutionsLoadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue SolutionsRapidValue
 
Loadrunner Interview quetion & answers
Loadrunner Interview quetion & answersLoadrunner Interview quetion & answers
Loadrunner Interview quetion & answersNancy Nelida
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1Sun Technlogies
 
Loadrunner presentation
Loadrunner presentationLoadrunner presentation
Loadrunner presentationmedsherb
 
Ginsbourg.com - Performance and Load Test Report Template LTR 1.5
Ginsbourg.com - Performance and Load Test Report Template LTR 1.5Ginsbourg.com - Performance and Load Test Report Template LTR 1.5
Ginsbourg.com - Performance and Load Test Report Template LTR 1.5Shay Ginsbourg
 
Spark Streaming Recipes and "Exactly Once" Semantics Revised
Spark Streaming Recipes and "Exactly Once" Semantics RevisedSpark Streaming Recipes and "Exactly Once" Semantics Revised
Spark Streaming Recipes and "Exactly Once" Semantics RevisedMichael Spector
 

Similar to Mercury load runner (20)

QSpiders - Simple Recording and Configuration of recording options for HP Loa...
QSpiders - Simple Recording and Configuration of recording options for HP Loa...QSpiders - Simple Recording and Configuration of recording options for HP Loa...
QSpiders - Simple Recording and Configuration of recording options for HP Loa...
 
advanced_load_runner.ppt
advanced_load_runner.pptadvanced_load_runner.ppt
advanced_load_runner.ppt
 
LoadRunner Performance Testing
LoadRunner Performance TestingLoadRunner Performance Testing
LoadRunner Performance Testing
 
Top 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdfTop 20 LoadRunner Interview Questions and Answers in 2023.pdf
Top 20 LoadRunner Interview Questions and Answers in 2023.pdf
 
Top 20 LoadRunner Interview Questions and Answers in 2023.pptx
Top 20 LoadRunner Interview Questions and Answers in 2023.pptxTop 20 LoadRunner Interview Questions and Answers in 2023.pptx
Top 20 LoadRunner Interview Questions and Answers in 2023.pptx
 
Performance testing with loadrunner by kc
Performance testing with loadrunner by kcPerformance testing with loadrunner by kc
Performance testing with loadrunner by kc
 
How the monitors work
How the monitors workHow the monitors work
How the monitors work
 
LoadRunner walkthrough
LoadRunner walkthroughLoadRunner walkthrough
LoadRunner walkthrough
 
Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter
 
Performance testing using hp load runner
Performance testing using hp load runnerPerformance testing using hp load runner
Performance testing using hp load runner
 
LoadTracer
LoadTracer LoadTracer
LoadTracer
 
Loadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue SolutionsLoadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue Solutions
 
Load Runner
Load RunnerLoad Runner
Load Runner
 
Loadrunner Interview quetion & answers
Loadrunner Interview quetion & answersLoadrunner Interview quetion & answers
Loadrunner Interview quetion & answers
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1
 
Loadrunner presentation
Loadrunner presentationLoadrunner presentation
Loadrunner presentation
 
Ginsbourg.com - Performance and Load Test Report Template LTR 1.5
Ginsbourg.com - Performance and Load Test Report Template LTR 1.5Ginsbourg.com - Performance and Load Test Report Template LTR 1.5
Ginsbourg.com - Performance and Load Test Report Template LTR 1.5
 
loadrunner
loadrunnerloadrunner
loadrunner
 
Spark Streaming Recipes and "Exactly Once" Semantics Revised
Spark Streaming Recipes and "Exactly Once" Semantics RevisedSpark Streaming Recipes and "Exactly Once" Semantics Revised
Spark Streaming Recipes and "Exactly Once" Semantics Revised
 
Wwf
WwfWwf
Wwf
 

Recently uploaded

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

Mercury load runner

  • 2. CONTENTS What is Performance Testing? Introducing Mercury LoadRunner LoadRunner Terminology Mercury LoadRunner Components Steps in LoadRunner Testing Process LoadRunner Virtual User Generator Mercury LoadRunner Controller Mercury LoadRunner Analysis
  • 3. 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
  • 4. 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
  • 5. LoadRunner Terminology Scenarios Using 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. Vusers In 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.
  • 6. 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.
  • 7. 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.
  • 8. 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.
  • 9. Mercury LoadRunner Components  Virtual User Generator (VuGen)  LoadRunner Controller  LoadRunner Analysis
  • 10. Steps in LoadRunner Testing Process Plan the test  Plan the test  Create Vuser scripts  Create controller scenario Create Vuser Scripts Create Controller Scenario  Run the scenario  Monitor the scenario Run the Scenario  Analyze the results Monitor the scenario Analyze the results
  • 11. LoadRunner Virtual User Generator VuGen Code View VuGen Script Editor Logs
  • 12. LoadRunner Virtual User Generator Section of Script Vuser_init Action Vuser_end Sections
  • 13. LoadRunner Virtual User Generator Developing Vuser Scripts Walk through the scenario to be scripted Record the scenario Edit or enhance the script Configure the runtime settings Run the Vuser script Re-enhance and re-run till working properly Incorporate the script into LR scenario
  • 14. LoadRunner Virtual User Generator Scripting Mainly ‘C’ Programming Language Based Able to incorporate ‘C’ looping structures (for, if, while,…) Can also use Java, JavaScript, VB and VBScript Script Enhancements Transactions Parameterization Rendezvous Points Think Time
  • 15. LoadRunner Virtual User Generator Defining User Behavior Recording Options      Recording Browser Recording Proxy Advanced Correlation Runtime Settings  General  Network  Browser  Internet Protocol
  • 16. Mercury LoadRunner Controller New Scenario: Manual Scenario Percentages Option Goal Oriented Scenario
  • 17. Mercury LoadRunner Controller Controller Design Tab Scenario Schedule Section (Manual Scenario) Edit Schedule Scenario Scenario Group Section (Manual Scenario) Run Tab
  • 18. Mercury LoadRunner Controller Configurations on Design Tab Edit Schedule Setting Up the Rendezvous (If Any) Runtime Settings Load Generators No of Vuser per Script
  • 19. Mercury LoadRunner Controller Controller Run Tab Scenario Status Scenario Groups Available Graphs Tree Graph Viewing area Online Monitor Graphs Graph Legend
  • 20. Mercury LoadRunner Controller Monitoring at Scenario Run In 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.
  • 21. Mercury LoadRunner Analysis Analysis Summary Available Graphs Summary Report Data with Legend
  • 22. Mercury LoadRunner Analysis Viewing a part of scenario You 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.
  • 24. 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
  • 25. 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.
  • 26. Mercury LoadRunner Analysis About Scenario Performance During 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.
  • 27. 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
  • 28. Mercury LoadRunner Analysis Transaction 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.
  • 29. 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
  • 30. Mercury LoadRunner Analysis Throughput 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
  • 31. 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