Testing In Java

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.

5 comments

Comments 1 - 5 of 5 previous next Post a comment

  • + dnoble David Noble 8 months ago
    Peremuk,
    Thanks! I see you were able to embed it in your blog successfully. Glad you liked it and want to share it :-)
  • + guest35cc605 guest35cc605 9 months ago
    well done good work may i have this plz send it to me if possible by my email id naseer.jan1@gmail.com
  • + venu9955 venu9955 11 months ago
    Great work, thank you.
  • + dnoble David Noble 2 years ago
    If you’re having trouble opening the downloaded file, you might need to install OpenOffice.
  • + ani_noty ani_noty 2 years ago
    why cant u allow to download it
Post a comment
Embed Video
Edit your comment Cancel

Notes on slide 1

My background: Mostly C & Perl from 1990 – 1997 Mostly Java since then. Telemetry processing, mission ops, EIS @ JPL. BPM, workflow, assorted biz apps.

43 Favorites

Testing In Java - Presentation Transcript

  1. Testing in Java
      • San Gabriel Valley Java Users Group
      • http://www.sgvjug.org/
      • June 25, 2007
      • David Noble
      • [email_address]
      • Sr. Solutions Architect, Exist Global
  2. Goal
    • Motivate excellence in testing
    • with concepts , practices, and tools
  3. Scope requirements static code analysis debugging profiling continuous integration quality assurance Testing concepts, practices, tools
  4. Agenda
    • Test-Driven Development
    • Terminology
    • Tools
    • Application
    • Discussion
  5. http://www.flickr.com/photos/h2oalchemist/342496829/ System Concept System Requirements System Design Detailed Design Implementation Testing
  6. Demo A Taste of TDD
  7. Test-Driven Development See also: http://www.agiledata.org/essays/tdd.html Fail Pass Pass Add test Make small change Commit changes
  8. Test-Driven Development Fail Pass Add test Fix bug Commit changes
  9. Test-Driven Development Fail Pass Pass Pass Add test Make small change Refactor Code Commit changes Commit changes
  10. Test-Driven Development
    • Small steps
    • Frequent check-ins
  11. Test-Driven Development
    • Deeper than “test first”
    • Design for testability
  12. Test-Driven Development
    • Unit tests as example code
    • Interface before implementation
      • Function drives form
  13. Test-Driven Development
    • Loose coupling
    • Services with clear responsibilities
    • Mock objects
  14. http://flickr.com/photos/basak/227480302/ Taste the soup!
  15. Reality Intent Requirements, Architecture, Design Implementation, Deployment
  16. Gap! Reality Intent Requirements, Architecture, Design Implementation, Deployment
  17. Reality Accountability Intent Requirements, Architecture, Design Testing, QA Implementation, Deployment
  18. Intent Reality Check! Reality Accountability Requirements, Architecture, Design Testing, QA Implementation, Deployment
  19. Terminology
    • QA – quality assurance
      • Do the right things
      • Do things right
      • Ensure quality standards
  20. Terminology
    • Test – success criteria
      • Is it right?
      • Is it done?
  21. Terminology
    • Test plan
    • Test case
    • Test suite
    • Test report
    • Test coverage
  22. Terminology
    • Unit test
    • Functional test
    • Integration test
    • System test
    • Acceptance test
    • Regression test
  23. Terminology
    • Non-functional testing
    • Performance test
    • Load test
    • Soak test
  24. Terminology
    • Continuous integration
  25. Tools IDE Build Unit Tests Mock Objects Eclipse, NetBeans Ant, Maven JUnit, TestNG jMock, EasyMock
  26. Tools Databases JEE Servers Web Apps DBUnit Cactus Selenium, HttpUnit
  27. Tools Coverage Performance Acceptance Cobertura, Emma JMeter, Eclipse TPTP Selenium, FitNesse, Stiq
  28. Tools Continuous Integration Cruise Control, Continuum, Hudson
  29. Tools IDE Build Unit Tests Mock Objects Databases JEE Servers Web Apps Coverage Performance Acceptance Continuous Integration Unit testing Eclipse, NetBeans Ant, Maven JUnit, TestNG jMock, EasyMock DBUnit Cactus Selenium, HttpUnit Cobertura, Emma JMeter, Eclipse TPTP Selenium, FitNesse, Stiq Cruise Control, Continuum, Hudson
  30. Demo Tools
  31. Resources: SGV JUG
    • Web Site
      • http://sgvlug.net/mailman/listinfo/java-sig
    • Mailing List (Hosted by SGV Linux Users Group)
      • http://sgvlug.net/mailman/listinfo/java-sig
      • [email_address]
  32. Resources: TDD
    • Articles
      • http://www.agiledata.org/essays/tdd.html
      • http://en.wikipedia.org/wiki/Test_driven_development
      • http://www.testdriven.com/modules/xoopsfaq/
      • http://www.artima.com/intv/testdriven.html
      • http://www.google.com/search?hl=en&q=test+driven+development (really!)
  33. Resources: IDE & Build Tools
    • Eclipse IDE
      • http://www.eclipse.org/
    • NetBeans IDE
      • http://www.netbeans.org/
    • Ant
      • http://ant.apache.org/
    • Maven 2
      • http://maven.apache.org/
      • http://www.devzuz.com/web/guest/products/resources#BBWM
    • Maven & Eclipse
      • http://m2eclipse.codehaus.org/
    • Maven & Netbean
      • http://maven.apache.org/guides/mini/guide-ide-netbeans/guide-ide-netbeans.html
  34. Resources: Unit Testing
    • JUnit Framework
      • http://junit.org/
    • JUnit FAQ
      • http://junit.sourceforge.net/doc/faq/faq.htm
    • JUnit with Ant
      • http://ant.apache.org/manual/OptionalTasks/junit.html
      • http://ant.apache.org/manual/OptionalTasks/junitreport.html
    • JUnit with Maven
      • http://maven.apache.org/plugins/maven-surefire-plugin/
    • TestNG Framework
      • http://testng.org/doc/
    • Jester – Mutation Testing
      • http://jester.sourceforge.net/
      • http://www.ibm.com/developerworks/java/library/j-jester/
  35. Resources: Mock Objects
    • Mock Objects Blog
      • http://mockobjects.com/
    • EasyMock Library
      • http://easymock.org/
    • jMock Library
      • http://jmock.org/
  36. Resources: Unit & Functional
    • XmlUnit Library
      • http://xmlunit.sourceforge.net/
    • DBUnit Library
      • http://dbunit.sourceforge.net/
    • HttpUnit Library
      • http://httpunit.sourceforge.net/
    • Cactus for JEE Server Code
      • http://jakarta.apache.org/cactus/
    • Cargo for JEE Server Code
      • http://cargo.codehaus.org/
  37. Resources: Test Coverage
    • Cobertura
      • http://cobertura.sourceforge.net/
      • http://www.ibm.com/developerworks/java/library/j-cobertura/
    • Cobertura with Ant
      • http://cobertura.sourceforge.net/anttaskreference.html
    • Cobertura with Maven
      • http://mojo.codehaus.org/cobertura-maven-plugin/usage.html
    • Emma
      • http://emma.sourceforge.net/
  38. Resources: Perf. & Load
    • JUnitPerf
      • http://clarkware.com/software/JUnitPerf.html
    • JMeter
      • http://jakarta.apache.org/jmeter/
    • Eclipse TPTP (Test & Performance Tools Platform)
      • http://www.eclipse.org/tptp/
    • Netbeans Profiler
      • http://profiler.netbeans.org/
  39. Resources: Acceptance Tests
    • Selenium for Web Apps
      • http://www.openqa.org/selenium/
      • http://www.openqa.org/selenium-ide/download.action
    • Automating Selenium (“Remote Control”)
      • http://www.openqa.org/selenium-rc/
      • http://wiki.openqa.org/display/SRC/Selenium-RC+and+Continuous+Integration
    • Selenium & Maven
      • http://raibledesigns.com/rd/entry/selenium_plugin_for_maven
    • FitNesse
      • http://fitnesse.org/
    • Stiq
      • http://storytestiq.sourceforge.net/
  40. Resources: Cont. Integration
    • Cruise Control
      • http://cruisecontrol.sourceforge.net/
    • Continuum
      • http://maven.apache.org/continuum/
    • Hudson
      • https://hudson.dev.java.net/
  41. Resources: App used in Demo
    • Open Source Medical Record System
      • http://www.openmrs.org/
    • Prerequisites: SVN, MySQL 5, Tomcat 5
      • http://subclipse.tigris.org/update_1.2.x
      • http://mysql.org/
      • http://tomcat.apache.org/
    • SVN Repository
      • http://svn.openmrs.org/openmrs/branches/alpha
    • Installation
      • Edit build.properties and properties.xml to set tomcat.user/password,
      • or add test/test to $CATALINA_HOME/conf/tomcat-users.xml file.
      • Edit build.properties and/or properties.xml to set tomcat.home file.
      • Comment out creation of "test" MySQL user in schema if it already exists.
      • Default username/password is admin/test.
  42. Thank you To all who participated!

