Gray Box Testing With Example - Advantage and Disadvantage

 What is Gray Box Testing?

Gray Box Testing with example

Gray box testing is a type of software testing and a combination of Black box testing and white box testing.
it is a method to test the software application with partial knowledge of the internal working structure. In black-box testing, the tester is unknown to the internal structure of the application being tested, and in white-box testing the internal structure of the application is known to testers.
Gray box testing is also known as grey box analysis or translucent testing.

Garybox Testing example

In Simple words..
White-Box Testing: Internal structure (source code) is Known.
Black box testing: Internal structure (source code)is Unknown.
Gray Box Testing: Internal structure (source code)is partially Known.

Example of Gray Box Testing 
The Graybox Testing example is given below.

While testing any application feature like links or orphan links, if the tester encounters any bug with these links, then he can make the changes straight away in HTML code and can check in real-time.

How to Perform GrayBox Testing?
Follow the below steps to perform gray box testing : 
Step 1: Identify inputs 
Step 2: Identify the outputs 
Step 3: Identify the major paths 
Step 4: Identify Subfunctions 
Step 5: Develop inputs for Subfunctions 
Step 6: Develop outputs for Subfunctions 
Step 7: Execute test case for Subfunctions 
Step 8: Verify the correct result for Subfunctions 
Step 9: Repeat steps 4 & 8 for other Subfunctions
Step 10: Repeat steps 7 & 8 for other Subfunctions

Objective of Gray Box Testing
The Objective of gray box testing is as follows.
  • To provide combined advantages of both black box testing and white box testing. 
  • To combine the input of developers as well as testers. To improve overall product quality. 
  • To reduce the overhead of long processes of functional and non-functional testings. 
  • To provide enough free time to developers to fix defects. 
  • To test from the user's point of view rather than a designer's point of view.
Technique for Gray Box Testing
  • Matrix Testing 
  • Regression Testing 
  • Orthogonal Array Testing or OAT
  • Pattern Testing
Hope !! Above Tutorial on Gray Box Testing is helpful for you...

QA acharya 

Tags: Graybox Testing with the example, Gray box testing example, Gray box testing in software Testing

Post a Comment