Black Box Test Techniques. Syntax Testing

Black Box Test Techniques. Syntax Testing
September 16 10:00 2011 Print This Article

Analysis

Syntax Testing uses such model of the formally defined syntax of the inputs to a component. The syntax is described as a number of rules each of which characterizes the probable means of production of a symbol in terms of sequences, iterations, or selections between symbols.

Black Box Test Techniques. Syntax Testing

Test cases with valid and invalid syntax are designed from the formally defined syntax of the inputs to the component.

Supplementary rules can also be applied when appropriate:

  • whenever an iteration is used, at least 2 options are derived, one with the minimum number of iterated symbols and the other with more than the minimum number of repetitions
  • whenever a selection is used, an option is derived for each alternative by replacing the selection with that alternative

For every test case these should be clarified:

  • the input to the component;
  • the generic mutation used;
  • the syntax element to which the mutation is applied;
  • the expected result of the test case.

Test cases with invalid syntax should be designed as:

  • a checklist of generic mutations should be documented which can be applied to rules in order to generate an invalid area of the input;
  • this checklist should be applied to the syntax to identify particular mutations of the valid input;
  • test cases should be designed to perform particular mutations.

A test case may exercise any number of options. For each test case these should be clarified:

  • option exercised;
  • the input to the component;
  • the expected result of the test case.

Related Posts:

  • No Related Posts

About Article Author

view more articles
Nataliia Vasylyna

View More Articles