• DocumentCode
    3153596
  • Title

    Automatic unit test data generation using mixed-integer linear programming and execution trees

  • Author

    Lapierre, S. ; Merlo, E. ; Savard, G. ; Antoniol, G. ; Fiutem, R. ; Tonelia, P.

  • Author_Institution
    Bell Canada, Ottawa, Ont., Canada
  • fYear
    1999
  • fDate
    1999
  • Firstpage
    189
  • Lastpage
    198
  • Abstract
    This paper presents an approach to automatic unit test data generation for branch coverage using mixed-integer linear programming, execution trees, and symbolic execution. This approach can be useful to both general testing and regression testing after software maintenance and reengineering activities. Several strategies, including original algorithms, to move towards practical test data generation have been investigated in this paper. Methods include: the analysis of minimum path-length partial execution trees for unconstrained arcs, thus increasing the generation performance and reducing the difficulties originated by infeasible paths the reduction of the difficulties originated by nonlinear path conditions by considering alternative linear paths the reduction of the number of test cases, which are needed to achieve the desired coverage, based on the concept of unconstrained arcs in a control flow graph the extension of symbolic execution to deal with dynamic memory allocation and deallocation, pointers and pointers to functions system. Preliminary results are encouraging and show that a high percentage of the program branches can be covered by the test data automatically produced. The approach is flexible to branch selection criteria coming from general testing as well as regression testing
  • Keywords
    linear programming; program testing; software maintenance; systems re-engineering; automatic unit test data generation; branch coverage; execution trees; general testing; mixed-integer linear programming; reengineering; regression testing; software maintenance; symbolic execution; test data generation; Automatic generation control; Automatic testing; Control systems; Flow graphs; Linear programming; Nonlinear control systems; Performance analysis; Software maintenance; Software testing; System testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Maintenance, 1999. (ICSM '99) Proceedings. IEEE International Conference on
  • Conference_Location
    Oxford
  • ISSN
    1063-6773
  • Print_ISBN
    0-7695-0016-1
  • Type

    conf

  • DOI
    10.1109/ICSM.1999.792607
  • Filename
    792607