Black-box/Behavioral testing is based on requirements and functionality. It is not based on any knowledge of internal design or code.
Example: User Acceptance Testing (UAT) and Systems Testing.
An example of Black- box testing is testing Search option. Use different data sets and see how the search option is working.
White-box/Glass-box testing relies on analyzing the code itself and the internal logic of the software.It uses techniques which range from highly technical or technology specific testing to things like code inspections.
Although white-box techniques can be used at any stage in a software product's life cycle, they tend to be found in Unit Testing activities.It requires programming skills to identify all paths through the software. The tester chooses test case inputs to exercise paths through the code and determines the appropriate outputs
Typical white box test design techniques include
- Control flow testing
- Data flow testing
- Branch Testing
- program internally, to check completeness and consistency
- considering pre-defined rules
- comparing the program with its specification or documentation.
Would have been better if it is elaborated some more - Will be still worth in case of providing some examples !!
ReplyDeleteThanks for your comments and have added some more points.
ReplyDelete