Upload
wo-community
View
2.630
Download
1
Embed Size (px)
DESCRIPTION
Citation preview
Load Testing & Apache JMeterChuck HillGlobal Village Consulting, Inc.WOWODC 2010
• Why?
• What?
• When?
• Where?
• How?
What, Why, How?
Planning for Load Testing
• Time
• Tools
• Equipment
• Information
• Lots of data
JMeter Components
HTTP Cookie Manager
HTTP Request Defaults
Thread Group
Sampler
Listeners
Timers
Assertions
Test Parameterization
• Parameterize for
• different environments
• different scenarios
• different data
• Start Early!
Parameters on Test Plan
Thread Group Parameters
Thread GroupSpecific Parameters
Complications of WOe
• URL is recorded in Sampler so...
‣ Session ID and Instance Number
➡HTTP Cookie Manager
‣ Context ID
➡A problem, but only in loops
Session ID and Instance Number
Use Matches in URL
Find Context ID
Use Context ID
Recording Tests
• Record and refine
• Use Selenium for repeatability
• Run tests slowly
Recording Problems
• ERXSwitchComponent
-Der.extensions.WOSwitchComponent.patch=false
• Copy and Paste to Test Plan
Delays for Reality
• Pause for realistic results
• Constant Timer
• Gaussion Random Timer
• Uniform Random Timer
• Combinations of Timers
Ajax!
• The good news...
• The bad news...
• XPath Extractor
• JavaScript
• AjaxUpdateContainer and friends
Data Driven Tests
Upload Problem
Running the Tests• Run from GUI
• Run from command line / script
• Run from multiple machines
Evaluating Test Results
• JMeter Reporters (Listeners)
• response times: min, max, avg, std dev
• error count
• ActivityMonitor.app & ServerAdmin.app
• memory, CPU, network
• JavaMonitor
• Transaction Average, Average Idle Period
Summary Report
Creating Effective Tests
• Work as super-user
• Use Selenium tests as base
• Run against known DB backup
• Parameterize tests
• Use assertions
Creating Readable Tests
Q&ALoad Testing and Apache JMeterChuck HillGlobal Village Consulting