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] TESTING INTERACTIVE GRAPHICS BY AUTOMATIC TEST CASE GENERATION.
    Bird, D.L.
    IBM technical disclosure bulletin, 1984, 26 (10 B): : 5695 - 5698
  • [42] A guided incremental test case generation procedure for conformance testing for CEFSM specified protocols
    Bourhfir, C
    Dssouli, R
    Aboulhamid, E
    Rico, N
    TESTING OF COMMUNICATING SYSTEMS, 1998, : 279 - 294
  • [43] Formal Specification Based Automatic Test Generation for Embedded Network Systems
    Choi, Eun Hye
    Nishihara, Hideaki
    Ando, Takahiro
    Nguyen Van Tang
    Aoki, Masahiro
    Yoshisaka, Keiichi
    Mizuno, Osamu
    Ohsaki, Hitoshi
    JOURNAL OF APPLIED MATHEMATICS, 2014,
  • [44] Automatic Generation of Acceptance Test Cases From Use Case Specifications: An NLP-Based Approach
    Wang, Chunhui
    Pastore, Fabrizio
    Goknil, Arda
    Briand, Lionel C.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (02) : 585 - 616
  • [45] Automatic test selection based on CEFSM specifications
    Kovács, Gábor
    Pap, Zoltán
    Csopaki, Gyula
    Acta Cybernetica, 2002, 15 (04): : 583 - 599
  • [46] Test case generation from AsmL specifications
    Grieskamp, W
    Nachmanson, L
    Tillmann, N
    Veanes, M
    ABSTRACT STATE MACHINES 2003: ADVANCES IN THEORY AND PRACTIC, PROCEEDINGS, 2003, 2589 : 413 - 413
  • [47] Model-based automatic test case generation for automotive embedded software testing
    Ki-Wook Shin
    Dong-Jin Lim
    International Journal of Automotive Technology, 2018, 19 : 107 - 119
  • [48] Model-based automatic test case generation for automotive embedded software testing
    Shin, Ki-Wook
    Lim, Dong-Jin
    INTERNATIONAL JOURNAL OF AUTOMOTIVE TECHNOLOGY, 2018, 19 (01) : 107 - 119
  • [49] Automated functional conformance test generation for semantic web services
    Paradkar, Amit M.
    Sinha, Avik
    Williams, Clay
    Johnson, Robert D.
    Outterson, Susan
    Shriver, Charles
    Liang, Carol
    2007 IEEE INTERNATIONAL CONFERENCE ON WEB SERVICES, PROCEEDINGS, 2007, : 110 - +
  • [50] EFSM-Based Test Case Generation: Sequence, Data, and Oracle
    Yang, Rui
    Chen, Zhenyu
    Zhang, Zhiyi
    Xu, Baowen
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2015, 25 (04) : 633 - 667