• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

black box testing and white box testing

 
Heather Dennison
Greenhorn
Posts: 16
  • 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: 34870
369
Eclipse IDE Java VI Editor
  • Likes 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic