SlideShare a Scribd company logo
1 of 18
Software Testing
Documented By
Hima Bindu Kosuru
• Software testing is an activity to check whether the actual results are matches with the expected
results and to be ensure that the software testing is a bug free.
We need this to overcome the issues like below:
 Field validation issues
 Site responsiveness under specific load.
 Confusing Navigation
 Inadequate InSite search
 Lack of device and browsing compatibility
• Lack of testing may lead to:
Loss of Money , Time and Business Reputation
• Testing includes activities that ensure the identification of bugs/errors/defects in a software.
• Software quality Assurance(SQA) is error preventive and verification activity. SQA role is to audit
that documented standards, processes and procedure are follow as enforced by development policy.
Needed material is checklist and performed by QA engineers.
• Software quality control(SQC) is defect detection and validation activity. SQA role (usually tests) is
to confirm the quality of a system and to check whether this application adheres the defined quality
standard or not. Needed material is application and performance by software testers.
Software Development Life
Cycle
Requirement
analisis
Project
Planning
Project Design
Developent
Testing
Implimentation
and maintance
Error which is a mistake of an human action
that produces an incorrect result.
Fault which is a bug or the defect which
flaw in a component or system that can
cause the component or the system fail to
perform its required function.
Failure is a deviation of the component or
system from its expected delivery or serivce
or result.
Test data planning essentially includes test procedure planning
Software testing Lifecycle
White Box Testing
White box testing
Structural testing
Code Complexity
Cyclomatic complexity
Code coverage
Statement Coverage
Path Coverage
Condition coverage
Function Coverage
Unit/Code functionality
testing
Static Testing
Desk Checking
Code Walk through
Code inspection
A way of testing the external functionality of the code by
examining and testing the program code that realizes the external
functionality.
Advantages / Pros of White Box Testing
 Code optimization by revealing hidden errors
 Transparency of the internal coding structure which is helpful
in deriving the type of input data needed to test an application
effectively
 Covers all possible paths of a code thereby, empowering a
software engineering team to conduct thorough application
testing
 Enables programmer to introspect because developers can
carefully describe any new implementation
 Test cases can be easily automated
 Gives engineering-based rules to stop testing an application
Disadvantages / Cons of White Box Testing
o A complex and expensive procedure which requires the
adroitness of a seasoned professional, expertise in
programming and understanding of internal structure of a
code
o Updated test script required when the implementation is
changing too often
o Exhaustive testing becomes even more complex using the
white box testing method if the application is of large size
o Some conditions might be untested as it is not realistic to test
every single one
o Necessity to create full range of inputs to test each path and
condition make the white box testing method time-consuming
o Defects in the code may not be detected or may be introduced
considering the ground rule of analyzing each line by line or
path by path.
Black Box Testing
Functional testing types include:
 Integration Testing
 System Testing
 Sanity Testing
 Smoke Testing
 Interface Testing
 Regression Testing
 Beta/Acceptance Testing
 Refinement Testing
Blackbox testing is done without the knowledge of the internal of the system under
test.
Requirement based testing tests the products compliance to the requirement
specifications.
Advantages / Pros of Black Box Testing:
 Unbiased tests because the designer and tester work independently
 Tester is free from any pressure of knowledge of specific programming
languages to test the reliability and functionality of an application / software
 Facilitates identification of contradictions and vagueness in functional
specifications
 Test is performed from a user’s point-of-view and not of the designer’s
 Test cases can be designed immediately after the completion of specifications
Disadvantages / Cons of Black Box Testing:
o Tests can be redundant if already run by the software designer
o Test cases are extremely difficult to be designed without clear and concise
specifications
o Testing every possible input stream is not possible because it is time-consuming
and this would eventually leave many program paths untested
o Results might be overestimated at times
o Cannot be used for testing complex segments of code
Differences Between Blackbox and white box Testing
Performance Testing
Non-functional testing types include:
 Performance Testing
 Load testing
 Stress testing
 Volume testing
 Security testing
 Compatibility testing
 Install testing
 Recovery testing
 Reliability testing
 Usability testing
 Compliance testing
 Localization testing
Scenario's Of Performance Testing
Throughput
Response Time
Think time
Peak Load and Average Load
Breakpoint
Stability, Scalability
 An industry-leading performance and load testing product by Hewlett-Packard (since it acquired Mercury
Interactive in November 2006).
 LoadRunner reduces the personnel requirements by replacing human users with virtual users or Vusers.
