Load Testing &Apache JMeterChuck HillGlobal Village Consulting, Inc.WOWODC 2010
What, Why, How?•   Why?•   What?•   When?•   Where?•   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• ...
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  ...
Session ID andInstance 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•   Co...
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• ...
Summary Report
Creating Effective Tests•   Work as super-user•   Use Selenium tests as base•   Run against known DB backup•   Parameteriz...
Creating Readable Tests
Q&ALoad Testing and Apache JMeterChuck HillGlobal Village Consulting
Upcoming SlideShare
Loading in...5
×

Load Testing & Apache JMeter

2,070

Published on

Published in: Technology
2 Comments
1 Like
Statistics
Notes
No Downloads
Views
Total Views
2,070
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
77
Comments
2
Likes
1
Embeds 0
No embeds

No notes for slide

Load Testing & Apache JMeter

  1. 1. Load Testing &Apache JMeterChuck HillGlobal Village Consulting, Inc.WOWODC 2010
  2. 2. What, Why, How?• Why?• What?• When?• Where?• How?
  3. 3. Planning for Load Testing• Time• Tools• Equipment• Information• Lots of data
  4. 4. JMeter Components
  5. 5. HTTP Cookie Manager
  6. 6. HTTP Request Defaults
  7. 7. Thread Group
  8. 8. Sampler
  9. 9. Listeners
  10. 10. Timers
  11. 11. Assertions
  12. 12. Test Parameterization• Parameterize for • different environments • different scenarios • different data• Start Early!
  13. 13. Parameters on Test Plan
  14. 14. Thread Group Parameters
  15. 15. Thread GroupSpecific Parameters
  16. 16. 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
  17. 17. Session ID andInstance Number
  18. 18. Use Matches in URL
  19. 19. Find Context ID
  20. 20. Use Context ID
  21. 21. Recording Tests• Record and refine• Use Selenium for repeatability• Run tests slowly
  22. 22. Recording Problems• ERXSwitchComponent -Der.extensions.WOSwitchComponent.patch=false• Copy and Paste to Test Plan
  23. 23. Delays for Reality• Pause for realistic results• Constant Timer• Gaussion Random Timer• Uniform Random Timer• Combinations of Timers
  24. 24. Ajax!• The good news...• The bad news... • XPath Extractor • JavaScript• AjaxUpdateContainer and friends
  25. 25. Data Driven Tests
  26. 26. Upload Problem
  27. 27. Running the Tests• Run from GUI• Run from command line / script• Run from multiple machines
  28. 28. 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
  29. 29. Summary Report
  30. 30. Creating Effective Tests• Work as super-user• Use Selenium tests as base• Run against known DB backup• Parameterize tests• Use assertions
  31. 31. Creating Readable Tests
  32. 32. Q&ALoad Testing and Apache JMeterChuck HillGlobal Village Consulting
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×