the secret art of agile performance testing

35
e Secret Art of Agile Performance Test Alois Reitbauer, dynaTrace Soft

Upload: alois-reitbauer

Post on 19-Jun-2015

646 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: The secret art of agile performance testing

The Secret Art of Agile Performance TestingAlois Reitbauer, dynaTrace Software

Page 2: The secret art of agile performance testing

The Classical Approach

Page 3: The secret art of agile performance testing

Waterfalls are pretty

Page 4: The secret art of agile performance testing

But might get scary

Page 5: The secret art of agile performance testing

Dream

Comfort Zone

Reality

Iteration

Iteration

Iteration

Test

Test

Page 6: The secret art of agile performance testing

Dream

Comfort Zone

Reality

Iteration

Iteration

Iteration

Test

Test

Iteration

Iteration

Iteration

Page 7: The secret art of agile performance testing

NFRs and Maslow

Page 8: The secret art of agile performance testing

The Focus Problem

Page 9: The secret art of agile performance testing

Methodology

Page 10: The secret art of agile performance testing

The Agile Approach

Page 11: The secret art of agile performance testing

Defining our Strategy

Start Early

Test Continuously

Break in Pieces

Page 12: The secret art of agile performance testing

Creating FocusRi

sk

Impact

AutomateRegular TestingSkip

Page 13: The secret art of agile performance testing

Frequency vs. Granularity

Frequency

Gra

nu

lari

ty

JUnit-basedTests (2x day)

Total SystemTests

Long-running Stabiltiy Tests(2 w duration)

Page 14: The secret art of agile performance testing

Granularity

Comparability

Complexity

Quality

Page 15: The secret art of agile performance testing

Define KPIs

Throughput

Response Time

Memory Consumption

Other KPIs …

Page 16: The secret art of agile performance testing

MonitorGain Visibility

ResolveReduce Resolution

Time

PreventProactively Avoid

Problems

Follow a Strategy

Page 17: The secret art of agile performance testing

Avoid Re-Runs

• What could happen?• Which information do you

want?• What describes your system?• What is different from the last

run?

Page 18: The secret art of agile performance testing

Don´t Forget the Real World

Page 19: The secret art of agile performance testing

Lessons learned

Page 20: The secret art of agile performance testing

Profiling is not enough

Good for finding problems

Result comparison hard

Only valid until next check-in

Too much work

Page 21: The secret art of agile performance testing

Measurements

Page 22: The secret art of agile performance testing

Stability of Tests

Page 23: The secret art of agile performance testing

Use Dedicated Hardware

Comparability

Stability

Efficiency

Page 24: The secret art of agile performance testing

Trends in Unstable Tests

Page 25: The secret art of agile performance testing

Create Instability

.. adding some volatility increases the likelyness to discover problems …“

Page 26: The secret art of agile performance testing

Testing scalability

Small Dump Operations Big Dump Operations

Page 27: The secret art of agile performance testing

Understand your measurements

Response Time only Response Time and GC

Page 28: The secret art of agile performance testing

Motivate your team

Page 29: The secret art of agile performance testing

How to make developers write tests

#1 Heroism#2 Boomerang#3 The other guy#4 Bug me not#5 Feedback#6 Code vs. Wine#7 Newb vs. Noob

Page 30: The secret art of agile performance testing

Test Case Complexity

FirstStart dynaTrace infrastructureWhen readyStart n WebSphere instances on servers … When readyStart Loadtest against WebSphere serversAfter loadtest startExecute test case

Page 31: The secret art of agile performance testing

Making complex things easy

@DtdRemoteSud(            host = "lab2",            name = "WAS7.0",            startupPriority = 1,            postStartClosure = WaitForWebSphereSudIsUp.class    )    private SudInterface webSphereSud;

Page 32: The secret art of agile performance testing

Finding the responsible code

Version Control History Lookup

Page 33: The secret art of agile performance testing

E-Mail Notification

… better humans

Page 34: The secret art of agile performance testing

Wrap Up1. Say „Yes“2. Focus3. Define KPIs4. Redefine Done5. Remove Barriers6. Automate7. Monitor8. Resolve9. Prevent

Page 35: The secret art of agile performance testing

[email protected] Mailblog.dynatrace.com Blog

AloisReitbauer Twitter