loadrunner se guide
DESCRIPTION
LoadRunner SE Guide. 김범수 [email protected] 한국비지네스써비스(주). Purpose of this Presentation. Educate SE’s on the LoadTesting Methodology presented to the customer on the first day of a QuickStart Ensure that appropriate expectations are set with customers - PRIOR TO TEST !!! - PowerPoint PPT PresentationTRANSCRIPT
![Page 2: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/2.jpg)
Purpose of this Presentation
Educate SE’s on the LoadTesting Methodology presented to the customer on the first day of a QuickStart
Ensure that appropriate expectations are set with customers - PRIOR TO TEST !!!
Better understand what it takes to perform a successful LoadTest
![Page 3: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/3.jpg)
LoadTest Implementation
ProcessPreparation,
Live!
Go
Testing
Start
DevelopmentExecutionAnalysis
Testing
Finish
ResultsSummary
![Page 4: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/4.jpg)
Planning
Objectives / Goals of LoadTest System Analysis and Design LoadRunner H/W and S/W DB Refresh Strategy and SUT Monitoring Tools LoadRunner Product Training
![Page 5: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/5.jpg)
Planning - Objectives/Goals
FOR EXAMPLE: Stability - Will 500 concurrent users crash
the system? Reliability - Do all the Business
transactions work properly under load? Performance - Is the performance
acceptable according to the specifications?
![Page 6: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/6.jpg)
Planning - Analysis/Design
Designing a Scenario:– Who are the users?– How many users are there?– What do they do?– How often do they do it?
What do you want to measure (transactions)– Entire Business Process (Post Journal Entry)– All SQL traffic– Specific DB inserts or updates
![Page 7: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/7.jpg)
12 AM 6 AM 8 AM 12 PM 5 PM 8 PM 10 PM 12 AM
White area is daytime online processingGray area is nighttime batch processing
Typical Work Day
Create Invoices (Accounts Payable)
15 20 50
Billing Due List
60
Invoice Printing
30
System Backup
400 500 Delivery Due List
5 20 2
Create Sales Orders
35 15 20
Transferring Materials to the Vendors
15 10
Changing Sales Orders27
Create Invoices (Accounts Receivable)
30 45
Display Sales Orders
15 20 55
Good Issued
70 20
Planning - Analysis/Design Task Distribution
Diagram
Calling Human Resources Information System
25 75 25
Emulated Hour
![Page 8: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/8.jpg)
Planning - Analysis/Design
Transaction Volume Estimate
Number ofConcurrentUsers
Transactions,Reports, and PrintRequests
Average:transactions/user/hour
Peak:transactions/user/hour
50 Sales Orders Entry 35 50
25 Sales ReturnProcessing
50 75
10 Change Sales Order 50 10
20 Delivery Due List 20 50
15 Change Delivery 10 25
5 Packing 50 100
5 Picking 50 100
10 Invoice Printing 20 50
![Page 9: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/9.jpg)
Planning - LoadRunner H/W
What type of hardware required to support number of users?– OS, RAM, Disk, CPU
Where to place driver machines ? WAN / LAN Network simulations GUI / DB Vusers ?
![Page 10: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/10.jpg)
Planning - LoadRunner H/W
Load Generation System Under Test
GUI virtual user
DB virtual user
WAN
ApplicationServer
DatabaseServer
Controller
Host 1 –DB vusers
Host 2 –DB vusers
Host 3 –GUI vuser
![Page 11: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/11.jpg)
Planning - SUT
Scripting and Execution environment Stable environment
– configuration– data (loaded with Master and Transactional)– completed System and Functional Testing
DB refresh strategy– Between runs ?
![Page 12: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/12.jpg)
Planning - Monitoring Tools
LoadRunner Monitoring Tools Database Tools Network Sniffers (H/W) Operating System
![Page 13: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/13.jpg)
Planning - Who?
Project Lead - – Objective, Goals and Project Plans
LoadRunner Team - – Analysis, Design and Training
Technical System Staff - – System Under Test
Functional Experts - – Analysis and Design
![Page 14: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/14.jpg)
Development
LR Script Development– GUI - WinRunner– DB - VuGen
“Test” Data creation and preparation LR Script Testing
![Page 15: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/15.jpg)
Script Development
Understand all Business Process– Navigation and all Data input/output
Basic Script Recording Enhance Script
– Enter transactions and rendezvous– Parameterize and variablize data– Error checking routines– Correlate Queries
![Page 16: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/16.jpg)
Test Data - Creation
Build Data files to support multiple users– Extract existing data from DB– Build data as necessary - LR Scripts
Data “Prep” Phase– In SUT create and modify data as needed to
support large load test– Create backup of DB to refresh from
![Page 17: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/17.jpg)
Script Testing
Single User - Single Script– Test all the data combinations – Identify new exceptions or correlation's
Multiple User - Single Script– Table locks– Data integrity
Multiple User - Multiple Scripts– Data issues among different BP’s and users
![Page 18: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/18.jpg)
Development And Testing - Who?
LoadRunner Team - – Create and test both scripts and data
Technical System Staff - – Create data and DB strategy
Functional Experts - – Create scripts and data
![Page 19: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/19.jpg)
Execution
Three types of execution– 20% of Full Load - flush out transaction
problems, effectively debug transaction– Full Load - flush out system problems,
effectively debug system– 120% of Full Load (Overdrive) - provide a
margin of error as well as future scalability
![Page 20: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/20.jpg)
Execution
Should be an iterative process:– Refresh DB - Baseline– Run Scenario (LoadTest)– Analyze Results (LR, DB, OS, Network)– Tune System
![Page 21: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/21.jpg)
Execution - Who?
LoadRunner Team - – Run Scenario and pinpoint problems
Technical System Staff - – Tune and Debug System problems
Application Developers - – Tune and Debug Application problems
![Page 22: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/22.jpg)
Common Challenges:
– Analysis and Design - time consuming, difficult to analyze user activities
– Data Refresh Strategy - time consuming, schedule into system activities, disk space
– Functional Expertise - hard to find, needed during script recording and data management
– Debug/Tune System - very specific expertise, time and availability, ROI !!!
![Page 23: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/23.jpg)
Wrap-Up
LoadTesting is NOT trivial Minimal 3 weeks with very narrowed scope
and full systems and functional support Engage “Consulting Group” to participate
in conference calls with customers to discuss implementation issues if necessary
![Page 24: LoadRunner SE Guide](https://reader033.vdocuments.site/reader033/viewer/2022061423/56813569550346895d9ccf3c/html5/thumbnails/24.jpg)
Wrap-Up
Excellent products do not guarantee successful customers…
LoadRunner QuickStarts Do