arrow
Return

L′OP-ART: A linear-time adaptive random testing algorithm for object-oriented programs

delete2024-05-01
delete0
PRE
AI
陈锦富 (Jinfu Chen) *
J
Jingyi Chen
Z
Zhu, Lili
C
Chengying Mao
Q
Qihao Bao
R
Rubing Huang
DOI:10.1016/j.jss.2024.111970delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Object-oriented (OO) programming offers useful and desirable characteristics in the resulting code. These OO characteristics, however, demand an effective testing method. Adaptive random testing (ART) serves as an effective testing technique where test cases are distributed uniformly according to a proper metric for difference (distance) between test cases. Recently proposed object and method invocation sequence similarity (OMISS) distance metric was incorporated into a new ART algorithm (OMISS-ART) for testing OO software. Unfortunately, OMISS-ART's high effectiveness in finding faults comes at significantly higher computational overheads. To alleviate the problem, we present in this paper a linear -time ART algorithm called L ' OP- ART (Linear -time Object-oriented Program testing by ART) based on a lightweight OMISS metric. L ' OP-ART designs specific data structures that store information about executed test cases, thus, the differences between candidates and executed test cases can be obtained with reduced overheads. Empirical studies show that L ' OP-ART detects failures more effectively than random testing (RT), and has comparable fault-detection effectiveness to other ART algorithms for OO testing (according to the F-measure, or the expected number of test case executions required to find a failure). Furthermore, the test case generation overhead of L ' OP-ART is low, close to that of RT.
Keywords:
Object-oriented software testing
Random testing
Adaptive random testing
Testing effectiveness
Test case generation

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.4K
Citations:
8.4K

Organization

J
Jiangsu University
Scholars:
4.0W
Papers: 2.8W
Citations: 5.5W