A Modified Similarity Metric for Unit Testing of Object-Oriented Software Based on Adaptive Random Testing

被引:0
|
作者
Chen, Jinfu [1 ]
Kudjo, Patrick Kwaku [1 ]
Zhang, Zufa [1 ]
Su, Chenfei [1 ]
Guo, Yuchi [1 ]
Huang, Rubing [1 ]
Song, Heping [1 ]
机构
[1] Jiangsu Univ, Sch Comp Sci & Commun Engn, 301 Xuefu Rd, Zhenjiang, Jiangsu, Peoples R China
基金
中国国家自然科学基金;
关键词
Adaptive random testing; object-oriented software; object distance; unit testing; method parameter; PROGRAMS;
D O I
10.1142/S0218194019500244
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Finding an effective method for testing object-oriented software (OOS) has proven elusive in the software community due to the rapid development of object-oriented programming (OOP) technology. Although significant progress has been made by previous studies, challenges still exist in relation to the object distance measurement of OOS using Adaptive Random Testing (ART). This is partly due to the unique features of OOS such as encapsulation, inheritance and polymorphism. In a previous work, we proposed a new similarity metric called the Object and Method Invocation Sequence Similarity (OMISS) metric to facilitate multi-class level testing using ART. In this paper, we broaden the set of models in the metric (OMISS) by considering the method parameter and adding the weight in the metric to develop a new distance metric to improve unit testing of OOS. We used the new distance metric to calculate the distance between the set of objects and the distance between the method sequences of the test cases. Additionally, we integrate the new metric in unit testing with ART and applied it to six open source subject programs. The experimental result shows that the proposed method with method parameter considered in this study is better than previous methods without the method parameter in the case of the single method. Our finding further shows that the proposed unit testing approach is a promising direction for assisting software engineers who seek to improve the failure-detection effectiveness of OOS testing.
引用
收藏
页码:577 / 606
页数:30
相关论文
共 50 条
  • [1] ARTOO: Adaptive Random Testing for Object-Oriented Software
    Ciupa, Ilinca
    Leitner, Andreas
    Oriol, Manuel
    Meyer, Bertrand
    ICSE'08 PROCEEDINGS OF THE THIRTIETH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 2008, : 71 - 80
  • [2] A cost-effective adaptive random testing algorithm for object-oriented software testing
    Zhou, Yue
    Wang, Xiujun
    Guo, Shu
    Wen, Yi
    He, Jingsha
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2021, 41 (03) : 4415 - 4423
  • [3] Object-oriented software testing and metric in Z specification
    Chung, CM
    Shih, TK
    Wang, CC
    INFORMATION SCIENCES, 1997, 98 (1-4) : 175 - 202
  • [4] OBJECT-ORIENTED SOFTWARE TESTING
    BINDER, RV
    COMMUNICATIONS OF THE ACM, 1994, 37 (09) : 28 - 29
  • [5] A Testing Method for Object-oriented Program based on Adaptive Random Testing with Variable Probability
    Lv, Tianxiang
    Bao, Qihao
    Chen, Haibo
    Zhang, Chi
    2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 1155 - 1156
  • [6] OBJECT-ORIENTED UNIT TESTING
    FIEDLER, SP
    HEWLETT-PACKARD JOURNAL, 1989, 40 (02): : 69 - 74
  • [7] A Formal Model of Similarity Testing for Inheritance in Object-Oriented Software
    Benlhachmi, Khalid
    Benattou, Mohammed
    2012 COLLOQUIUM ON INFORMATION SCIENCE AND TECHNOLOGY (CIST'12), 2012, : 38 - 42
  • [8] Using evolutionary algorithms for the unit testing of object-oriented software
    Wappler, Stefan
    Lammermann, Frank
    GECCO 2005: GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, VOLS 1 AND 2, 2005, : 1053 - 1060
  • [9] Study of Integrating Random and Symbolic Testing for Object-Oriented Software
    Dimjasevic, Marko
    Howar, Falk
    Luckow, Kasper
    Rakamari, Zvonimir
    INTEGRATED FORMAL METHODS, IFM 2018, 2018, 11023 : 89 - 109
  • [10] Testing object-oriented software: a survey
    RBSC Corp, Chicago, United States
    Software Testing Verification and Reliability, 1996, 6 (3-4) : 125 - 252