On Testing Constraint Programs

被引:0
作者
Lazaar, Nadjib [1 ]
Gotlieb, Arnaud [1 ]
Lebbah, Yahia [2 ,3 ]
机构
[1] INRIA Rennes Bretagne Atlantique, Campus Beaulieu, F-35042 Rennes, France
[2] Univ Oran Es Senia, LITIO, Orange, NSW, Australia
[3] Univ Nice Sophia Antipolis, Antipolis, France
来源
PRINCIPLES AND PRACTICE OF CONSTRAINT PROGRAMMING-CP 2010 | 2010年 / 6308卷
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The success of several constraint-based modeling languages such as OPL, ZINC, or COMET, appeals for better software engineering practices, particularly in the testing phase. This paper introduces a testing framework enabling automated test case generation for constraint programming. We propose a general framework of constraint program development which supposes that a first declarative and simple constraint model is available from the problem specifications analysis. Then, this model is refined using classical techniques such as constraint reformulation, surrogate and global constraint addition, or symmetry-breaking to form an improved constraint model that must be thoroughly tested before being used to address real-sized problems. We think that most of the faults are introduced in this refinement step and propose a process which takes the first declarative model as an oracle for detecting non-conformities. We derive practical test purposes from this process to generate automatically test data that exhibit non-conformities. We implemented this approach in a new tool called CPTEST that was used to automatically detect non-conformities on two classical benchmark programs, namely the Golomb rulers and the car-sequencing problem.
引用
收藏
页码:330 / +
页数:2
相关论文
共 50 条
  • [1] Constraint based Testing and Verification of Java']Java Bytecode Programs
    Achour, Safaa
    Benattou, Mohammed
    2018 IEEE 5TH INTERNATIONAL CONGRESS ON INFORMATION SCIENCE AND TECHNOLOGY (IEEE CIST'18), 2018, : 64 - 69
  • [2] Verifying and Testing Concurrent Programs using Constraint Solver based Approaches
    Khanna, Dhriti
    Purandare, Rahul
    Sharma, Subodh
    2020 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2020), 2020, : 834 - 838
  • [3] Euclide: A Constraint-Based Testing framework for critical C programs
    Gotlieb, Arnaud
    SECOND INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION, AND VALIDATION, PROCEEDINGS, 2009, : 151 - 160
  • [4] Testing abstract distributed programs and their implementations: A constraint-based approach
    Carver, RH
    JOURNAL OF SYSTEMS AND SOFTWARE, 1996, 33 (03) : 223 - 237
  • [5] A Relational Symbolic Execution Algorithm for Constraint-Based Testing of Database Programs
    Marcozzi, Michael
    Vanhoof, Wim
    Hainaut, Jean-Luc
    2013 IEEE 13TH INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM), 2013, : 179 - 188
  • [6] Parallelizing Constraint Programs
    Michel, Laurent D.
    DAMP'10: PROCEEDINGS OF THE 2010 ACM SIGPLAN WORKSHOP ON DECLARATIVE ASPECTS OF MULTICORE PROGRAMMING, 2010, : 3 - 3
  • [7] Nested Constraint Programs
    Chu, Geoffrey
    Stuckey, Peter J.
    PRINCIPLES AND PRACTICE OF CONSTRAINT PROGRAMMING, CP 2014, 2014, 8656 : 240 - 255
  • [8] Cardinality constraint programs
    Syrjänen, T
    LOGICS IN ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2004, 3229 : 187 - 199
  • [9] Weight Constraint Programs with Functions
    Wang, Yisong
    You, Jia-Huai
    Yuan, Li-Yan
    Zhang, Mingyi
    LOGIC PROGRAMMING AND NONMONOTONIC REASONING, PROCEEDINGS, 2009, 5753 : 329 - +
  • [10] Fault localization in constraint programs
    Lazaar, Nadjib
    Gotlieb, Arnaud
    Lebbah, Yahia
    22ND INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI 2010), PROCEEDINGS, VOL 1, 2010,