webinar how to set up a load test in 5 minutes
TRANSCRIPT
How to set up a load test in 5 minsUsing Apache JMeter
Webinar / August 4th 2016
How to set up a load test in 5 mins
Agenda
● Ultimate Goal
● Load Testing Principles & Tool
● Test Plan Templates
● Result Analysis
● Additional Considerations
● Live Demo
● Q&A
How to set up a load test in 5 mins
Ultimate Goal
Provide a set of template scripts to streamline the execution of load tests
during project development cycles.
How to set up a load test in 5 mins
Software Testing Levels
How to set up a load test in 5 mins
Load Testing - Why?
1. Measure an application’s typical response times under
normal load conditions
2. Evaluate performance degradation when facing
incrementally heavier load conditions
3. Identify performance bottlenecks under concurrent usage
How to set up a load test in 5 mins
Load Testing - Best Practices
● Generate seed data to help identify database bottlenecks
● Set up ramp-up periods and pauses to generate
incremental load and emulate users’ think time
● Use distinct user accounts to avoid contention over session
data retrieval
● Monitor queued requests to pinpoint infrastructure limits
● Design your tests to be idempotent in order to compare
results
How to set up a load test in 5 mins
The Tool - JMeter
✓ Free and open-source
✓ Extremely Powerful
✓ Highly Extensible
✓ Community Driven
✘ Steep Learning Curve
✘ Outdated Look & Feel
Grab it here: http://jmeter.apache.org/
How to set up a load test in 5 mins
Test Plan Templates
● Login/Logout
● Screen Preparation (Navigate)
● Submit Request
● Submit Request (AJAX)
● REST/SOAP service call
How to set up a load test in 5 mins
Test Plan CompositionThread Groups
Configurations
Samplers
Assertions
Extractors
Listeners
How to set up a load test in 5 mins
Result Analysis
Service Center Logs
JMeter Output Performance Counters
How to set up a load test in 5 mins
Additional Considerations
● JavaScript code won’t be executed by JMeter
● Adjust number of concurrent threads to the hardware
resources running JMeter
● Isolate test script custom data using request defaults, user
variables and CSV data sets
● Use parameters to instantiate variables via command line
● Use “View Results” listeners when fine-tuning test scripts
How to set up a load test in 5 mins
Live Demo
How to set up a load test in 5 mins
Test Application
Case Manager
How to set up a load test in 5 mins
HTTP Request / Response
How to set up a load test in 5 mins
Test Scenarios
1. Landing Page
Perform Login Request Landing Page
How to set up a load test in 5 mins
Test Scenarios
2. Submit Form (AJAX)
Request Form (after Login) Submit Form Data
How to set up a load test in 5 mins
Infrastructure Capacity Metrics
(From the Sizing OutSystems Platform KB entry)
Thank you!See you in two weeks..!