QATestLab 21, Garmatna str., Kiev, Ukraine ph.: +38(044)277-66-61 http://qatestlab.com/ contact@qa-testlab.com
Design Test cases should be designed to execute control flow paths between definitions and uses of variables in the component. Every test case should comprise: • • • •
input to the component control flow subpath to be exercised locations of relevant variable definition and use pair expected result of the test case
Analysis Data Flow Testing requires such model of the interplays between segments of a component connected by the flow of control and the flow of data. Categories are assigned to variable occurrences in the component, where the category finds out the definition or the use of the variable. Definitions called variable occurrences where a variable is given a new value. Accordingly, Uses called variable occurrences where a variable is not given a new value. However uses can be later distinguished as: •
Data definition P-uses (occur in the predicate portion of a decision statement such as while .. do, if .. then .. else, etc)
or •
Data definition C-uses (are all others, comprising variable occurrences in the right hand side of an assignment statement, or an output statement).
(c) QATestLab, 2011
http://qatestlab.com/