File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29253
    
139

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.


[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
 
Similar Threads
Test cases
Black and white
testing
Open source testing tools- web applications
Black box and Glass box