Contenu connexe Similaire à Load Testing & Apache JMeter Similaire à Load Testing & Apache JMeter (20) Plus de WO Community (20) Load Testing & Apache JMeter12. Test Parameterization
• Parameterize for
• different environments
• different scenarios
• different data
• Start Early!
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
21. Recording Tests
• Record and refine
• Use Selenium for repeatability
• Run tests slowly
22. Recording Problems
• ERXSwitchComponent
-Der.extensions.WOSwitchComponent.patch=false
• Copy and Paste to Test Plan
23. Delays for Reality
• Pause for realistic results
• Constant Timer
• Gaussion Random Timer
• Uniform Random Timer
• Combinations of Timers
24. Ajax!
• The good news...
• The bad news...
• XPath Extractor
• JavaScript
• AjaxUpdateContainer and friends
27. Running the Tests
• Run from GUI
• Run from command line / script
• Run from multiple machines
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
30. Creating Effective Tests
• Work as super-user
• Use Selenium tests as base
• Run against known DB backup
• Parameterize tests
• Use assertions