- QATestLab Blog >
- QA Basics >
- White Box Test Techniques. Data Flow Testing
White Box Test Techniques. Data Flow Testing
September 23
10:00
2011
by Nataliia Vasylyna 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
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).
More about white box testing techniques to can find here.
Learn more from QATestLab
Related Posts:
- Software Testing Techniques
- Difference Between White Box, Black Box, and Gray Box Testing
- What Is API Testing?
Article "tagged" as:
Categories:
No Comments Yet!
You can be the one to start a conversation.