SlideShare a Scribd company logo
Case Study

Performance Testing with LoadRunner




   Optimus Confidential 2009-2010   1   TESTING OPTIMIZED
Test Design

 Goals of Performance Test

 •   To assess performance impacts on the system upgrade.

 •   To verify response times and stability of the system under increasing
     user loads.

 •   To identify potential performance problems and to provide
     recommendations to address these potential problems.

 •   To identify a performance baseline for comparison for the subsequent
     platform migration.




         Optimus Confidential 2009-2010      2                         TESTING OPTIMIZED
Test Design

  Performance Test Approach

                             Test Scenarios       Performed     Total      Total       Total       Total         Total
                                                  by % Users   Load of    Load of     Load of     Load of       Load of
                                                               40 Users   80 Users   120 Users   160 Users     200 Users



   Review Pay Cheques                                40%           15       32          48          64            80

   Add Time Report                                   20%           8        16          24          32            40

   View Cancel Time Report                           10%           4         8          12          16            20

   View Calendar Others                              10%           4         8          12          16            20


   View Calendar Team – 10 Direct Reports             4%           1         1           1           2             2
   View Calendar Team – 28 Direct Reports                          1         1           2           2             3
   View Calendar Team – 62 to 74 Direct Reports                    1         1           2           3             3


   Approve Time                                       4%           1         3           5           7             8


   Approve and Cancel Time                            4%           1         3           5           6             8

   Manage Direct Reports                              4%           2         3           5           6             8


   Successful Candidates                              2%           1         2           2           3             4

   Job Requisition Summary                            2%           1         2           2           3             4




             Optimus Confidential 2009-2010                    3                                             TESTING OPTIMIZED
Test Design

                                            Script Name                                                Transaction Name
   General Transactions used by all the scripts           A3001a_Employee_Load_Login
                                                          A3001b_Manager_Load_Login
                                                          A3001c_Recruitment_Load_Login
                                                          A3002a_Login_Employee_Self_Service_Menu
                                                          A3002b_Login_Manager_Self_Service_Menu
                                                          A3002c_Login_Recruitment_Menu

   WHR31-Review_Pay_Cheques                               A3103_Load_view_paycheque_screen
                                                          A3104_Click_View_A_Different_Paycheque
                                                          A3105_Load_Another_Paycheque_Period
   WHR32_Add_Time_Report                                  A3203_Load_Time_Absence_Add
                                                          A3204_Select_Earnings_Code_Type
                                                          A3205_Select_From_Date
                                                          A3206_Load_Add_Comment_Screen
                                                          A3207_Click_Comment_OK
                                                          A3208_Save_time_absence_entry

   WHR33_View_Cancel_Time_Report                          A3303_Load_Time_Absence_View_Cancel
                                                          A3304_Load_Time_Absence_Status_History
   WHR34_View_Calendar_Others                             A3402_Load_Time_Absence_Calendar
                                                          A3403_TA_Calendar_Query
   WHR35_View_Calendar_Team_10DirectReports               A3503a_10DirectReports_Load_TA_Mgr_Cal
                                                          A3504a_10DirectReports_Mgr_Calendar_Query
   WHR35_View_Calendar_Team_28DirectReports               A3503b_28DirectReports_Load_TA_Mgr_Cal
                                                          A3504b_28DirectReports_Mgr_Calendar_Query
   WHR35_View_Calendar_Team_62to74DirectReports           A3503c_62to74DDirectReports_Load_TA_Mgr_Cal
                                                          A3504c_62to74DirectReports_Mgr_Calendar_Query
   WHR36_Approve_Time                                     A3503d_4to49DirectReports_Load_TA_Mgr_Cal
                                                          A3601_Open_TA_Approvals_List
                                                          A3602_Approve_TA_entry
   WHR37_Approve_and_Cancel_Time                          A3503_Load_TA_Calendar_Manager
                                                          A3601_Open_TA_Approvals_List
                                                          A3602_Approve_TA_entry
                                                          A3701_Open_TA_Cancel_List
                                                          A3702_Cancel_TA_entry

   WHR38_Direct_Report                                    A3804_Load_Direct_Reports_screen
                                                          A3805_Direct_Reports_Load_Time_Off_Details
   WHR39_Successful_Canadidates                           A3904_Load_Successful_Candidates_screen
   WHR40_Job_Req_Summary                                  A4003_Load_Job_Req_Summary
                                                          A4004_Job_Req_Item_History
                                                          A4005_Job_Req_Item_Detail




                  Optimus Confidential 2009-2010                         4                                                TESTING OPTIMIZED
