White Box Test Techniques. Data Flow Testing

White Box Test Techniques. Data Flow Testing
September 23 10:00 2011 Print This Article

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

White Box Test Techniques. Data Flow Testing

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).

Related Posts:

  • No Related Posts

About Article Author

view more articles
Nataliia Vasylyna

View More Articles