• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Black and white

 
Ranch Hand
Posts: 398
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I keep hearing about black box testing and white box testing. Can somebody explain what these are and the difference between them?
Thanks,
Vasu
 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Black-box testing ensures that methods in your class function properly and follow the specification.
White-box (construction) testing validates that unexpected inputs to a class will not cause the program to crash
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Black box testing is seeing the system under test as a "black box" - that is, you only know input and output, but not what happens inside the box. With other words, the tests don't know or assume anything about the internals of the system - specifically, they don't have access to anything inside the box.
The advantage of black box testing is that the tests remain totally valid when you change the implementation of "the box".
White box testing is exactly the opposite: testing by using knowledge about the implementation or even accessing the innards of the "box".
The advantages of white box testing are that sometimes it is *much* easier to test something by knowing about its innards, and that some of the more interesting test cases (like boundary conditions) often heavily depend on the implementation details (the critical test cases for merge sort would probably look rather different from those for quick sort, for example).
[ January 17, 2003: Message edited by: Ilja Preuss ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi!
I'm new at this and my english isnt as good as it should be.... =)
I'm also interested in whitebox (glassbox) and blackbox testing, my question is: is there any one who knows some good literature or links in this subject??
//daisy
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Black Box Testing is testing without knowing how the internal workings operate. For example, you test a function by providing the inputs (arguments) and reading the outputs (exceptions, return value).
White Box Testing is testing while knowing how the internal worksings operate. For example, you test the internals of a function by testing the conditions, branches, and statements of the code.
Reference books:
Black-Box Tesing by Boris Beizer
Testing Computer Software by Cem Kaner
Scott
 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If u want real time whtiebox and whitebox go www.parasoft.com and select jtest and u can download free evalution also.but u must and should request license from parasoft
 
reply
    Bookmark Topic Watch Topic
  • New Topic