+ David NobleDavid Noble, 3 years ago

custom

24426 views, 43 favs, 27 embeds more stats

Overview of testing concepts, practices, and tools more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 24426
    • 24230 on SlideShare
    • 196 from embeds
  • Comments 5
  • Favorites 43
  • Downloads 2134
Most viewed embeds
  • 120 views on http://www.exist.com
  • 9 views on http://www.mergere.com
  • 7 views on http://kiranusa.wordpress.com
  • 7 views on http://nexus.novellus.com
  • 7 views on http://zavizionov.blogspot.com

more

All embeds
  • 120 views on http://www.exist.com
  • 9 views on http://www.mergere.com
  • 7 views on http://kiranusa.wordpress.com
  • 7 views on http://nexus.novellus.com
  • 7 views on http://zavizionov.blogspot.com
  • 6 views on http://indijava.in
  • 5 views on http://wendt.se
  • 4 views on http://ketankhairnar.blogspot.com
  • 3 views on http://d.hatena.ne.jp
  • 3 views on http://www.jroller.com
  • 3 views on http://jroller.com
  • 3 views on http://www.devzuz.com
  • 2 views on http://www.indijava.in
  • 2 views on http://www.javameblog.com
  • 2 views on http://ronpaulfreedom.com
  • 2 views on http://www.filescon.com
  • 1 views on http://technoblog.axon-id.com
  • 1 views on https://closingbraces.wordpress.com
  • 1 views on http://principia.dyndns.biz
  • 1 views on http://www.net4java.com
  • 1 views on http://www.juggenova.net
  • 1 views on http://engineeringcivil-kezia.blogspot.com
  • 1 views on http://pulse.uphs.upenn.edu
  • 1 views on http://tecnoacademy.blogspot.com
  • 1 views on http://s3.amazonaws.com
  • 1 views on http://66.102.9.104
  • 1 views on http://stage.www.int.exist.com

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