These Vusers emulate the behavior of real users — operating real applications.
 Because numerous Vusers can run on a single computer, LoadRunner reduces the hardware
requirements.
 The LoadRunner Controller allows you to easily and effectively control all the Vusers — from a single point
of control.
 LoadRunner monitors the application performance online, enabling you to fine-tune your system during
test execution.
 LoadRunner automatically records the performance of the application during a test. You can choose from
a wide variety of graphs and reports to view the performance data.
 LoadRunner checks where performance delays occur: network or client delays, CPU performance, I/O
delays, database locking, or other issues at the database server. LoadRunner monitors the network and
server resources to help you improve performance.
 Because LoadRunner tests are fully automated, you can easily repeat them as often as you need.
Why HP LoadRunner?
LoadRunner Architecture
LoadRunner TerminologyScenarios:
Using LoadRunner, application performance testing requirements are divided into scenarios.
A scenario defines the events that occur during each testing sessions.
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 a scenario, LoadRunner replaces human users with virtual users or Vusers.
In 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.
Vuser Scripts
The actions that a Vuser performs during the scenario are described in a Vuser script
When a scenario is executed, each Vuser executes a Vuser script. Vuser scripts include functions that measure and record the performance of the
server during the scenario.
Transactions
To measure the performance of the server, transactions are defined.
Transactions measure the time that it takes for the server to respond to tasks submitted by Vusers.
Rendezvous Points
Rendezvous points are used 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, we insert a rendezvous point to instruct 100 Vusers to simultaneously deposit cash into their
accounts.
Controller
LoadRunner Controller is used to manage and maintain scenarios.
Using the Controller, we can control all the Vusers in a scenario from a single workstation.
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.
How LoadRunner Works?
LoadRunner works by creating virtual users who take the place of real users operating client
software sending requests using the HTTP protocol to web servers.
Requests from many virtual user clients are generated by "Load Generators" in order to
create a load on various servers under test
The Controller controls load test runs based on "Scenarios" invoking compiled "Scripts" and
associated "Run-time Settings".
Scripts are crafted using "Virtual user script Generator" (named "VU Gen"), It generates C-
language script code to be executed by virtual users by capturing network traffic between
Internet application clients and servers.
During runs, the status of each machine is monitored by the Controller.
At the end of each run, the Controller combines its monitoring logs with logs obtained from
load generators, and makes them available to the "Analysis" program, which can then create
run result reports and graphs for Microsoft Word, Crystal Reports, or an HTML webpage
browser.
What is Jmeter?
• Apache JMeter is a 100% pure Java desktop application designed to performance/load test client/server software (such as a web application)
• Initially developed for web apps, but later extended to
 FTP
 LDAP
 Databases
 Java Objects
 It is an Open source tool
 Can be used on different protocols and server types : SOAP, REST, JDBC, Mail
 User friendly GUI Design compare to other tools
 Test results can be displayed in various formats such as Summary report, Aggregate report, View Results Tree and View Results in Table
 Short learning curve (basic HTML knowledge should do it for a beginner)
 Can be extended through plug-ins
 Has excellent documentation
Main Components
• Test plan:
 The main part of JMeter scripts
 The “home” of thread groups, samplers, configuration elements and other specific components
• Workbench:
 Used mainly for generating script components using “HTTP(S) Test Script Recorder” component
 By default not saving components in scripts
• Samplers perform the actual work(requests)
• Logic Controllers determine the order in which samplers are processed
• Listeners provide means to view, save, and read saved test results
• Configuration elements can be used to set up defaults and variables for later use by samplers
• Assertions are used to perform additional checks on samplers
• Timers(waits) are applied before the sampler is executed
• Pre/Post Processors are used to modify the Samplers in their scope
• Misc: Thread Group(+setUp, +tearDown), HTTPS Test Script Recorder
Most Used Components
Windows performance Monitoring
• Examine how programs you run affect your computer's performance, both in real time
and by collecting log data for later analysis
• Uses performance counters, event trace data, and configuration information, which can
be combined into Data Collector Sets
• Performance counters are measurements of system state or activity
• Event trace data is collected from trace providers
• Configuration information is collected from key values in the Windows registry
• Run => perfmon
• Create templates for later use
Software Testing includes Performance testing with Load Runner and the JMeter

More Related Content

What's hot

Loadrunner presentation
Loadrunner presentationLoadrunner presentation
Loadrunner presentation
medsherb
 
Performance Testing With Loadrunner
Performance Testing With LoadrunnerPerformance Testing With Loadrunner
Performance Testing With Loadrunner
vladimir zaremba
 
LoadRunner Performance Testing
LoadRunner Performance TestingLoadRunner Performance Testing
LoadRunner Performance Testing
Atul Pant
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runner
telab
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
VijayChowthri Nagaprakasham
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
Atul Pant
 

What's hot (17)

Loadrunner presentation
Loadrunner presentationLoadrunner presentation
Loadrunner presentation
 
Load runner & win runner
Load runner & win runnerLoad runner & win runner
Load runner & win runner
 
Performance Testing With Loadrunner
Performance Testing With LoadrunnerPerformance Testing With Loadrunner
Performance Testing With Loadrunner
 
Loadrunner interview questions and answers
Loadrunner interview questions and answersLoadrunner interview questions and answers
Loadrunner interview questions and answers
 
Performance Requirement Gathering
Performance Requirement GatheringPerformance Requirement Gathering
Performance Requirement Gathering
 
LoadRunner Performance Testing
LoadRunner Performance TestingLoadRunner Performance Testing
LoadRunner Performance Testing
 
Introduction to Performance Testing & Loadrunner
Introduction to Performance Testing & LoadrunnerIntroduction to Performance Testing & Loadrunner
Introduction to Performance Testing & Loadrunner
 
Advanced Load Runner
Advanced Load RunnerAdvanced Load Runner
Advanced Load Runner
 
Performance testing interview questions and answers
Performance testing interview questions and answersPerformance testing interview questions and answers
Performance testing interview questions and answers
 
Top 20 best automation testing tools
Top 20 best automation testing toolsTop 20 best automation testing tools
Top 20 best automation testing tools
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
 
Performance Bottleneck Identification
Performance Bottleneck IdentificationPerformance Bottleneck Identification
Performance Bottleneck Identification
 
Loadrunner vs Jmeter
Loadrunner vs JmeterLoadrunner vs Jmeter
Loadrunner vs Jmeter
 
Jmeter Performance Testing
Jmeter Performance TestingJmeter Performance Testing
Jmeter Performance Testing
 
Winrunner
WinrunnerWinrunner
Winrunner
 
Loadrunner Interview quetion & answers
Loadrunner Interview quetion & answersLoadrunner Interview quetion & answers
Loadrunner Interview quetion & answers
 
JMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | EdurekaJMeter vs LoadRunner | Edureka
JMeter vs LoadRunner | Edureka
 

Similar to Software Testing includes Performance testing with Load Runner and the JMeter

advanced_load_runner.ppt
advanced_load_runner.pptadvanced_load_runner.ppt
advanced_load_runner.ppt
SunilKumar61580
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
Qualitest
 

Similar to Software Testing includes Performance testing with Load Runner and the JMeter (20)

Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1
 
Laravel Load Testing: Strategies and Tools
Laravel Load Testing: Strategies and ToolsLaravel Load Testing: Strategies and Tools
Laravel Load Testing: Strategies and Tools
 
Automation Tool Overview
Automation Tool OverviewAutomation Tool Overview
Automation Tool Overview
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools Overview
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools Overview
 
Load runner 8.0
Load runner 8.0Load runner 8.0
Load runner 8.0
 
Load testing
Load testingLoad testing
Load testing
 
Copy of Silk performer - KT.pptx
Copy of Silk performer - KT.pptxCopy of Silk performer - KT.pptx
Copy of Silk performer - KT.pptx
 
Performance testing material
Performance testing materialPerformance testing material
Performance testing material
 
SOFTWARE TESTING.pptx
SOFTWARE TESTING.pptxSOFTWARE TESTING.pptx
SOFTWARE TESTING.pptx
 
JMeter
JMeterJMeter
JMeter
 
HP Software Testing project (Advanced)
HP Software Testing project (Advanced)HP Software Testing project (Advanced)
HP Software Testing project (Advanced)
 
HP LoadRunner
HP LoadRunnerHP LoadRunner
HP LoadRunner
 
PERFORMANCE TESTING USING LOAD RUNNER
PERFORMANCE  TESTING  USING  LOAD RUNNERPERFORMANCE  TESTING  USING  LOAD RUNNER
PERFORMANCE TESTING USING LOAD RUNNER
 
