Images

Black Box & White Box Testing

Black box Testing

A method of software testing that verifies the functionality of an application without having specific knowledge of the application's code/internal structure. Tests are based on requirements and functionality.
The technique of testing without having any knowledge of the interior workings of the application is Black Box testing. The tester is oblivious to the system architecture and does not have access to the source code. Typically, 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.

It is performed by QA teams.


Advantages
Disadvantages
1.) Well suited and efficient for large code segments.

2.) Code Access not required.

3.) Clearly separates user's perspective from the developer's perspective through visibly defined roles.

4.) Large numbers of moderately skilled testers can test the application with no knowledge of implementation, programming language or operating systems.
1.) Limited Coverage since only a selected number of test scenarios are actually performed.

2.) Inefficient testing, due to the fact that the tester only has limited knowledge about an application.

3.) Blind Coverage, since the tester cannot target specific code segments or error prone areas.

4.) The test cases are difficult to design.

White box Testing

Testing technique based on knowledge of the internal logic of an application’s code and includes tests Like coverage of code statements, branches, paths, conditions. It is performed by software developers. 
White box testing is the detailed investigation of internal logic and structure of the code. White box testing is also called glass testing or open box testing. In order to perform white box testing on an application, the tester needs to possess knowledge of the internal working of the code. 

The tester needs to have a look inside the source code and find out which unit/chunk of the code is behaving inappropriately.
 

Advantages
Disadvantages
1.) As the tester has knowledge of the source code, it becomes very easy to find out which type of data can help in testing the application effectively.

2.) It helps in optimizing the code.

3.) Extra lines of code can be removed which can bring in hidden defects.

4.) Due to the tester's knowledge about the code, maximum coverage is attained during test scenario writing.
1.) Due to the fact that a skilled tester is needed to perform white box testing, the costs are increased.

2.) Sometimes it is impossible to look into every nook and corner to find out hidden errors that may create problems as many paths will go untested.

3.) It is difficult to maintain white box testing as the use of specialized tools like code analyzers and debugging tools are required.

0 comments: