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 条
  • [21] Automated test generation from specifications based on formal description techniques
    Chin, BM
    Choe, YH
    Kim, SU
    Jung, JI
    ETRI JOURNAL, 1997, 19 (04) : 363 - 388
  • [22] Mobile agent-based regression test case generation using model and formal specifications
    Arora, Pardeep Kumar
    Bhatia, Rajesh
    IET SOFTWARE, 2018, 12 (01) : 30 - 40
  • [23] Automatic Conformance test generation for protocols specified in EFSM
    Xu, Jun
    Shu, Ting
    Lai, Sien
    Jia, Yubo
    AUTOMATION EQUIPMENT AND SYSTEMS, PTS 1-4, 2012, 468-471 : 519 - 522
  • [24] Formal firewall conformance testing: an application of test and proof techniques
    Brucker, Achim D.
    Bruegger, Lukas
    Wolff, Burkhart
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2015, 25 (01): : 34 - 71
  • [25] Automatic test generation from interprocedural specifications
    Constant, Camille
    Jeannet, Bertrand
    Jeron, Thierry
    TESTING OF SOFTWARE AND COMMUNICATING SYSTEMS, PROCEEDINGS, 2007, 4581 : 41 - +
  • [26] Conformance Testing Based on UML State Machines Automated Test Case Generation, Execution and Evaluation
    Seifert, Dirk
    FORMAL METHODS AND SOFTWARE ENGINEERING, PROCEEDINGS, 2008, 5256 : 45 - 65
  • [27] Test case generation from formal specifications on the example of train control systems
    Hörste, MMZ
    Schnieder, E
    Schulz, HM
    COMPUTERS IN RAILWAYS VII, 2000, 7 : 117 - 126
  • [28] An Approach to Automatic Test Case Generation for Unit Testing
    Liu, Pan
    Xu, Zhenning
    Ai, Jun
    2018 IEEE 18TH INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C), 2018, : 545 - 552
  • [29] Adaptive testing, oracle generation, and test case ranking for web services
    Tsai, WT
    Chen, Y
    Paul, R
    Huang, H
    Zhou, XY
    Wei, X
    PROCEEDINGS OF THE 29TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, 2005, : 101 - 106
  • [30] A test sequence generation method for protocol conformance testing
    Zhang X.
    Yang M.
    Luo W.
    Geng G.
    Gaojishu Tongxin/Chinese High Technology Letters, 2011, 21 (10): : 1034 - 1041