Test Preparation

   Test Data
   • Test user IDs need to be created to have proper relationship
   • Pre-Populate Employees time reports for managers to approve

   LoadRunner scripting
   • The AUT has a lot of dynamic HTML and AJAX components
   • Use LoadRunner’s AJAX Click-And-Script protocol to record scripts
   • Scripts are modulized so that components are reusable.

   Load Generator Agents
   • LoadRunner load generator agents are setup on two servers




        Optimus Confidential 2009-2010   5                          TESTING OPTIMIZED
Test Preparation
   LoadRunner Controller Load Scenarios
   • Load Test Scenarios ramp-up 1 user every 2 seconds and all scripts
     have wait time
   • Stress Test Scenarios ramp-up 2 users every 1 second and all scripts
     have no wait time




        Optimus Confidential 2009-2010    6                       TESTING OPTIMIZED
Test Preparation

   Server Monitoring and Logging
   • PerfMon was setup to log measurement counters on both Windows
      2008 application servers
   • DB2 tasks CPU utilization and SQL transactional performance were
      also logged
   • Mainframe Central Processors utilization was also logged

   Test Environment Downtime Coordination
   • The test environment was scheduled to be inaccessible by other users
      during performance tests

   Dry-runs
   • A number of low user load tests were carried out to make sure all team
      members get familiar with the test execution process and to make sure
      all test execution issues are surfaced and resolved



        Optimus Confidential 2009-2010    7                        TESTING OPTIMIZED
Test Execution

   •   All team members are invited to MS Communicator before test
       execution starts. All activities and observations during test execution
       are logged in Communicator conversations in a chronological order

   •   Run script to populate data before load scenario execution

   •   Always allow at least 5 minutes of quiet time before and after each load
       scenario execution




         Optimus Confidential 2009-2010      8                          TESTING OPTIMIZED
Test Execution

   •   After each load scenario execution, a database tables clean-up SQL
       script will be run to remove data added by the LoadRunner scripts

   •   A database table re-org is needed after each load scenario execution

   •   WebLogic needs to be restarted after each load scenario execution




         Optimus Confidential 2009-2010    9                         TESTING OPTIMIZED
Test Results




       Optimus Confidential 2009-2010   10   TESTING OPTIMIZED
Test Results

   •   Under realistic user loads of 40 and 80 concurrent users, Many
       functions performed within 3 seconds, with certain known intense
       functions taking slightly longer but still under 8 seconds range.
   •   Under a heavier load of 120, 160, and 200 concurrent users, Many
       functions performed within 5 seconds, with certain intense functions
       taking slightly longer but still under 10 seconds range.
   •   These transactions are considered the more intense functions and are
       having higher response time:
        –      View paycheque
        –      Load Time/Absence Calendar (both employees and managers)
        –      Query Time/Absence Calendar (both employees and managers)
        –      Managers open Time/Absence Cancel List
        –      Managers load Manage Direct Reports page
        –      Managers load Direct Reports Time Off Detail page
        –      Recruitment – Job Requisition Summary




            Optimus Confidential 2009-2010          11                     TESTING OPTIMIZED
Test Results




     The LoadRunner response time graph from 200 users test shows that majority of
     transactions are under 5 seconds, with some transactions between 5 – 10
     seconds. Only the known intense transactions are over 10 seconds



        Optimus Confidential 2009-2010       12                          TESTING OPTIMIZED
Test Results




     This is a PerfMon graph showing one app server’s various performance counters
     during the 40, 80, and 120 users tests


        Optimus Confidential 2009-2010       13                          TESTING OPTIMIZED
