Conclusions
-
1.
The planning of program tests should be based on three principal criteria: structured coverage, the probability of residual error, and the probability of revealing a residual error.
-
2.
When basing planning on the first criterion one should consider that the complexity of testing structured graphs is independent of the method of coverage selection but entirely depends on the maximum rank (“height”) and cyclomatic number (“width”) of the graph. The reliability of testing nonstructured graphs is higher when more complex methods are applied for test route selection. When testing resources are limited it is desirable to use a method of covering all edges of the graph for which the complexity of testing is proportional to the width of the program graph.
-
3.
The strategy of ordering test routes by duration is preferable for testing with the purpose of minimizing the probability of the presence of a residual error; for narrow structured graphs this strategy also allows minimization of the probability of revealing a residual error. The strategy of ordering test routes by the probability of execution makes it possible more easily to obtain a program with a specified probability of revealing a residual error. With increasing nonstructurality and graph width the strategy becomes also preferable with respect to the criterion of the probability of a residual error.
Similar content being viewed by others
Literature Cited
O.-J. Dahl et al., Structured Programming, Academic Press (1972).
V. M. Glushkov, “Fundamental research and programming technology,” Programmirovanie, No. 2, 3 (1980).
T. V. Kolganova, S. G. Orlov, and V. V. Filippovich, “Analysis of the characteristics of the hierarchical structure of a system of automatic-control system programs,” Upr. Sist. Mashiny, No. 5, 46 (1976).
V. V. Lipaev (ed.), Debugging of Control Algorithm Systems for Real-Time Digital Computers [in Russian], Sov. Radio, Moscow (1974).
T. J. McCabe, “A complexity measure,” IEEE Trans. Software Eng.,2, No. 4, 308 (1976).
B. A. Pozin, “A method of structural design of tests for debugging control programs,” Programmirovanie, No. 2, 62 (1980).
Additional information
Translated from Kibernetika, No. 2, pp. 45–50, March–April, 1982.
Rights and permissions
About this article
Cite this article
Lipaev, V.V., Pozin, B.A. & Blau, S.A. Analysis of program logic test strategies. Cybern Syst Anal 18, 195–200 (1982). https://doi.org/10.1007/BF01074530
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01074530