test driven non functionals
play

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


  1. Test driven Non-Functionals?! --- Combine Two Big Ideas and What do You Get? --- Wilco Koorn Senior consultant Xebia IT Architects Sunday, April 14, 2013

  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

  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

  4. Test driven Non-Functionals... Sunday, April 14, 2013

  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

  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

  7. Setup: 7 machines JBoss JMeter Apache MySQL JBoss (mod_jk) JMeter JBoss Sunday, April 14, 2013

  8. 600 500 400 300 Throughput 200 100 1 2 3 # Nodes 186 = Actual: 93.5% Test: 90% 1 199 2 Sunday, April 14, 2013

  9. Handling broken builds And how to prevent waste Sunday, April 14, 2013

  10. Required by project Required now Sunday, April 14, 2013

  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

  12. Wilco Koorn wkoorn@xebia.com +31 (0)6-10376212 Sunday, April 14, 2013

Recommend


More recommend