Feedback-Directed Metamorphic Testing

被引:1
|
作者
Sun, Chang-Ai [1 ]
Dai, Hepeng [1 ]
Liu, Huai [2 ]
Chen, Tsong Yueh [2 ]
机构
[1] Univ Sci & Technol Beijing, 30 Xueyuan Rd, Beijing 100083, Peoples R China
[2] Swinburne Univ Technol, John St, Hawthorn, Vic 3122, Australia
基金
北京市自然科学基金; 中国国家自然科学基金; 澳大利亚研究理事会;
关键词
Metamorphic testing; metamorphic relation; test execution; feedback control; random testing; adaptive partition testing; PARTITION;
D O I
10.1145/3533314
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Over the past decade, metamorphic testing has gained rapidly increasing attention from both academia and industry, particularly thanks to its high efficacy on revealing real-life software faults in a wide variety of application domains. On the basis of a set of metamorphic relations among multiple software inputs and their expected outputs, metamorphic testing not only provides a test case generation strategy by constructing new (or follow-up) test cases from some original (or source) test cases, but also a test result verificationmechanism through checking the relationship between the outputs of source and follow-up test cases. Many efforts have been made to further improve the cost-effectiveness ofmetamorphic testing from different perspectives. Some studies attempted to identify "good" metamorphic relations, while other studies were focused on applying effective test case generation strategies especially for source test cases. In this article, we propose improving the cost-effectiveness of metamorphic testing by leveraging the feedback information obtained in the test execution process. Consequently, we develop a new approach, namely feedback-directed metamorphic testing, which makes use of test execution information to dynamically adjust the selection of metamorphic relations and selection of source test cases. We conduct an empirical study to evaluate the proposed approach based on four laboratory programs, one GNU program, and one industry program. The empirical results show that feedback-directed metamorphic testing can use fewer test cases and take less time than the traditional metamorphic testing for detecting the same number of faults. It is clearly demonstrated that the use of feedback information about test execution does help enhance the cost-effectiveness of metamorphic testing. Our work provides a new perspective to improve the efficacy and applicability of metamorphic testing as well as many other software testing techniques.
引用
收藏
页数:34
相关论文
共 50 条
  • [1] Feedback-Directed Differential Testing of Interactive Debuggers
    Lehmann, Daniel
    Pradel, Michael
    [J]. ESEC/FSE'18: PROCEEDINGS OF THE 2018 26TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2018, : 610 - 620
  • [2] Automatically Finding Performance Problems with Feedback-Directed Learning Software Testing
    Grechanik, Mark
    Fu, Chen
    Xie, Qing
    [J]. 2012 34TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2012, : 156 - 166
  • [3] Feedback-directed specialization of code
    Khan, Minhaj Ahmad
    [J]. COMPUTER LANGUAGES SYSTEMS & STRUCTURES, 2010, 36 (01) : 2 - 15
  • [4] Overcoming the challenges to feedback-directed optimization
    Smith, MD
    [J]. ACM SIGPLAN NOTICES, 2000, 35 (07) : 1 - 11
  • [5] Feedback-Directed Pipeline Parallelism
    Suleman, M. Aater
    Qureshi, Moinuddin K.
    Khubaib
    Patt, Yale N.
    [J]. PACT 2010: PROCEEDINGS OF THE NINETEENTH INTERNATIONAL CONFERENCE ON PARALLEL ARCHITECTURES AND COMPILATION TECHNIQUES, 2010, : 147 - 156
  • [6] Automatic Feedback-Directed Object Fusing
    Wimmer, Christian
    Moessenboeck, Hanspeter
    [J]. ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2010, 7 (02)
  • [7] FOREPOST: finding performance problems automatically with feedback-directed learning software testing
    Luo, Qi
    Nair, Aswathy
    Grechanik, Mark
    Poshyvanyk, Denys
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2017, 22 (01) : 6 - 56
  • [8] Feedback-directed random test generation
    Pacheco, Carlos
    Lahiri, Shuvendu K.
    Ernst, Michael D.
    Ball, Thomas
    [J]. ICSE 2007: 29TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2007, : 75 - +
  • [9] Aesthno: A feedback-directed optimization evaluation tool
    Berube, Paul
    Amaral, Jose Nelson
    [J]. ISPASS 2006: IEEE INTERNATIONAL SYMPOSIUM ON PERFORMANCE ANALYSIS OF SYSTEMS AND SOFTWARE, 2006, : 251 - +
  • [10] FOREPOST: finding performance problems automatically with feedback-directed learning software testing
    Qi Luo
    Aswathy Nair
    Mark Grechanik
    Denys Poshyvanyk
    [J]. Empirical Software Engineering, 2017, 22 : 6 - 56