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 条
  • [31] Automatic Conformance Test Generation Based on a Verified Model of a Bus System Standard
    Lechler, Armin
    Macias, Tomas
    Atmosudiro, Agus
    8TH INTERNATIONAL CONFERENCE ON DIGITAL ENTERPRISE TECHNOLOGY - DET 2014 DISRUPTIVE INNOVATION IN MANUFACTURING ENGINEERING TOWARDS THE 4TH INDUSTRIAL REVOLUTION, 2014, 25 : 305 - 312
  • [32] Architecting specifications for test case generation
    Sinnott, R
    FIRST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND FORMAL METHODS, PROCEEDINGS, 2003, : 24 - 32
  • [33] Abstraction Based Automated Test Generation from Formal Tabular Requirements Specifications
    Degiovanni, Renzo
    Ponzio, Pablo
    Aguirre, Nazareno
    Frias, Marcelo
    TESTS AND PROOFS, TAP 2011, 2011, 6706 : 84 - 101
  • [34] WSDL-based automatic test case generation for Web Services testing
    Bai, XY
    Dong, WL
    Tsai, WT
    Chen, YN
    SOSE 2005: IEEE INTERNATIONAL WORKSHOP ON SERVICE-ORIENTED SYSTEM ENGINEERING, 2005, : 207 - 212
  • [35] New formal test suite specification language for IPv conformance testing
    Zhang, YJ
    Li, ZC
    2003 INTERNATIONAL CONFERENCE ON COMMUNICATION TECHNOLOGY, VOL 1 AND 2, PROCEEDINGS, 2003, : 174 - 177
  • [36] Towards automatic generation and continuous improvement of functional test cases: The case of the Test-Duo framework and mutation testing
    Department of Computer Science and Information Engineering, National Taipei University of Technology, Taipei
    106, Taiwan
    J. Inf. Sci. Eng., 6 (2025-2053):
  • [37] Automatic Test Cases Generation from Software Specifications
    Alhroob, Aysh
    Dahal, Keshav
    Hossain, Alamgir
    E-INFORMATICA SOFTWARE ENGINEERING JOURNAL, 2010, 4 (01) : 109 - 121
  • [38] Towards Automatic Generation and Continuous Improvement of Functional Test Cases: The Case of the Test-Duo Framework and Mutation Testing
    Hsieh, Chin-Yun
    Tsai, Chen-Hsin
    Cheng, Yu Chin
    JOURNAL OF INFORMATION SCIENCE AND ENGINEERING, 2015, 31 (06) : 2025 - 2053
  • [39] Test generation based on symbolic specifications
    Frantzen, L
    Tretmans, J
    Willemse, TAC
    FORMAL APPROACHES TO SOFTWARE TESTING, 2005, 3395 : 1 - 15
  • [40] KVEST: Automated generation of test suites from formal specifications
    Burdonov, I
    Kossatchev, A
    Petrenko, A
    Galter, D
    FM'99-FORMAL METHODS, 1999, 1708 : 608 - 621