Automatic Test Case and Test Oracle Generation Based on Functional Scenarios in Formal Specifications for Conformance Testing

被引:13
|
作者
Liu, Shaoying [1 ,2 ]
Nakajima, Shin [3 ]
机构
[1] Hiroshima Univ, Grad Sch Adv Sci & Engn, Higashihiroshima 7398527, Japan
[2] Hiroshima Univ, Sch Informat & Data Sci, Higashihiroshima 7398527, Japan
[3] Natl Inst Informat, Informat & Soc Res, Tokyo 1018430, Japan
关键词
Software; Vibrations; Input variables; Conformance testing; Automatic testing; Information systems; Specification-based testing; black-box testing; functional testing; model-based testing; automatic testing; ALGEBRAIC SPECIFICATIONS; SOFTWARE; VERIFICATION;
D O I
10.1109/TSE.2020.2999884
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Testing a program to confirm whether it consistently implements its requirements specification is a necessary but time-consuming activity in software development. Automatic testing based on specifications can significantly alleviate the workload and cost, but faces a challenge of how to ensure that both the user's concerns in the specification and possible execution paths in the program are all covered. In this paper, we describe a new method, called "Vibration-Method" or simply "V-Method", for automatic generation of test cases and test oracle from model-based formal specifications, aiming to address this challenge. The proposed method is suitable for testing information systems in which rich data types are used. Supporting the principle of "divide and conquer", the method provides a specific technique for generating test cases based on functional scenarios defined in the specification, test case generation criteria, automatic test case generation algorithms, and a well-defined mechanism for deriving test oracle. We elaborate on the method by discussing how initial test cases can be automatically generated, how additional necessary test cases are produced using the "vibration" technique, and how a test oracle can be automatically derived for a group of test cases. We also describe a controlled experiment to evaluate the effectiveness of the method and discuss the important issues in relation to the performance and applicability of the method.
引用
收藏
页码:691 / 712
页数:22
相关论文
共 50 条
  • [41] Minimal Test Suite Automatic Generation Method Based on Petri Net
    Su, Jianyuan
    Wang, Lingling
    Liang, Hongyan
    Zhao, Xin
    Wu, Lingyan
    PROCEEDINGS OF 2008 INTERNATIONAL PRE-OLYMPIC CONGRESS ON COMPUTER SCIENCE, VOL I: COMPUTER SCIENCE AND ENGINEERING, 2008, : 264 - 267
  • [42] Applying formal methods to PCEP: an industrial case study from modeling to test generation
    Hwang, Iksoon
    Cavalli, Ana R.
    Lallali, Mounir
    Verchere, Dominique
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2012, 22 (05) : 343 - 361
  • [43] Case Study: Automatic Test Case Generation for a Secure Cache Implementation
    Bloem, Roderick
    Hein, Daniel
    Roeck, Franz
    Schumi, Richard
    TESTS AND PROOFS, TAP 2015, 2015, 9154 : 58 - 75
  • [44] Detecting Functional Differences using Automatic Test Generation for Automated Assessment in Programming Education
    Izuta, Ryoko
    Matsumoto, Shinsuke
    Igaki, Hiroshi
    Saiki, Sachio
    Fukuyasu, Naoki
    Kusumoto, Shinji
    2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2021), 2021, : 526 - 530
  • [45] Test Case Generation for Java']Java Bytecode Programs Annotated with BML Specifications
    Achour, Safaa
    Benattou, Mohammed
    PROCEEDINGS OF 2016 5TH INTERNATIONAL CONFERENCE ON MULTIMEDIA COMPUTING AND SYSTEMS (ICMCS), 2016, : 605 - 610
  • [46] USLTG: Test Case Automatic Generation by Transforming Use Cases
    Chu Thi Minh Hue
    Duc-Hanh Dang
    Nguyen Ngoc Binh
    Anh-Hoang Truong
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2019, 29 (09) : 1313 - 1345
  • [47] MT-ART: A Test Case Generation Method Based on Adaptive Random Testing and Metamorphic Relation
    Hui, Zhan-wei
    Wang, Xiaojuan
    Huang, Song
    Yang, Sen
    IEEE TRANSACTIONS ON RELIABILITY, 2021, 70 (04) : 1397 - 1421
  • [48] Fault Detection Effectiveness of Source Test Case Generation Strategies for Metamorphic Testing
    Saha, Prashanta
    Kanewala, Upulee
    2018 IEEE/ACM 3RD INTERNATIONAL WORKSHOP ON METAMORPHIC TESTING (MET 2018), 2018, : 2 - 9
  • [49] Review of Object-Oriented Coupling Based Test Case Selection In Model Based Testing
    Bhandari, Parul
    Singh, Ajmer
    2017 INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTING AND CONTROL SYSTEMS (ICICCS), 2017, : 1161 - 1165
  • [50] Combining Model-Based and Risk-Based Testing for Effective Test Case Generation
    Gebizli, Ceren Sahin
    Metin, Duygu
    Sozer, Hasan
    2015 IEEE EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2015,