Black Box Test Techniques. Syntax Testing

by Nataliia Vasylyna | September 16, 2011 10:00 am

Introduction to black box testing to can find here[1].

Syntax Testing

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:

For every test case these should be clarified:

Test cases with invalid syntax should be designed as:

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

Statement Testing

Design
Test cases should be designed to exercise feasible statements.

For each test case the these should be clarified:

Analysis
Statement testing uses such model of the source code which identifies statements as either feasible or non- feasible.

Random Testing

Design
Test cases should be chosen randomly from the input domain of the component according to the input distribution.

The input distribution which used for the test case suite should be recorded.

A test case should include:

Analysis
Random Testing uses such model of the input domain of the component that characterizes the set of all probable input values. The input distribution which used in the generation of random input values should be based on the expected operational distribution of inputs. If it happens so that no information of operational distribution is accessible then a uniform input distribution should be used.

More about black box testing you can find here[2].

Related Posts:

Endnotes:
  1. here: https://qatestlab.com/resources/knowledge-center/black-box-testing/
  2. here: https://blog.qatestlab.com/2011/09/13/black-box-test-techniques-cause-effect-graphing/
  3. Black Box Test Techniques. Cause-Effect Graphing: https://blog.qatestlab.com/2011/09/13/black-box-test-techniques-cause-effect-graphing/
  4. Alpha Testing vs Beta Testing: https://blog.qatestlab.com/2017/03/10/alpha-beta-testing/
  5. ‘Rainbow’ Box Testing: https://blog.qatestlab.com/2016/12/28/rainbow-box-testing/
  6. Why to Write Test Cases?: https://blog.qatestlab.com/2016/10/28/test-case-creation/
  7. What Box to Choose: Black, White or Grey?: https://blog.qatestlab.com/2016/09/13/black-white-grey/

Source URL: https://blog.qatestlab.com/2011/09/16/black-box-test-techniques-syntax-testing/