UNIT TESTING
Saturday, March 28, 2009
Unit Testing is testing of individual units or groups of related code.
Unit Testing is carried out with Unit Test Plan to verify the following:
• Standards specified (Ex. GUI related)
• Field validations, boundary values
• Basic functionality of the component (add/delete/modify/query activities)
• Code coverage and exception handling
• Negative or destructive testing
• Memory leaks
• Data computation/integrity
White Box Approach for Unit Testing
• Identification of Testable units/modules
• Focus on code and logic
• Design logic-based Test cases and prepare Test data
• Run tests and verify output through path traversing
Black Box Approach for Unit Testing
• Equivalence Partitioning
• Boundary Value Analysis
• Error Guessing
Next, we will discuss Black Box approach for Unit Testing.
0 comments:
Post a Comment