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 条
  • [21] Combinatorial testing and model-based testing
    Hierons, Robert M.
    Xie, Tao
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2022, 32 (02):
  • [22] Model-based testing for concurrent systems: unfolding-based test selection
    de Len, Hernan Ponce
    Haar, Stefan
    Longuet, Delphine
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2016, 18 (03) : 305 - 318
  • [23] An EFSM-Based Test Data Generation Approach in Model-Based Testing
    Mohd-Shafie, Muhammad Luqman
    Kadir, Wan Mohd Nasir Wan
    Khatibsyarbini, Muhammad
    Isa, Mohd Adham
    Ghani, Israr
    Ruslai, Husni
    CMC-COMPUTERS MATERIALS & CONTINUA, 2022, 71 (03): : 4337 - 4354
  • [24] Model-Based Testing and Some Steps towards Test-Based Modelling
    Tretmans, Jan
    FORMAL METHODS FOR ETERNAL NETWORKED SOFTWARE SYSTEMS, SFM 2011, 2011, 6659 : 297 - 326
  • [25] Model-based testing for concurrent systems: unfolding-based test selection
    Hernán Ponce de León
    Stefan Haar
    Delphine Longuet
    International Journal on Software Tools for Technology Transfer, 2016, 18 : 305 - 318
  • [26] Model-Based Strategies for Reducing the Complexity of Statistically Generated Test Suites
    Dulz, Winfried
    SOFTWARE QUALITY: INCREASING VALUE IN SOFTWARE AND SYSTEMS DEVELOPMENT, 2013, 133 : 89 - 103
  • [27] Achieving Scalable Model-Based Testing Through Test Case Diversity
    Hemmati, Hadi
    Arcuri, Andrea
    Briand, Lionel
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2013, 22 (01)
  • [28] Complementary test selection criteria for model-based testing of security components
    Julien Botella
    Jean-François Capuron
    Frédéric Dadeau
    Elizabeta Fourneret
    Bruno Legeard
    Florence Schadle
    International Journal on Software Tools for Technology Transfer, 2019, 21 : 425 - 448
  • [29] Complementary test selection criteria for model-based testing of security components
    Botella, Julien
    Capuron, Jean-Francois
    Dadeau, Frederic
    Fourneret, Elizabeta
    Legeard, Bruno
    Schadle, Florence
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2019, 21 (04) : 425 - 448
  • [30] Reducing the Cost of Model-Based Testing through Test Case Diversity
    Hemmati, Hadi
    Arcuri, Andrea
    Briand, Lionel
    TESTING SOFTWARE AND SYSTEMS, 2010, 6435 : 63 - 78