You are on page 1of 12

WHITE BOX VS

BLACK BOX

YAHAIRA HUARANGA CENTURIÓN


ÁLVARO ÁVILA VIDAURRE
ABY PACHECO VIDAL
FREDDY MORALES SALVATIERRA
WHITE BOX

IS THE TESTING OF A
SOFTWARE SOLUTION’S
INTERNAL CODING.
 It focuses primarily on strengthening security.

 The flow of inputs and outputs through the application and


CHARACTERISTICS improving design and usability.
 Is based on the inner workings of an application and revolves around
internal testing
TYPES OF
COVERAGE
MCCABE’S Is a software quality metric that quantifies the
complexity of a software program.

CYCLOMATIC Complexity is inferred by measuring the number of


independent paths through the program.
COMPLEXITY The complexity is then defined as:
v(G) = E − N + 2P

v(G) = cyclomatic complexity.


E = the number of edges of the graph.
N = the number of nodes of the graph.
P = the number of connected components
The Idea:
• Make a table of predicates
DECISION TABLE • Insert all combinations (True / False)
• Construct test for each combination

General technique for Full Path Coverage.

It will only work with:


 Situations with binary decisions
 Small chunks of code
BLACK BOX

Black box also called functional testing.

Is the way as we test the functionalities


of a system evaluating the inputs and outputs
that software can do.

In this kind of testing we must consider:


• Algorithms understanding (without the source code).
• Parts of the solution that are difficult to implement.
• Special cases.
TESTING IN REAL TIME

In order to test Real Time / Embedded Systems, we need to use


patterns which can identify most defects in a process

Patterns:
● Basic Scenario Pattern
● Key-event Service Pattern
● Timed Key-event Service Pattern
BASIC
SCENARIO
PATTERN
KEY-EVENT
SCENARIO
PATTERN
TIMED KEY-
EVENT
SERVICE
PATTERN
COMPARISON

White box Black box

You must have the source code to test the application You don’t need the source code to make tests.

Debugging Functional testing

Understand the implementation code Understand the algorithm

Check the implementation Check the solution

You might also like