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 条
  • [21] Search based algorithms for test sequence generation in functional testing
    Ferrer, Javier
    Kruse, Peter M.
    Chicano, Francisco
    Alba, Enrique
    INFORMATION AND SOFTWARE TECHNOLOGY, 2015, 58 : 419 - 432
  • [22] Generation of test sequences from formal specifications: GSM 11-11 standard case study
    Bernard, E
    Legeard, B
    Luck, X
    Peureux, F
    SOFTWARE-PRACTICE & EXPERIENCE, 2004, 34 (10) : 915 - 948
  • [23] Test Oracle Strategies for Model-Based Testing
    Li, Nan
    Offutt, Jeff
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2017, 43 (04) : 372 - 395
  • [24] Automatic Test Cases Generation for Statechart Specifications from Semantics to Algorithm
    Chen, Lina
    JOURNAL OF COMPUTERS, 2011, 6 (04) : 769 - 775
  • [25] TESTOR: A Modular Tool for On-the-Fly Conformance Test Case Generation
    Marsso, Lina
    Mateescu, Radu
    Serwe, Wendelin
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, TACAS 2018, PT II, 2018, 10806 : 211 - 228
  • [26] Controlling test case explosion in test generation from B formal models
    Legeard, B
    Peureux, F
    Utting, M
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2004, 14 (02) : 81 - 103
  • [27] Ontology Based Test Case Generation for Black Box Testing
    Ul Haq, Sami
    Qamar, Usman
    PROCEEDINGS OF 2019 8TH INTERNATIONAL CONFERENCE ON EDUCATIONAL AND INFORMATION TECHNOLOGY (ICEIT 2019), 2019, : 236 - 241
  • [28] Automatic Test Case Generation for Serverless Applications
    Winzinger, Stefan
    Wirtz, Guido
    2022 16TH IEEE INTERNATIONAL CONFERENCE ON SERVICE-ORIENTED SYSTEM ENGINEERING (SOSE 2022), 2022, : 77 - 84
  • [29] Graph based test case generation for TLM functional verification
    Kakoee, Mohammad Reza
    Neishaburi, M. H.
    Mohammadi, Siamak
    MICROPROCESSORS AND MICROSYSTEMS, 2008, 32 (5-6) : 288 - 295
  • [30] A novel approach to automatic model-based test case generation
    Rezaee, A.
    Zamani, B.
    SCIENTIA IRANICA, 2017, 24 (06) : 3132 - 3147