File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

black box testing and white box testing

 
Heather Dennison
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am having trouble understanding between whitebox and blackbox testing. Can you give me 3 examples of each?

black-box testing might find errors that white-box testing would not

white-box testing might find errors that black-box testing would not
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heather,
Whitebox is when you have access to the code. You might find a boundary case. For example, suppose the code has "if (sum > 0) {}" in it. Whitebox testing would have you checking the 0 case.

Blackbox is when you don't have access to the code. An independent tester might think about the code differently or find a case the code doesn't cover at all.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic