This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one for details.
The moose likes Testing and the fly likes black box testing and white box testing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Engineering » Testing
Bookmark "black box testing and white box testing" Watch "black box testing and white box testing" New topic
Author

black box testing and white box testing

Heather Dennison
Greenhorn

Joined: Jan 27, 2011
Posts: 16

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

Joined: May 26, 2003
Posts: 31551
    
184

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: black box testing and white box testing