Powered By Blogger

Thursday, October 31, 2013

Unit Testing:

What is unit Testing?
Unit testing is the first step of testing. In this testing, tester tests the individual unit of any software or programmer. This testing generally performed by developer to test the bunch of specific code or function

Objective or Importance of Unit Testing
Main objective or importance of unit testing is to save time and money as this testing performed during development phase by developer. Developers do this testing during coding so that further  process of coding can progress properly without any error or mistake

Building Test Cases for Unit Testing
Generally unit testing performed by automated testing. But some times we performed manually testing for any unit. To check the functionality of any new developed unit user can apply break point in code and run in debug form with the help of special key.

Tools for Unit Testing
Rational Software
Java script Assertion Unit
CUT is test tool with a Fee unit
Dot unit is a Freeware unit testing tool of .net framework, Its a part of junit

Benefits of Unit Testing:
1 Programmers can learn with the help of unit testing as they have to understand the functionality of unit testing and its code, and how it is working.
2 Accuracy: Developers have to confirm that developed code is working fine or not. He will check it and map with old code if there is any error in code
3 Time Saver: Unit testing is time saver, developers can do this testing without  waiting any testing member and complete work on it

Limitation of Unit Testing:
1 Independent code  If code is independent the unit testing is possible otherwise it is not possible

2 . Limitation: Unit testing is related to any specific unit and tester can not catch the error related to integration module

No comments: