Your Ad Here

Friday, February 12, 2010

How to Work in TDD Methodology of Software Development


Test Driven Development methodology of software development is one of the most popular flavor of agile methodology. Other popular flavors of agile are Scrum, Extreme Programing (XP), Function Driven development (FDD) etc. The main principle behing TDD is to write unit test cases first and then code the unit of the module so that the unit passes the test. TDD saves a lot of time and money in finding the sofwtare defects at the later stage of software development. Farther the testing cycle falls, higher would be the cost to fix the issue.

Following are the steps followed in TDD:
  • Gather the requirement and fine tune it with detailed understanding
  • Create automated test scripts to test the each unit of the requirement
  • Develop the code for the given unit
  • Test the unit of the code with the automated script 
  • If the code passes the test, means the code fulfills the requirement
  • Further, if the code is refactored -- run the automated test scripts again for each units till all the unit test scripts are passed

For automation of unit test cases you may use JUnit (for Java projects), NUnit (for .Net projects) or even Selenium (for web-based projects). TDD requires good coding skills and purely manual testers will have to upgrade their skills to meet the requirements of the job in TDD environment.

I'll keep on adding more strategies to make TDD successful. Keep a tab on the blog..

No comments:

Post a Comment