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 条
  • [31] Automatic test case generation from requirements for industrial cyber-physical systems
    Sinha, Roopak
    Pang, Cheng
    Martinez, Gerardo Santillan
    Vyatkin, Valeriy
    AT-AUTOMATISIERUNGSTECHNIK, 2016, 64 (03) : 216 - 230
  • [32] Automating Test Case Generation for Android Applications using Model-based Testing
    Khan, Usman Habib
    Khan, Muhammad Naeem Ahmed
    Mirza, Aamir Mehmood
    Akram, Muhammad
    Fakhar, Shariqa
    Hussain, Shumaila
    Magsi, Irfan Ahmed
    Wagan, Raja Asif
    EMITTER-INTERNATIONAL JOURNAL OF ENGINEERING TECHNOLOGY, 2022, 10 (01) : 63 - 82
  • [33] Test case design and generation for automated testing
    Schroeder, PJ
    Gopu, V
    8TH WORLD MULTI-CONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL I, PROCEEDINGS: INFORMATION SYSTEMS, TECHNOLOGIES AND APPLICATIONS, 2004, : 281 - 286
  • [34] Retrospective on: Constraint-Based Automatic Test Data Generation
    Offutt, Jeff
    Demillo, Richard
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2025, 51 (03) : 754 - 758
  • [35] Test case selection strategies based on Boolean specifications
    Chen, TY
    Lau, MF
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2001, 11 (03) : 165 - 180
  • [36] Testing Semantics and Automatic Test Cases Generation for Statechart Specification
    Yang Xinmin
    Wang Weiwei
    Mo Yuchang
    PROCEEDINGS OF 2009 CONFERENCE ON COMMUNICATION FACULTY, 2009, : 242 - +
  • [37] Interaction Diagram Based Test Case Generation
    Kumar, Rohit
    Bhatia, Rajesh K.
    GLOBAL TRENDS IN INFORMATION SYSTEMS AND SOFTWARE APPLICATIONS, PT 2, 2012, 270 : 202 - +
  • [38] A Survey on Model-Based Testing Tools for Test Case Generation
    Li, Wenbin
    Le Gall, Franck
    Spaseski, Naum
    TOOLS AND METHODS OF PROGRAM ANALYSIS, 2018, 779 : 77 - 89
  • [39] Automated generation of test suites from formal specifications of real-time reactive systems
    Zheng, Mao
    Alagar, Vasu
    Ormandjieva, Olga
    JOURNAL OF SYSTEMS AND SOFTWARE, 2008, 81 (02) : 286 - 304
  • [40] Optimization of Model based Functional Test Case Generation for Android Applications
    Mateen, Ahmed
    Abbas, Khizar
    2017 IEEE INTERNATIONAL CONFERENCE ON POWER, CONTROL, SIGNALS AND INSTRUMENTATION ENGINEERING (ICPCSI), 2017, : 90 - 95