Automatic test cases generation from formal contracts

被引:0
|
作者
Gil, Samuel Jimenez [1 ]
Capel, Manuel I. [2 ]
Olea, Gabriel [2 ]
机构
[1] SatixFy Space Syst UK, Trident Unit 2, Styal Rd, Manchester M22 5XB, England
[2] Univ Granada, Dept Software Engn, ETSIIT, Granada 18071, Spain
关键词
Automatic test cases generation; Software testing; Formal methods; Software verification;
D O I
10.1016/j.infsof.2024.107467
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Software verification for critical systems is facing an unprecedented cost increase due to the large amount of software packed in multicore platforms generally. A substantial amount of the verification efforts are dedicated to testing. Spark/Ada is a language often employed in safety -critical systems due to its high reliability. Formal contracts are often inserted in Spark's program specification to be used by a static theorem prover that checks whether the specification conforms with the implementation. However, this static analysis has its limitations as certain bugs can only be spotted through software testing. Objective: The main goal of our work is to use these formal contracts in Spark as input for a test oracle - whose method we describe - to generate test cases. Subsequent objectives consist of a) arguing about the traceability to comply with safety -critical software standards such as DO -178C for civil avionics and b) embracing the best -established software testing methods for these systems. Method: Our test generation method reads Spark formal contracts and applies Equivalence Class Partitioning with Boundary Analysis as a software testing method generating traceable test cases. Results: The evaluation, which uses an array of open -source examples of Spark contracts, shows a high level of passed test cases and statement coverage. The results are also compared against a random test generator. Conclusion: The proposed method is very effective at achieving a high number of passed test cases and coverage. We make the case that the effort to create formal specifications for Spark can be used both for proof and (automatic) testing. Lastly, we noticed that some formal contracts are more suitable than others for our test generation.
引用
收藏
页数:13
相关论文
共 50 条
  • [41] Automatic test generation using checkpoint encoding and antirandom testing
    Yin, HF
    LebneDengel, Z
    Malaiya, YK
    EIGHTH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, PROCEEDINGS, 1997, : 84 - 95
  • [42] Automatic test generation for n-way combinatorial testing
    Nie, CH
    Xu, BW
    Shi, L
    Dong, GW
    QUALITY OF SOFTWARE ARCHITECTURES AND SOFTWARE QUALITY, PROCEEDINGS, 2005, 3712 : 203 - 211
  • [43] Retrospective on: Constraint-Based Automatic Test Data Generation
    Offutt, Jeff
    Demillo, Richard
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2025, 51 (03) : 754 - 758
  • [44] RAMBUTANS: automatic AOP-specific test generation tool
    Reza Meimandi Parizi
    Abdul Azim Abdul Ghani
    Sai Peck Lee
    Saif Ur Rehman Khan
    International Journal on Software Tools for Technology Transfer, 2017, 19 : 743 - 761
  • [45] Cloud-based automatic test data generation framework
    Chawla, Priyanka
    Chana, Inderveer
    Rana, Ajay
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2016, 82 (05) : 712 - 738
  • [46] Automatic test data generation for path testing using GAs
    Lin, JC
    Yeh, PL
    INFORMATION SCIENCES, 2001, 131 (1-4) : 47 - 64
  • [47] Automatic test data generation for programs with integer and float variables
    Sy, NT
    Deville, Y
    16TH ANNUAL INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2001), PROCEEDINGS, 2001, : 13 - 21
  • [48] On the Evaluation of Software Maintainability Using Automatic Test Case Generation
    Nogueira, Ana Filipa
    Ribeiro, Jose C. B.
    Zenha-Rela, Mario A.
    2014 9TH INTERNATIONAL CONFERENCE ON THE QUALITY OF INFORMATION AND COMMUNICATIONS TECHNOLOGY (QUATIC), 2014, : 300 - 305
  • [49] Survey of Formal Verification Methods for Smart Contracts on Blockchain
    Murray, Yvonne
    Anisi, David A.
    2019 10TH IFIP INTERNATIONAL CONFERENCE ON NEW TECHNOLOGIES, MOBILITY AND SECURITY (NTMS), 2019,
  • [50] An Improved Genetic Algorithm for Test Cases Generation Oriented Paths
    Mei Jia
    Wang Shengyuan
    CHINESE JOURNAL OF ELECTRONICS, 2014, 23 (03) : 494 - 498