Assessing and improving state-based class testing: A series of experiments

被引:61
|
作者
Briand, LC
Di Penta, M
Labiche, Y
机构
[1] Carleton Univ, Software Qual Engn Lab, Dept Syst & Comp Engn, Ottawa, ON K1S 5B6, Canada
[2] Univ Sannio, Res Ctr Software Technol, Dept Engn, I-82100 Benevento, Italy
基金
加拿大自然科学与工程研究理事会;
关键词
state-based testing; testing experimentation; UML statecharts; category partition;
D O I
10.1109/TSE.2004.79
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper describes an empirical investigation of the cost effectiveness of well-known state-based testing techniques for classes or clusters of classes that exhibit a state-dependent behavior. This is practically relevant as many object-oriented methodologies recommend modeling such components with statecharts which can then be used as a basis for testing. Our results, based on a series of three experiments, show that in most cases state-based techniques are not likely to be sufficient by themselves to catch most of the faults present in the code. Though useful, they need to be complemented with black-box, functional testing. We focus here on a particular technique, Category Partition, as this is the most commonly used and referenced black-box, functional testing technique. Two different oracle strategies have been applied for checking the success of test cases. One is a very precise oracle checking the concrete state of objects whereas the other one is based on the notion of state invariant (abstract states). Results show that there is a significant difference between them, both in terms of fault detection and cost. This is therefore an important choice to make that should be driven by the characteristics of the component to be tested, such as its criticality, complexity, and test budget.
引用
收藏
页码:770 / 793
页数:24
相关论文
共 50 条
  • [21] State-based maternal death reviews: assessing opportunities to alter outcomes
    Callaghan, William M.
    AMERICAN JOURNAL OF OBSTETRICS AND GYNECOLOGY, 2014, 211 (06) : 581 - 582
  • [22] State-based planning
    不详
    INDUCTIVE SYNTHESIS OF FUNCTIONAL PROGRAMS: UNIVERSAL PLANNING, FOLDING OF FINITE PROGRAMS, AND SCHEMA ABSTRACTION BY ANALOGICAL REASONING, 2003, 2654 : 13 - 54
  • [23] Event-Based Mutation Testing vs. State-Based Mutation Testing - An Experimental Comparison
    Belli, Fevzi
    Beyazit, Mutlu
    2011 35TH IEEE ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), 2011, : 650 - 655
  • [24] An automatic test case generator derived from state-based testing
    Tsai, BY
    Stobart, S
    Parrington, N
    Mitchell, I
    1998 ASIA PACIFIC SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 1998, : 270 - 277
  • [25] Enhance software reliability by combining state-based and data flow testing
    Chen, J
    Yang, A
    WORLD MULTICONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL 1, PROCEEDINGS: INFORMATION SYSTEMS DEVELOPMENT, 2001, : 354 - 359
  • [26] COMPARING AND IMPROVING THE SYNTHESIS OF STATE-BASED SPECIFICATIONS FROM SCENARIO-BASED SPECIFICATIONS
    Wang, Zhijian
    Li, Wenrui
    Zhang, Pengcheng
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2012, 22 (07) : 867 - 890
  • [27] Automated Transition from Use Cases to UML State Machines to Support State-Based Testing
    Yue, Tao
    Ali, Shaukat
    Briand, Lionel
    MODELLING FOUNDATIONS AND APPLICATIONS, 2011, 6698 : 115 - 131
  • [28] Social class and premature mortality among men: A method for state-based surveillance
    Barnett, E
    Armstrong, DL
    Casper, ML
    AMERICAN JOURNAL OF PUBLIC HEALTH, 1997, 87 (09) : 1521 - 1525
  • [29] State-based extension of CASL
    Baumeister, H
    Zamulin, A
    INTEGRATED FORMAL METHODS, PROCEEDINGS, 2000, 1945 : 3 - 24
  • [30] Designing fault injection experiments using state-based model to test a space software
    Ambrosio, Ana Maria
    Mattiello-Francisco, Fatima
    Santiago, Valdivino A., Jr.
    Silva, Wendell P.
    Martins, Eliane
    DEPENDABLE COMPUTING, PROCEEDINGS, 2007, 4746 : 170 - +