Black-Box Testing & White-Box Testing
- pubudun

- Nov 26, 2019
- 2 min read
There are several different testing techniques, Black-Box and White-Box those are two such approaches commonly used by testers.

figure 01
Black-Box Testing
It is defined as a testing technique in which functionality of the application under test is tested without looking at the internal code structure, implementation details & knowledge of internal paths of software.
Based on software requirements & specifications. Focus on the input & output of the software system.
Black-box testing use to test OS, Website, DB, Oracle.
How to do Black-box Testing ?
The tester can do the following steps to complete Black-box testing.
Examined the requirements & specifications of the system.
The tester chooses valid inputs.
Tester determines expected outputs for all those inputs.
Construct test cases with the selected inputs.
Execute test cases.
Tester compares actual outputs with expected outputs.
Defects if any are fixed and re-tested.
What are the Black-box Testing techniques?
Equivalence class testing.
It used to minimize the number of possible test cases.
Boundary value testing.
Focus on the values at boundaries (certain range of values are a accepted.) it reducing number of test cases.
Decision table testing.
It puts causes & their effects in a matrix.
What are the tools used for Black-box testing?
Functional & Regression - QTP, Selenium
Non-Functional - LoadRunner, Jmeter
White-Box Testing
What is White-box testing?
Testing of software solution's internal structure, design & coding. The code is visible to the tester.
It verifying the flow of the inputs, outputs & improve usability, design & security.
What are verify from white-box testing?
Internal security holes.
Expected outputs.
The flow of specific inputs.
Testing of each statement.
What are the steps of white-box testing?
understand the source codes.
Create test case & execute.
What are the White-Box testing techniques?
Statement coverage.
Branch coverage. (Check every possible paths.)
What are the example for white-box testing?
Unit Testing.
Testing for memory leaks.
What are the white-box testing tools?
Veracode.
Nunits.
Junits.





Comments