Test Oracle Strategies for Model-Based Testing

被引:40
|
作者
Li, Nan [1 ]
Offutt, Jeff [2 ]
机构
[1] Medidata Solut, Div Res & Dev, New York, NY 10014 USA
[2] George Mason Univ, Fairfax, VA 22030 USA
关键词
Test oracle; RIPR model; test oracle strategy; test automation; subsumption; model-based testing; MUTATION;
D O I
10.1109/TSE.2016.2597136
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Testers use model-based testing to design abstract tests from models of the system's behavior. Testers instantiate the abstract tests into concrete tests with test input values and test oracles that check the results. Given the same test inputs, more elaborate test oracles have the potential to reveal more failures, but may also be more costly. This research investigates the ability for test oracles to reveal failures. We define ten new test oracle strategies that vary in amount and frequency of program state checked. We empirically compared them with two baseline test oracle strategies. The paper presents several main findings. (1) Test oracles must check more than runtime exceptions because checking exceptions alone is not effective at revealing failures. (2) Test oracles do not need to check the entire output state because checking partial states reveals nearly as many failures as checking entire states. (3) Test oracles do not need to check program states multiple times because checking states less frequently is as effective as checking states more frequently. In general, when state machine diagrams are used to generate tests, checking state invariants is a reasonably effective low cost approach to creating test oracles.
引用
收藏
页码:372 / 395
页数:24
相关论文
共 50 条
  • [41] Model Learning and Model-Based Testing
    Aichernig, Bernhard K.
    Mostowski, Wojciech
    Mousavi, Mohammad Reza
    Tappler, Martin
    Taromirad, Masoumeh
    MACHINE LEARNING FOR DYNAMIC SOFTWARE ANALYSIS: POTENTIALS AND LIMITS, 2018, 11026 : 74 - 100
  • [42] Strategies in model-based diagnosis
    Froehlich, Peter
    Nejdl, Wolfgang
    Schroeder, Michael
    1998, Kluwer Academic Publishers, Dordrecht, Netherlands (20) : 1 - 2
  • [43] Model-based testing in practice
    Pretschner, A
    FM 2005: FORMAL METHODS, PROCEEDINGS, 2005, 3582 : 537 - 541
  • [44] Model-based testing as a service
    Herbold, Steffen
    Hoffmann, Andreas
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2017, 19 (03) : 271 - 279
  • [45] Model-Based Testing of Obligations
    Rubab, Iram
    Ali, Shaukat
    Briand, Lionel
    LeTraon, Yves
    2014 14TH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE (QSIC 2014), 2014, : 1 - 10
  • [46] Model-Based Flight Testing
    de Mendonca, Celso Braga
    da Silva, Edmar Thomaz
    Curvo, Marcelo
    Trabasso, Luis Gonzaga
    JOURNAL OF AIRCRAFT, 2013, 50 (01): : 176 - 186
  • [47] Compositionality in Model-Based Testing
    van Cuyck, Gijs
    van Arragon, Lars
    Tretmans, Jan
    TESTING SOFTWARE AND SYSTEMS, ICTSS 2023, 2023, 14131 : 202 - 218
  • [48] The role of model-based testing
    Utting, Mark
    VERIFIED SOFTWARE: THEORIES, TOOLS, EXPERIMENTS, 2008, 4171 : 510 - 517
  • [49] Model-Based Security Testing
    Schieferdecker, Ina
    Grossmann, Juergen
    Schneider, Martin
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2012, (80): : 1 - 12
  • [50] Model-based testing as a service
    Steffen Herbold
    Andreas Hoffmann
    International Journal on Software Tools for Technology Transfer, 2017, 19 : 271 - 279