Test driven Non-Functionals?! --- Combine Two Big Ideas and What do - - PowerPoint PPT Presentation

test driven non functionals
SMART_READER_LITE
LIVE PREVIEW

Test driven Non-Functionals?! --- Combine Two Big Ideas and What do - - PowerPoint PPT Presentation

Test driven Non-Functionals?! --- Combine Two Big Ideas and What do You Get? --- Wilco Koorn Senior consultant Xebia IT Architects Sunday, April 14, 2013 Test driven development is Common Practice in Java world Test a little, code a


slide-1
SLIDE 1

Test driven Non-Functionals?!

Wilco Koorn Senior consultant Xebia IT Architects

  • -- Combine Two Big Ideas and What do You Get? ---

Sunday, April 14, 2013

slide-2
SLIDE 2

“Test driven development” is Common Practice in Java world

  • Test a little, code a little, test, code, ...
  • Tools: JUnit, TestNG, Fitnesse, ...
  • Libraries: EasyMock, Mockito, ...
  • Tests also used in regression testing
  • Build never breaks

Sunday, April 14, 2013

slide-3
SLIDE 3

Advantages of “Test driven development”

  • It is clear when the job is done
  • Natural contribution to regression tests
  • Confident to refactor
  • Quality up front
  • Testing not pushed against deadline

Sunday, April 14, 2013

slide-4
SLIDE 4

Test driven Non-Functionals...

Sunday, April 14, 2013

slide-5
SLIDE 5

Test driven Non-Functionals!

  • Need for a scale
  • Need for a test
  • Tests also used in regression testing
  • Tests are automated
  • Build never breaks, but less frequent

Sunday, April 14, 2013

slide-6
SLIDE 6

Experience report: Scalability

  • Build a test that measures throughput
  • Deploy on single node, measure
  • Deploy on two nodes, measure
  • On three, measure
  • Ultimate test: do results form a “line”?

Sunday, April 14, 2013

slide-7
SLIDE 7

Setup: 7 machines

JBoss JBoss JBoss MySQL Apache

(mod_jk)

JMeter JMeter

Sunday, April 14, 2013

slide-8
SLIDE 8

Test:

1 2

90% # Nodes 1 2 3 Throughput Actual: 93.5% 199 186 =

300 200 100 600 500 400

Sunday, April 14, 2013

slide-9
SLIDE 9

Handling broken builds And how to prevent waste

Sunday, April 14, 2013

slide-10
SLIDE 10

Required by project Required now

Sunday, April 14, 2013

slide-11
SLIDE 11

Summary

  • Test driven non-functionals is uncommon
  • Applicable when automatable
  • Should be part of regression test suite
  • Prevent waste: use ranges

Sunday, April 14, 2013

slide-12
SLIDE 12

Wilco Koorn wkoorn@xebia.com +31 (0)6-10376212

Sunday, April 14, 2013