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

被引:12
|
作者
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 条
  • [1] Automatic Transformation from Formal Specifications to Functional Scenario Forms for Automatic Test Case Generation
    Liu, Shaoying
    Hayashi, Toshinori
    Takahashi, Kazuhiro
    Kimura, Koichiro
    Nakayama, Toshihiro
    Nakajima, Shin
    NEW TRENDS IN SOFTWARE METHODOLOGIES, TOOLS AND TECHNIQUES, 2010, 217 : 383 - 397
  • [2] From Formal Specifications to Efficient Test Scenarios Generation
    Yang, Jing
    Ghazel, Mohamed
    El-Koursi, El-Miloudi
    2013 INTERNATIONAL CONFERENCE ON ADVANCED LOGISTICS AND TRANSPORT (ICALT), 2013, : 35 - 40
  • [3] Formal specifications and test: Correctness and oracle
    LeGall, P
    Arnould, A
    RECENT TRENDS IN DATA TYPE SPECIFICATION, 1996, 1130 : 342 - 358
  • [4] AUTOMATED PROTOCOL CONFORMANCE TEST-GENERATION BASED ON FORMAL METHODS FOR LOTOS SPECIFICATIONS
    CAVALLI, AR
    KIM, SU
    MAIGRON, P
    PROTOCOL TEST SYSTEMS, V, 1993, 11 : 237 - 248
  • [5] Automatic Generation of Test Cases from Formal Specifications using Mutation Testing
    Jaramillo Cajica, Roman
    Gonzalez Torres, Raul Ernesto
    Mejia Alvarez, Pedro
    2021 18TH INTERNATIONAL CONFERENCE ON ELECTRICAL ENGINEERING, COMPUTING SCIENCE AND AUTOMATIC CONTROL (CCE 2021), 2021,
  • [6] AUTOMATIC-GENERATION OF TEST SCRIPTS FROM FORMAL TEST SPECIFICATIONS
    BALCER, MJ
    HASLING, WM
    OSTRAND, TJ
    PROCEEDINGS OF THE ACM SIGSOFT 89: THIRD SYMPOSIUM ON SOFTWARE TESTING, ANALYSIS, AND VERIFICATION ( TAV 3 ), 1989, 14 : 210 - 218
  • [7] THE USE OF AN ISO FORMAL TECHNIQUE FOR CONFORMANCE TEST SPECIFICATIONS
    DELAPEYRE, FJ
    WOOLLARD, KC
    YVERGNAUX, S
    BRITISH TELECOM TECHNOLOGY JOURNAL, 1988, 6 (01): : 23 - 30
  • [8] Time constraint and test case generation in conformance testing
    Department of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China
    不详
    Hsi An Chiao Tung Ta Hsueh, 2006, 4 (381-385):
  • [9] Automatic test case generation from the industrial point of view: Conformance testing in Iskratel
    Frey-Pucko, M
    Kapus-Kolar, M
    Novak, R
    TESTING OF COMMUNICATING SYSTEMS: METHODS AND APPLICATIONS, 1999, 21 : 347 - 362
  • [10] Automatic interoperability test case generation based on formal definitions
    Desmoulin, Alexandra
    Viho, Cesar
    FORMAL METHODS FOR INDUSTRIAL CRITICAL SYSTEMS, 2008, 4916 : 234 - 250