SOFTWARE TESTING BASED ON FORMAL SPECIFICATIONS - A THEORY AND A TOOL

被引:143
作者
BERNOT, G
GAUDEL, MC
MARRE, B
机构
[1] UNIV PARIS 11,RECH INFORMAT LAB,CNRS,UA 410,F-91405 ORSAY,FRANCE
[2] ECOLE NORM SUPER,LIENS,CNRS,URA 1327,F-75230 PARIS 05,FRANCE
来源
SOFTWARE ENGINEERING JOURNAL | 1991年 / 6卷 / 06期
关键词
D O I
10.1049/sej.1991.0040
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper addresses the problem of constructing test data sets from formal specifications. Starting from a notion of an ideal exhaustive test data set, which is derived from the notion of satisfaction of the formal specification, we show how to select by refinements a practicable test set, i.e. computable, while not rejecting correct programs (unbiased) and accepting only correct programs (valid), when assuming certain hypotheses. The hypotheses play an important role; they formalise common test practices and they express the gap between the success of the test and correctness; the size of the test set depends on the strength of the hypotheses. The paper shows an application of this theory for algebraic specifications and presents the actual procedures used to mechanically product such test sets, using Horn clause logic. These procedures are embedded in an interactive system, which, given some general hypothesis schemes and an algebraic specification, produces a test set and the corresponding hypotheses.
引用
收藏
页码:387 / 405
页数:19
相关论文
共 44 条
[41]   ON TESTING NON-TESTABLE PROGRAMS [J].
WEYUKER, EJ .
COMPUTER JOURNAL, 1982, 25 (04) :465-470
[42]  
WEYUKER EJ, 1980, 13TH P HAW INT C SYS, V1, P44
[43]  
WILD C, 1988, 2ND P ACM IEEE WORKS
[44]  
WILD C, 1988, TECHNICAL REPORT SER, V8802