Automated Testing

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    4 Favorites

    Automated Testing - Presentation 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!

    + John PaulettJohn Paulett, 7 months ago

    custom

    578 views, 4 favs, 3 embeds more stats

    More info about this document

    CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

    Go to text version

    • Total Views 578
      • 501 on SlideShare
      • 77 from embeds
    • Comments 0
    • Favorites 4
    • Downloads 49
    Most viewed embeds
    • 47 views on http://johnpaulett.com
    • 27 views on http://jhcore.com
    • 3 views on http://localhost:8000

    more

    All embeds
    • 47 views on http://johnpaulett.com
    • 27 views on http://jhcore.com
    • 3 views on http://localhost:8000

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories