Black Box Test Techniques. Syntax Testing

Page 1

QATestLab 21, Garmatna str., Kiev, Ukraine ph.: +38(044)277-66-61 http://qatestlab.com/ contact@qa-testlab.com

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.

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:

(c) QATestLab, 2011

http://qatestlab.com/


QATestLab 21, Garmatna str., Kiev, Ukraine ph.: +38(044)277-66-61 http://qatestlab.com/ contact@qa-testlab.com • • •

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

(c) QATestLab, 2011

http://qatestlab.com/


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.