Your SlideShare is downloading. ×
0
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Automated Testing
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Automated Testing

3,724

Published on

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,724
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
153
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Automated Testing John Paulett jhcore.com 4.17.2009
  • 2. testing sucks
  • 3. buggy code sucks more
  • 4. being an example on thedailywtf.com sucks the most
  • 5. types of testing
  • 6. types of testing unit
  • 7. functional types of testing unit
  • 8. security usability scaling load regression functional types of testing smoke accessibility requirement unit acceptance touch recovery
  • 9. security usability scaling load regression functional types of testing smoke and more ... accessibility requirement unit acceptance touch recovery
  • 10. security usability scaling load regression functional types of testing smoke and more ... accessibility requirement unit acceptance touch recovery
  • 11. security usability scaling load regression functional types of testing smoke and more ... accessibility requirement unit acceptance touch recovery
  • 12. unit testing
  • 13. smallest testable part method / function level assertions
  • 14. junit test case import junit.framework.TestCase; public class TestMath extends TestCase { public void testSquare() { assertEquals(16, Math.square(4)); } }
  • 15. test drive development public class Math { public static int square(int x) { return x; } }
  • 16. failure
  • 17. fix the bug public class Math { public static int square(int x) { return x * x; } }
  • 18. w00t!
  • 19. forces better design separate presentation from business logic from data access! “mock” out what your not testing fake data access class when testing business logic
  • 20. every language has a unit testing framework even php
  • 21. regression testing
  • 22. know when things break
  • 23. a test for every build (and a build for every commit)
  • 24. automate your build
  • 25. hudson hudson.dev.java.net
  • 26. functional testing
  • 27. selenium seleniumhq.org
  • 28. load testing
  • 29. jmeter jakarta.apache.org/jmeter/
  • 30. requirements testing
  • 31. fitnesse fitnesse.org
  • 32. test coverage
  • 33. how much code is tested eclemma.org
  • 34. wuss excuses
  • 35. wuss: i'm the only one on the project
  • 36. winner: i'll be ready for when more people join winner: i want my code to work
  • 37. wuss: just for my research, not production code
  • 38. winner: i don't want to look like a fool publishing buggy results
  • 39. wuss: i test it by using it
  • 40. winner: i realize i never even get close to testing all of it after every change
  • 41. wuss: it is already 1M LOC, with no tests, it's too late
  • 42. winner: i'll add a couple tests when i fix a bug
  • 43. key steps to start 1) unit test on all new code ● when you find a bug in existing code ● work towards 100% branch coverage ● 2) automate your build, test every commit
  • 44. est finis slides at jhcore.com write at least 1 unit test next time you code get your test on!

×