White Box Test Techniques

White Box Test Techniques
September 30 12:30 2011 Print This Article

Linear Code Sequence and Jump Testing

Design
Test cases should be designed to exercise Linear Code Sequence and Jump.

For every test case these should be clarified:

  • the input to the component
  • identification of the Linear Code Sequence and Jump to be performed by the test case
  • the expected result of the test case

Analysis
Linear Code Sequence and Jump testing uses such model of the source code which recognizes control flow jumps (in such cases where control flow doesn’t pass to a sequential statement).

An Linear Code Sequence and Jump is determined by a triple, conditionally identified by line numbers in a source code listing:

  • the start of the linear code sequence
  • the end of the linear code sequence
  • the target line to which control flow is transferred

Modified Condition Decision Testing

Design
Test cases should be designed to show that Boolean operands within a decision condition may independently influence the result of the decision.

For every test case these should be clarified:

  • the input to the component
  • for each decision estimated by the test case identification of the combination of Boolean operands, their values, and the result of the decision
  • the expected result of the test case

Analysis
Modified Condition Decision Testing uses such model of the source code which recognizes decisions, outcomes, and the individual Boolean operands within the decision conditions. A decision is feasible statement which can transmit control to another statement. It depends on the logic of the decision statement. A decision condition is a Boolean expression which is estimated to define the result of a decision. Normal decisions are found in loops and selections.

Branch Condition Combination Testing

Design
Test cases should be designed to exercise combinations of Boolean operand values within decision conditions.

For every test case these should be clarified:

  • the input to the component
  • for every decision estimated by the test case identification of the combination of Boolean operands and their values
  • the expected result of the test case

Analysis
Branch Condition Combination Testing uses such model of the source code which recognizes decisions and the individual Boolean operands within the decision conditions. A decision is feasible statement which can transmit control to another statement. It depends on the logic of the decision statement. A decision condition is a Boolean expression which is estimated to define the result of a decision. Normal decisions are found in loops and selections.

Related Posts:

About Article Author

view more articles
Nataliia Vasylyna
Nataliia Vasylyna

View More Articles