• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

black box testing and white box testing

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic