Tuesday, 5 March 2013

Gray-Box Testing Definition, Example

What is Grey / Gray box testing ?

Definition :
Gray Box Testing is a software testing method which is a combination of Black Box Testing method and White Box Testing method. In Black Box Testing, the internal structure of the item being tested is unknown to the tester and in White Box Testing the internal structure in known. In Gray Box Testing, the internal structure is partially known. This involves having access to internal data structures and algorithms for purposes of designing the test cases, but testing at the user, or black-box level.

Gray Box Testing is named so because the software program, in the eyes of the tester is like a gray/semi-transparent box; inside which one can partially see.

What is Grey/Gray box testing ?

Example :

An example of Gray Box Testing would be when the codes for two units/modules are studied (White Box Testing method) for designing test cases and actual tests are conducted using the exposed interfaces (Black Box Testing method).

Levels Applicable to :

  • Though Gray Box Testing method may be used in other levels of testing, it is primarily useful in Integration Testing.
Note that Gray known as Grey. Hence Grey Box Testing and Gray Box Testing mean the same.
Click to know about White box testing and Black box testing and Differences between Black Box and White Box Testing and Compare Quality-Assurance, Quality-Control, Testing


  1. Hello,
    The Article on Gray Box Testing basic defination and Example gives detailed information about it. Thanks for Sharing the information about Grey Box Testing For More information check the detail on the Gray Box testing here Mobile App Testing

  2. This comment has been removed by the author.

  3. Article is really nice.My doubts are clear

  4. Thank you for sharing such great information very useful to us.

  5. I was very interested in the article , it’s quite inspiring I should admit. I like visiting your site since I always come across interesting articles like this one. Keep sharing! Regards. Read more about
    Security Testing Services
    Test Automation Services
    Software Testing Services
    Compatibility Testing Services
    Regression Testing Services


  6. Thanks for sharing this informative content , Great work
    To crack scrum master interview : Agile coach interview questions


Share your feedback and queries here. Your feedback are more valuable to us!