Monday, July 2, 2012

Black Box Testing and White Box Testing.

Black Box Testing
  • Black Box Testing is testing without knowledge of the internal workings of the item being tested.
  • For Example: when black box testing is applied to software engineering, the tester would only know the "legal" inputs and what the expected outputs should be, but not how the program actually arrives at those outputs.
Advantages of Black Box Testing
  • more effective on larger units of code than glass box testing.
  • tester needs no knowledge of implementation, including specific programming languages.
  • tester and programmer are independent of each other.tests are done from a user's point of view.
  • will help to expose any ambiguities or inconsistencies in the specifications.
  • test cases can be designed as soon as the specifications are complete
White Box Testing
  • White box testing strategy deals with the internal logic and structure of the code.
  • White box testing is also called as glass, structural, open box or clear box testing.
  • The tests written based on the white box testing strategy incorporate coverage of the code written, branches, paths, statements and internal logic of the code etc.
Advantages of White Box Testing
  • White Box Testing are tests that are run an application with the knowledge.
  • White box testing is testing from the inside--tests that go in and test the actual program structure.
  • As the knowledge of internal coding structure is prerequisite, it becomes very easy to find out which type of input/data can help in testing the application effectively.
  • The other advantage of white box testing is that it helps in optimizing the code.
  • It helps in removing the extra lines of code, which can bring in hidden defects.

No comments:

Post a Comment