Automatic test data generation for programs with integer and float variables

被引:8
作者
Sy, NT [1 ]
Deville, Y [1 ]
机构
[1] Catholic Univ Louvain, B-1348 Louvain, Belgium
来源
16TH ANNUAL INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2001), PROCEEDINGS | 2001年
关键词
software testing; test data generation; constraint satisfaction; consistency;
D O I
10.1109/ASE.2001.989786
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper presents a novel approach for automated test data generation of imperative programs containing integer, boolean and/or float variables. Our approach is based on consistency techniques integrating integer and float variables. We handle statement, branch and path coverage criteria. Our purpose is thus to automatically generate test data that will cause the program to execute a statement, to traverse a branch or to traverse a specified path. For path coverage, the specified path is transformed into a path constraint which is solved by an interval-based constraint solving algorithm handling integer, boolean and real variables. A valid test input is then extracted from the interval solutions. For statement (and branch) coverage, a path reaching the specified statement or branch is dynamically constructed Our algorithm for path coverage is then applied The search for a suitable path and the solving of path constraints make an extensive use of consistency techniques. Me propose here a simple consistency notion, called eBox consistency, generalizing box consistency to integer and float variables. The eBox consistency is sufficient for our purpose. A prototype has been developed and experimental results show the feasibility of our approach. This work, is an extension of[10] for float and boolean variables.
引用
收藏
页码:13 / 21
页数:9
相关论文
共 23 条
  • [1] [Anonymous], 1997, NUMERICA MODELING LA
  • [2] BENHAMOU F, 1995, J SYMBOLIC COMPUTATI
  • [3] BENHAMOU F, 1995, 4 JOURN FRANC PROGR, P51
  • [4] AUTOMATIC-GENERATION OF RANDOM SELF-CHECKING TEST CASES
    BIRD, DL
    MUNOZ, CU
    [J]. IBM SYSTEMS JOURNAL, 1983, 22 (03) : 229 - 245
  • [5] SINGLE-PASS GENERATION OF STATIC SINGLE-ASSIGNMENT FORM FOR STRUCTURED LANGUAGES
    BRANDIS, MM
    MOSSENBOCK, H
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1994, 16 (06): : 1684 - 1698
  • [6] DELOBEL F, 2000, THESIS U NICE SOPHIA
  • [7] Demillo R. A., 1993, ACM Transactions on Software Engineering and Methodology, V2, P109, DOI 10.1145/151257.151258
  • [8] AN EVALUATION OF RANDOM TESTING
    DURAN, JW
    NTAFOS, SC
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1984, 10 (04) : 438 - 444
  • [9] Ferguson R., 1996, ACM Transactions on Software Engineering and Methodology, V5, P63, DOI 10.1145/226155.226158
  • [10] THE PROGRAM DEPENDENCE GRAPH AND ITS USE IN OPTIMIZATION
    FERRANTE, J
    OTTENSTEIN, KJ
    WARREN, JD
    [J]. ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1987, 9 (03): : 319 - 349