Test Results




   This graph shows that the DB2 transaction response time is not in direct proportion
   to the user load. The possible reason is that DB2 is a shared environment with
   resources utilized by other applications during our tests. The DB2 transaction
   response time has direct impact to our performance test response time.




        Optimus Confidential 2009-2010        14                            TESTING OPTIMIZED
Conclusion

•   Projection has been made that the system can handle approximately
    320 concurrent users in a real production environment while response
    times be within 10 seconds for the frequently used non-intense
    transactions.

•   In our estimation, the system can comfortably accommodate 160
    concurrent users and still maintain acceptable response times of 5
    seconds or less for most functions.

•   The intense transactions will always have higher response time due to
    the volume of data being retrieved and displayed.




      Optimus Confidential 2009-2010    15                         TESTING OPTIMIZED
• Thank you

• Q&A




    Optimus Confidential 2009-2010   16   TESTING OPTIMIZED
Optimus Information Inc.
                                                                 #120 – 1412 West 7th Ave
                                                                 Vancouver BC V6H 1C1
                                                                 Canada
OptimusTest                                                      Phone: 604.601.2185
                                                                 Email: info@optimusinfo.com




                                   H - 110, Sector 63
                                   Noida 201301, India

                                   Phone : +91.98102.86872
                                   Email: info@optimusinfo.com



  Optimus Confidential 2009-2010                         17                          TESTING OPTIMIZED

More Related Content

PPTX
Microservices Architecture & Testing Strategies
PDF
Case Study: Performance Testing
PDF
How to Automate API Testing
PDF
Machine learning in production
PDF
CNIT 129S: 11: Attacking Application Logic
ODP
Using Mockito
PDF
Introduction to Software Test Automation
PPTX
Debugging in UiPath.pptx
Microservices Architecture & Testing Strategies
Case Study: Performance Testing
How to Automate API Testing
Machine learning in production
CNIT 129S: 11: Attacking Application Logic
Using Mockito
Introduction to Software Test Automation
Debugging in UiPath.pptx

What's hot (20)

PPTX
Monitoring and Resiliency Testing our Apache Kafka Clusters at Goldman Sachs ...
PPTX
Load and performance testing
PDF
PPTX
Log analysis using Logstash,ElasticSearch and Kibana
PPTX
Writing Test Cases 20110808
PPTX
Introduction to Automation Testing
PDF
Practical DevSecOps: Fundamentals of Successful Programs
PDF
Space Camp - API Contract Testing
PDF
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...
PPTX
Postman. From simple API test to end to end scenario
PPTX
API Testing for everyone.pptx
PPTX
Privacy preserving computing and secure multi-party computation ISACA Atlanta
PPT
Loadrunner presentation
PPT
Web Scraping and Data Extraction Service
PDF
Performance testing presentation
PDF
LoadRunner Performance Testing
PPTX
Api testing
PPTX
Introduction to Automation Testing
PDF
CNIT 129S Ch 4: Mapping the Application
PPT
Image (PNG) Forensic Analysis
Monitoring and Resiliency Testing our Apache Kafka Clusters at Goldman Sachs ...
Load and performance testing
Log analysis using Logstash,ElasticSearch and Kibana
Writing Test Cases 20110808
Introduction to Automation Testing
Practical DevSecOps: Fundamentals of Successful Programs
Space Camp - API Contract Testing
Variables, Data Types and Activities in UiPath | Basics of UiPath | UiPath Tu...
Postman. From simple API test to end to end scenario
API Testing for everyone.pptx
Privacy preserving computing and secure multi-party computation ISACA Atlanta
Loadrunner presentation
Web Scraping and Data Extraction Service
Performance testing presentation
LoadRunner Performance Testing
Api testing
Introduction to Automation Testing
CNIT 129S Ch 4: Mapping the Application
Image (PNG) Forensic Analysis
Ad

Viewers also liked (20)

