White Box ,Black Box
&
Gray Box Testing

Dr. Himanshu Hora
SRMS College of Engineering & Technology
Bareilly (INDIA)
White box testing
• White box testing is a method of testing software that
tests internal structures or working of an appl...
Cont…
• White box testing is the detailed investigation of
internal logic and structure of the code
• In order to perform ...
Advantages of white box testing
• It becomes very easy to find out which type of data
can help in testing the application ...
Disadvantages of white box
testing
• Due to the fact that a skilled tester is needed to
perform white box testing, the cos...
Black Box Testing
• The technique of testing without having any
knowledge of the interior workings of the application
is B...
Cont…
• The tester is oblivious to the system architecture and
does not have access to the source code
• When performing a...
Advantages of black box testing
• Well suited and efficient for large code segments
• Code Access not required

• Clearly ...
Disadvantages of black box
testing
• Limited Coverage since only a selected number of
test scenarios are actually performe...
Gray Box Testing
• Gray box testing is a combination of white box
testing and black box testing
• The aim of this testing ...
Cont…
• Gray-box testing is beneficial because it takes the
straightforward technique of black-box testing and
combines it...
Advantages of Gray box testing
• Offers combined benefits of black box and white box
testing wherever possible
• Grey box ...
Disadvantages of gray box testing
• Since the access to source code is not available, the
ability to go over the code and ...
Black Box vs. Gray Box vs. White Box
S . No

Black box

Gray box

White box

1

The Internal Workings Somewhat knowledge
o...
Thank You
Dr. Himanshu Hora
SRMS College of Engineering & Technology
Bareilly (INDIA)
White box black box & gray box testing
White box black box & gray box testing
Upcoming SlideShare
Loading in...5
×

White box black box & gray box testing

3,137

Published on

White box black box & gray box testing

Published in: Education, Technology
149 Comments
0 Likes
Statistics
Notes
  • jjmjmjmhnhjnjhy
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • fvh
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • fvhhnhn
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • fcdcdc
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • dc
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
3,137
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
196
Comments
149
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "White box black box & gray box testing"

  1. 1. White Box ,Black Box & Gray Box Testing Dr. Himanshu Hora SRMS College of Engineering & Technology Bareilly (INDIA)
  2. 2. White box testing • White box testing is a method of testing software that tests internal structures or working of an application • In white-box testing an internal perspective of the system , as well as programming skills, are used to design test cases • It is also known as clear box testing, glass box testing, transparent box testing, and structural testing
  3. 3. Cont… • White box testing is the detailed investigation of internal logic and structure of the code • In order to perform white box testing of an application , the tester needs to possess knowledge of the internal working of the code
  4. 4. Advantages of white box testing • It becomes very easy to find out which type of data can help in testing the application effectively • It helps in optimizing the code • Extra lines of code can be removed which can be bring in hidden defects • Due to the tester’s knowledge about the code , maximum coverage is attained during test scenario writing
  5. 5. Disadvantages of white box testing • Due to the fact that a skilled tester is needed to perform white box testing, the costs are increased • Sometimes it is impossible to look into every corner to find out hidden errors that may create problems as many paths will go untested • It is difficult to maintain white box testing as the use of specialized tools like code analyzers and debugging tools are required.
  6. 6. Black Box Testing • The technique of testing without having any knowledge of the interior workings of the application is Black Box testing • Black box testing is a method of software testing that examines the functionality of an application • This method of test can be applied to virtually every level of software testing : unit , integration , system , and acceptance
  7. 7. Cont… • The tester is oblivious to the system architecture and does not have access to the source code • When performing a black box test, a tester will interact with the system's user interface by providing inputs and examining outputs without knowing how and where the inputs are worked upon
  8. 8. Advantages of black box testing • Well suited and efficient for large code segments • Code Access not required • Clearly separates user's perspective from the developer's perspective through visibly defined roles • Large numbers of moderately skilled testers can test the application with no knowledge of implementation, programming language or operating systems
  9. 9. Disadvantages of black box testing • Limited Coverage since only a selected number of test scenarios are actually performed • Inefficient testing, due to the fact that the tester only has limited knowledge about an application • Blind Coverage, since the tester cannot target specific code segments or error prone areas The test cases are difficult to design
  10. 10. Gray Box Testing • Gray box testing is a combination of white box testing and black box testing • The aim of this testing is to search for the defects if any due to improper structure or improper usage of applications • Gray-box testing is also known as translucent testing
  11. 11. Cont… • Gray-box testing is beneficial because it takes the straightforward technique of black-box testing and combines it with the code targeted systems in whitebox testing
  12. 12. Advantages of Gray box testing • Offers combined benefits of black box and white box testing wherever possible • Grey box testers don't rely on the source code; instead they rely on interface definition and functional specifications • Based on the limited information available, a grey box tester can design excellent test scenarios especially around communication protocols and data type handling • The test is done from the point of view of the user and not the designer
  13. 13. Disadvantages of gray box testing • Since the access to source code is not available, the ability to go over the code and test coverage is limited. • The tests can be redundant if the software designer has already run a test case. • Testing every possible input stream is unrealistic because it would take an unreasonable amount of time; therefore, many program paths will go untested.
  14. 14. Black Box vs. Gray Box vs. White Box S . No Black box Gray box White box 1 The Internal Workings Somewhat knowledge of an application are of the internal not required to be workings are known known Tester has full knowledge of the Internal workings of the application 2 Also known as closed box testing, data driven testing and functional testing Another term for grey box testing is translucent testing as the tester has limited knowledge of the insides of the application Also known as clear box testing, structural testing or code based testing 3 Performed by end users and also by testers and developers Performed by end Normally done by users and also by testers and developers testers and developers 4 Testing is based on external expectations Internal behavior of the application is unknown Testing is done on the basis of high level database diagrams and data flow diagrams Internal workings are fully known and the tester can design test data accordingly
  15. 15. Thank You Dr. Himanshu Hora SRMS College of Engineering & Technology Bareilly (INDIA)
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×