Popular Posts

Wednesday, March 7, 2012

J unit test

Types of testing :
  • Unit testing : The goal of unit testing is to test each part of the program in isolation and show that the individual parts are correct, and identify programming/logical issues at a low level, thereby promoting an Extreme Programming paradigm.
         Unit testing is engraved into Extreme Programming methodology, and hence strive to make it cost effective.
Perform white box testing of each line of code. Testing should be narrow, covering each line of code.
  • Integration testing
  • End to end testing(QA)
  • Performance testing
  • Smoke testing
White Box Test : 
    Requires the knowledge of implementation
    Requires program language, script like HTMLUNIT, Selenium in Java
    Since the tests are based on the actual implementation, if the implementation changes, the tests probably will need to change, too.
Black Box Test :
    Requires NO knowledge of implementation
    No programing but use tool like STIQ
    Try to explore the software's behavior from the outside

Refer here for Junit frame work

No comments:

Post a Comment