advanced_load_runner.ppt
advanced_load_runner.pptadvanced_load_runner.ppt
advanced_load_runner.ppt
 
Modernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectModernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-Architect
 
Testing project (basic)
Testing project (basic)Testing project (basic)
Testing project (basic)
 
Dotcom monitor platform overview
Dotcom monitor platform overviewDotcom monitor platform overview
Dotcom monitor platform overview
 
Load and performance testing
Load and performance testingLoad and performance testing
Load and performance testing
 
QSpiders - Introduction to JMeter
QSpiders - Introduction to JMeterQSpiders - Introduction to JMeter
QSpiders - Introduction to JMeter
 

Recently uploaded

Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 

Recently uploaded (20)

TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 

Software Testing includes Performance testing with Load Runner and the JMeter

  • 2. • Software testing is an activity to check whether the actual results are matches with the expected results and to be ensure that the software testing is a bug free. We need this to overcome the issues like below:  Field validation issues  Site responsiveness under specific load.  Confusing Navigation  Inadequate InSite search  Lack of device and browsing compatibility • Lack of testing may lead to: Loss of Money , Time and Business Reputation • Testing includes activities that ensure the identification of bugs/errors/defects in a software. • Software quality Assurance(SQA) is error preventive and verification activity. SQA role is to audit that documented standards, processes and procedure are follow as enforced by development policy. Needed material is checklist and performed by QA engineers. • Software quality control(SQC) is defect detection and validation activity. SQA role (usually tests) is to confirm the quality of a system and to check whether this application adheres the defined quality standard or not. Needed material is application and performance by software testers.
  • 3. Software Development Life Cycle Requirement analisis Project Planning Project Design Developent Testing Implimentation and maintance Error which is a mistake of an human action that produces an incorrect result. Fault which is a bug or the defect which flaw in a component or system that can cause the component or the system fail to perform its required function. Failure is a deviation of the component or system from its expected delivery or serivce or result. Test data planning essentially includes test procedure planning
  • 5. White Box Testing White box testing Structural testing Code Complexity Cyclomatic complexity Code coverage Statement Coverage Path Coverage Condition coverage Function Coverage Unit/Code functionality testing Static Testing Desk Checking Code Walk through Code inspection A way of testing the external functionality of the code by examining and testing the program code that realizes the external functionality. Advantages / Pros of White Box Testing  Code optimization by revealing hidden errors  Transparency of the internal coding structure which is helpful in deriving the type of input data needed to test an application effectively  Covers all possible paths of a code thereby, empowering a software engineering team to conduct thorough application testing  Enables programmer to introspect because developers can carefully describe any new implementation  Test cases can be easily automated  Gives engineering-based rules to stop testing an application Disadvantages / Cons of White Box Testing o A complex and expensive procedure which requires the adroitness of a seasoned professional, expertise in programming and understanding of internal structure of a code o Updated test script required when the implementation is changing too often o Exhaustive testing becomes even more complex using the white box testing method if the application is of large size o Some conditions might be untested as it is not realistic to test every single one o Necessity to create full range of inputs to test each path and condition make the white box testing method time-consuming o Defects in the code may not be detected or may be introduced considering the ground rule of analyzing each line by line or path by path.
  • 6. Black Box Testing Functional testing types include:  Integration Testing  System Testing  Sanity Testing  Smoke Testing  Interface Testing  Regression Testing  Beta/Acceptance Testing  Refinement Testing Blackbox testing is done without the knowledge of the internal of the system under test. Requirement based testing tests the products compliance to the requirement specifications. Advantages / Pros of Black Box Testing:  Unbiased tests because the designer and tester work independently  Tester is free from any pressure of knowledge of specific programming languages to test the reliability and functionality of an application / software  Facilitates identification of contradictions and vagueness in functional specifications  Test is performed from a user’s point-of-view and not of the designer’s  Test cases can be designed immediately after the completion of specifications Disadvantages / Cons of Black Box Testing: o Tests can be redundant if already run by the software designer o Test cases are extremely difficult to be designed without clear and concise specifications o Testing every possible input stream is not possible because it is time-consuming and this would eventually leave many program paths untested o Results might be overestimated at times o Cannot be used for testing complex segments of code
  • 7. Differences Between Blackbox and white box Testing
  • 9. Non-functional testing types include:  Performance Testing  Load testing  Stress testing  Volume testing  Security testing  Compatibility testing  Install testing  Recovery testing  Reliability testing  Usability testing  Compliance testing  Localization testing Scenario's Of Performance Testing Throughput Response Time Think time Peak Load and Average Load Breakpoint Stability, Scalability
  • 10.  An industry-leading performance and load testing product by Hewlett-Packard (since it acquired Mercury Interactive in November 2006).  LoadRunner reduces the personnel requirements by replacing human users with virtual users or Vusers. These Vusers emulate the behavior of real users — operating real applications.  Because numerous Vusers can run on a single computer, LoadRunner reduces the hardware requirements.  The LoadRunner Controller allows you to easily and effectively control all the Vusers — from a single point of control.  LoadRunner monitors the application performance online, enabling you to fine-tune your system during test execution.  LoadRunner automatically records the performance of the application during a test. You can choose from a wide variety of graphs and reports to view the performance data.  LoadRunner checks where performance delays occur: network or client delays, CPU performance, I/O delays, database locking, or other issues at the database server. LoadRunner monitors the network and server resources to help you improve performance.  Because LoadRunner tests are fully automated, you can easily repeat them as often as you need. Why HP LoadRunner?
  • 12. LoadRunner TerminologyScenarios: Using LoadRunner, application performance testing requirements are divided into scenarios. A scenario defines the events that occur during each testing sessions. 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 a scenario, LoadRunner replaces human users with virtual users or Vusers. In 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. Vuser Scripts The actions that a Vuser performs during the scenario are described in a Vuser script When a scenario is executed, each Vuser executes a Vuser script. Vuser scripts include functions that measure and record the performance of the server during the scenario. Transactions To measure the performance of the server, transactions are defined. Transactions measure the time that it takes for the server to respond to tasks submitted by Vusers. Rendezvous Points Rendezvous points are used 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, we insert a rendezvous point to instruct 100 Vusers to simultaneously deposit cash into their accounts. Controller LoadRunner Controller is used to manage and maintain scenarios. Using the Controller, we can control all the Vusers in a scenario from a single workstation. 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.
  • 13. How LoadRunner Works? LoadRunner works by creating virtual users who take the place of real users operating client software sending requests using the HTTP protocol to web servers. Requests from many virtual user clients are generated by "Load Generators" in order to create a load on various servers under test The Controller controls load test runs based on "Scenarios" invoking compiled "Scripts" and associated "Run-time Settings". Scripts are crafted using "Virtual user script Generator" (named "VU Gen"), It generates C- language script code to be executed by virtual users by capturing network traffic between Internet application clients and servers. During runs, the status of each machine is monitored by the Controller. At the end of each run, the Controller combines its monitoring logs with logs obtained from load generators, and makes them available to the "Analysis" program, which can then create run result reports and graphs for Microsoft Word, Crystal Reports, or an HTML webpage browser.
  • 14. What is Jmeter? • Apache JMeter is a 100% pure Java desktop application designed to performance/load test client/server software (such as a web application) • Initially developed for web apps, but later extended to  FTP  LDAP  Databases  Java Objects  It is an Open source tool  Can be used on different protocols and server types : SOAP, REST, JDBC, Mail  User friendly GUI Design compare to other tools  Test results can be displayed in various formats such as Summary report, Aggregate report, View Results Tree and View Results in Table  Short learning curve (basic HTML knowledge should do it for a beginner)  Can be extended through plug-ins  Has excellent documentation
  • 15. Main Components • Test plan:  The main part of JMeter scripts  The “home” of thread groups, samplers, configuration elements and other specific components • Workbench:  Used mainly for generating script components using “HTTP(S) Test Script Recorder” component  By default not saving components in scripts • Samplers perform the actual work(requests) • Logic Controllers determine the order in which samplers are processed • Listeners provide means to view, save, and read saved test results • Configuration elements can be used to set up defaults and variables for later use by samplers • Assertions are used to perform additional checks on samplers • Timers(waits) are applied before the sampler is executed • Pre/Post Processors are used to modify the Samplers in their scope • Misc: Thread Group(+setUp, +tearDown), HTTPS Test Script Recorder
  • 17. Windows performance Monitoring • Examine how programs you run affect your computer's performance, both in real time and by collecting log data for later analysis • Uses performance counters, event trace data, and configuration information, which can be combined into Data Collector Sets • Performance counters are measurements of system state or activity • Event trace data is collected from trace providers • Configuration information is collected from key values in the Windows registry • Run => perfmon • Create templates for later use