DOCX
Performance testing interview questions and answers
PDF
How to start performance testing project
PDF
Performance Test Plan - Sample 2
PPTX
Performance Testing using LoadRunner - Kamran Khan [chromeis.com]
PPTX
An Introduction to Performance Testing
PPTX
Introduction to performance testing
PPT
Performance and load testing
PPTX
OptimusMobility Overview
PDF
Experitest & Wipro Co-Webinar
PPTX
The Essentials of Mobile App Performance Testing and Monitoring
PDF
Performance Engineering Case Study V1.0
PPT
Are You Ready For More Visitors Cognizant Gomez Jan20
PPTX
Capgemini Oracle Engineered Systems Support Model
PPT
Model Performance Monitoring and Back-Testing as a Business and Risk Manageme...
PDF
Performance Testing of eLearning Portal- A case study by Oak Systems Pvt Ltd
PDF
Performance Testing Case Study - Cigniti Helps World's Largest Hotel Chain In...
PPTX
Automed .NET Performance Testing with NBench
PDF
General goals for teaching english in saudi arabia pdf
PPTX
We're all distributed systems devs now: a crash course in distributed program...
PDF
Continuous Web Performance Monitoring with Jenkins
Performance testing interview questions and answers
How to start performance testing project
Performance Test Plan - Sample 2
Performance Testing using LoadRunner - Kamran Khan [chromeis.com]
An Introduction to Performance Testing
Introduction to performance testing
Performance and load testing
OptimusMobility Overview
Experitest & Wipro Co-Webinar
The Essentials of Mobile App Performance Testing and Monitoring
Performance Engineering Case Study V1.0
Are You Ready For More Visitors Cognizant Gomez Jan20
Capgemini Oracle Engineered Systems Support Model
Model Performance Monitoring and Back-Testing as a Business and Risk Manageme...
Performance Testing of eLearning Portal- A case study by Oak Systems Pvt Ltd
Performance Testing Case Study - Cigniti Helps World's Largest Hotel Chain In...
Automed .NET Performance Testing with NBench
General goals for teaching english in saudi arabia pdf
We're all distributed systems devs now: a crash course in distributed program...
Continuous Web Performance Monitoring with Jenkins
Ad

Similar to Performance Testing with LoadRunner Case Study (20)

PDF
CMS CAREER MANAGEMENT SYSTEM - 5 tips (v1 n1 cms-id)
PPTX
Sudhakar
PPTX
Earning your bullhorn black belt with russ wallis
PDF
JDE & Peoplesoft 3 _ James Hoal _ Achieving faster results with JDE HCM Workf...
PPS
ATR WorkForce Presentation
PDF
Offdays tuto mode hr-EN
PPT
Timetronixdesk presentation2003
PPT
Mis hris attendancet--to present
PPTX
Jargon Free Benefits Guided Tour
PDF
2010 sectool
PDF
LinkedIn Recruiter Professional Datasheet
PPTX
Time Sheet Administration
PDF
Blubag brochure
PPSX
Rsmart hr v022013
PPSX
Office managementsoftware
PDF
Check mate jobtracking g
PPTX
TempWorks Enterpise & Services Workflow
PDF
Empxtrack free trial
PPTX
Sability Components of WFM Systems
CMS CAREER MANAGEMENT SYSTEM - 5 tips (v1 n1 cms-id)
Sudhakar
Earning your bullhorn black belt with russ wallis
JDE & Peoplesoft 3 _ James Hoal _ Achieving faster results with JDE HCM Workf...
ATR WorkForce Presentation
Offdays tuto mode hr-EN
Timetronixdesk presentation2003
Mis hris attendancet--to present
Jargon Free Benefits Guided Tour
2010 sectool
LinkedIn Recruiter Professional Datasheet
Time Sheet Administration
Blubag brochure
Rsmart hr v022013
Office managementsoftware
Check mate jobtracking g
TempWorks Enterpise & Services Workflow
Empxtrack free trial
Sability Components of WFM Systems

Performance Testing with LoadRunner Case Study

  • 1. Case Study Performance Testing with LoadRunner Optimus Confidential 2009-2010 1 TESTING OPTIMIZED
  • 2. Test Design Goals of Performance Test • To assess performance impacts on the system upgrade. • To verify response times and stability of the system under increasing user loads. • To identify potential performance problems and to provide recommendations to address these potential problems. • To identify a performance baseline for comparison for the subsequent platform migration. Optimus Confidential 2009-2010 2 TESTING OPTIMIZED
  • 3. Test Design Performance Test Approach Test Scenarios Performed Total Total Total Total Total by % Users Load of Load of Load of Load of Load of 40 Users 80 Users 120 Users 160 Users 200 Users Review Pay Cheques 40% 15 32 48 64 80 Add Time Report 20% 8 16 24 32 40 View Cancel Time Report 10% 4 8 12 16 20 View Calendar Others 10% 4 8 12 16 20 View Calendar Team – 10 Direct Reports 4% 1 1 1 2 2 View Calendar Team – 28 Direct Reports 1 1 2 2 3 View Calendar Team – 62 to 74 Direct Reports 1 1 2 3 3 Approve Time 4% 1 3 5 7 8 Approve and Cancel Time 4% 1 3 5 6 8 Manage Direct Reports 4% 2 3 5 6 8 Successful Candidates 2% 1 2 2 3 4 Job Requisition Summary 2% 1 2 2 3 4 Optimus Confidential 2009-2010 3 TESTING OPTIMIZED
  • 4. Test Design Script Name Transaction Name General Transactions used by all the scripts A3001a_Employee_Load_Login A3001b_Manager_Load_Login A3001c_Recruitment_Load_Login A3002a_Login_Employee_Self_Service_Menu A3002b_Login_Manager_Self_Service_Menu A3002c_Login_Recruitment_Menu WHR31-Review_Pay_Cheques A3103_Load_view_paycheque_screen A3104_Click_View_A_Different_Paycheque A3105_Load_Another_Paycheque_Period WHR32_Add_Time_Report A3203_Load_Time_Absence_Add A3204_Select_Earnings_Code_Type A3205_Select_From_Date A3206_Load_Add_Comment_Screen A3207_Click_Comment_OK A3208_Save_time_absence_entry WHR33_View_Cancel_Time_Report A3303_Load_Time_Absence_View_Cancel A3304_Load_Time_Absence_Status_History WHR34_View_Calendar_Others A3402_Load_Time_Absence_Calendar A3403_TA_Calendar_Query WHR35_View_Calendar_Team_10DirectReports A3503a_10DirectReports_Load_TA_Mgr_Cal A3504a_10DirectReports_Mgr_Calendar_Query WHR35_View_Calendar_Team_28DirectReports A3503b_28DirectReports_Load_TA_Mgr_Cal A3504b_28DirectReports_Mgr_Calendar_Query WHR35_View_Calendar_Team_62to74DirectReports A3503c_62to74DDirectReports_Load_TA_Mgr_Cal A3504c_62to74DirectReports_Mgr_Calendar_Query WHR36_Approve_Time A3503d_4to49DirectReports_Load_TA_Mgr_Cal A3601_Open_TA_Approvals_List A3602_Approve_TA_entry WHR37_Approve_and_Cancel_Time A3503_Load_TA_Calendar_Manager A3601_Open_TA_Approvals_List A3602_Approve_TA_entry A3701_Open_TA_Cancel_List A3702_Cancel_TA_entry WHR38_Direct_Report A3804_Load_Direct_Reports_screen A3805_Direct_Reports_Load_Time_Off_Details WHR39_Successful_Canadidates A3904_Load_Successful_Candidates_screen WHR40_Job_Req_Summary A4003_Load_Job_Req_Summary A4004_Job_Req_Item_History A4005_Job_Req_Item_Detail Optimus Confidential 2009-2010 4 TESTING OPTIMIZED
  • 5. Test Preparation Test Data • Test user IDs need to be created to have proper relationship • Pre-Populate Employees time reports for managers to approve LoadRunner scripting • The AUT has a lot of dynamic HTML and AJAX components • Use LoadRunner’s AJAX Click-And-Script protocol to record scripts • Scripts are modulized so that components are reusable. Load Generator Agents • LoadRunner load generator agents are setup on two servers Optimus Confidential 2009-2010 5 TESTING OPTIMIZED
  • 6. Test Preparation LoadRunner Controller Load Scenarios • Load Test Scenarios ramp-up 1 user every 2 seconds and all scripts have wait time • Stress Test Scenarios ramp-up 2 users every 1 second and all scripts have no wait time Optimus Confidential 2009-2010 6 TESTING OPTIMIZED
  • 7. Test Preparation Server Monitoring and Logging • PerfMon was setup to log measurement counters on both Windows 2008 application servers • DB2 tasks CPU utilization and SQL transactional performance were also logged • Mainframe Central Processors utilization was also logged Test Environment Downtime Coordination • The test environment was scheduled to be inaccessible by other users during performance tests Dry-runs • A number of low user load tests were carried out to make sure all team members get familiar with the test execution process and to make sure all test execution issues are surfaced and resolved Optimus Confidential 2009-2010 7 TESTING OPTIMIZED
  • 8. Test Execution • All team members are invited to MS Communicator before test execution starts. All activities and observations during test execution are logged in Communicator conversations in a chronological order • Run script to populate data before load scenario execution • Always allow at least 5 minutes of quiet time before and after each load scenario execution Optimus Confidential 2009-2010 8 TESTING OPTIMIZED
  • 9. Test Execution • After each load scenario execution, a database tables clean-up SQL script will be run to remove data added by the LoadRunner scripts • A database table re-org is needed after each load scenario execution • WebLogic needs to be restarted after each load scenario execution Optimus Confidential 2009-2010 9 TESTING OPTIMIZED
  • 10. Test Results Optimus Confidential 2009-2010 10 TESTING OPTIMIZED
  • 11. Test Results • Under realistic user loads of 40 and 80 concurrent users, Many functions performed within 3 seconds, with certain known intense functions taking slightly longer but still under 8 seconds range. • Under a heavier load of 120, 160, and 200 concurrent users, Many functions performed within 5 seconds, with certain intense functions taking slightly longer but still under 10 seconds range. • These transactions are considered the more intense functions and are having higher response time: – View paycheque – Load Time/Absence Calendar (both employees and managers) – Query Time/Absence Calendar (both employees and managers) – Managers open Time/Absence Cancel List – Managers load Manage Direct Reports page – Managers load Direct Reports Time Off Detail page – Recruitment – Job Requisition Summary Optimus Confidential 2009-2010 11 TESTING OPTIMIZED
  • 12. Test Results The LoadRunner response time graph from 200 users test shows that majority of transactions are under 5 seconds, with some transactions between 5 – 10 seconds. Only the known intense transactions are over 10 seconds Optimus Confidential 2009-2010 12 TESTING OPTIMIZED
  • 13. Test Results This is a PerfMon graph showing one app server’s various performance counters during the 40, 80, and 120 users tests Optimus Confidential 2009-2010 13 TESTING OPTIMIZED
  • 14. Test Results This graph shows that the DB2 transaction response time is not in direct proportion to the user load. The possible reason is that DB2 is a shared environment with resources utilized by other applications during our tests. The DB2 transaction response time has direct impact to our performance test response time. Optimus Confidential 2009-2010 14 TESTING OPTIMIZED
  • 15. Conclusion • Projection has been made that the system can handle approximately 320 concurrent users in a real production environment while response times be within 10 seconds for the frequently used non-intense transactions. • In our estimation, the system can comfortably accommodate 160 concurrent users and still maintain acceptable response times of 5 seconds or less for most functions. • The intense transactions will always have higher response time due to the volume of data being retrieved and displayed. Optimus Confidential 2009-2010 15 TESTING OPTIMIZED
  • 16. • Thank you • Q&A Optimus Confidential 2009-2010 16 TESTING OPTIMIZED
  • 17. Optimus Information Inc. #120 – 1412 West 7th Ave Vancouver BC V6H 1C1 Canada OptimusTest Phone: 604.601.2185 Email: info@optimusinfo.com H - 110, Sector 63 Noida 201301, India Phone : +91.98102.86872 Email: info@optimusinfo.com Optimus Confidential 2009-2010 17 TESTING OPTIMIZED