Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing methodologies

Tags:

java

testing

What is the most commonly used approach used for testing in Java projects (iterative development) ?

like image 351
James P. Avatar asked Aug 10 '10 02:08

James P.


2 Answers

My suggestion is that you should have a healthy mix of automated and manual testing.

AUTOMATED TESTING

  • Unit Testing
    Use NUnit to test your classes, functions and interaction between them.
    http://www.nunit.org/index.php

  • Automated Functional Testing
    If it's possible you should automate a lot of the functional testing. Some frame works have functional testing built into them. Otherwise you have to use a tool for it. If you are developing web sites/applications you might want to look at Selenium.
    http://www.peterkrantz.com/2005/selenium-for-aspnet/

  • Continuous Integration
    Use CI to make sure all your automated tests run every time someone in your team makes a commit to the project.
    http://martinfowler.com/articles/continuousIntegration.html

MANUAL TESTING
As much as I love automated testing it is, IMHO, not a substitute for manual testing. The main reason being that an automated can only do what it is told and only verify what it has been informed to view as pass/fail. A human can use it's intelligence to find faults and raise questions that appear while testing something else.

  • Exploratory Testing
    ET is a very low cost and effective way to find defects in a project. It take advantage of the intelligence of a human being and a teaches the testers/developers more about the project than any other testing technique i know of. Doing an ET session aimed at every feature deployed in the test environment is not only an effective way to find problems fast, but also a good way to learn and fun!
    http://www.satisfice.com/articles/et-article.pdf
like image 120
Jonas Söderström Avatar answered Oct 05 '22 17:10

Jonas Söderström


Personal experience would suggest the most popular approach is none at all.

like image 45
N8g Avatar answered Oct 05 '22 17:10

N8g