You are on page 1of 10

Software Quality Engineering

DATA FLOW ANOMALY & Example


Data Flow testing

Data Flow testing is one of the testing


strategies, which focuses on the data variables
and their values, used in the programming
logic of the software product, by making use of
the control flow graph.
Data Flow testing
The basic idea behind this form of testing, is to reveal the
coding errors and mistakes, which may results in to improper
implementation and usage of the data variables or data
values in the programming code i.e. data anomalies, such as
 All the data variables, present in the programming code
have been initialized or not,
 Data variables which are put into use, have been, priorly
initialized or not,
 If the initialized data variables, has been used, at least
once, in the programming code.
https://www.zyxware.com/articles/4161/what-is-Data Flow
testing

http://www.professionalqa.com/Data Flow-in-software-
testing
Anomalies

 Data Flow Anomalies are identified while performing while


box testing or Static Testing. Data flow anomalies are
represented using two characters based on the sequence
of actions. They are defined (d), killed (k), and used (u).
There are nine possible combinations based on these 3
sequence of actions which are dd, dk, du, kd, kk, ku, ud,
uk, uu. The below table clearly shows which one of these
combinations are accepted and which one of these are
suspected to be an anomaly.
Anomalies Example

 Components of the state-transition diagrams


 The states
U: Undefined
D: Defined but not referenced
R: Defined and referenced
A: Abnormal
 The actions
d: define the variable
r: reference (or, read) the variable
u: undefine the variable
Anomalies Example
Anomalies
https://www.tutorialspoint.com/
software_testing_dictionary/anomaly.htm

https://www.ques10.com/p/2194/what-is-data-
flow-anomaly-explain-why-the-presen-1/

You might also like