Int J Performability Eng ›› 2021, Vol. 17 ›› Issue (11): 907-917.doi: 10.23940/ijpe.21.11.p1.907917

    Next Articles

Testing Program Segments to Detect Software Faults during Programming

Lei Rao, Shaoying Liu*, and Ai Liu   

  1. Hiroshima University, Hiroshima, 739-8511, Japan
  • Submitted on ; Revised on ; Accepted on
  • Contact: *E-mail address:

Abstract: Fault detection is a process of quality assurance which aims to identify where a fault has occurred and pinpoint the type of fault. However, in the field of software engineering, researchers mainly focus on statically or dynamically analyzing faults or vulnerabilities after the program is completed, and there are few works proposed to detect hidden faults that can only be discovered during program execution during the programming process. In this paper, we propose an automatic fault detection technology called Program Segment Testing (PST) based on the idea of Human-Machine Pair Programming (HMPP), which can automatically detect program segments during the programming process and give prompts when there are vulnerabilities or faults that trigger runtime exceptions. First, we introduce some preliminary definitions and notations that are used in our technology. Then, we use the array index overflow exception as a case to introduce the PST in detail, point out the issues that need to be resolved in order to complete this technology and the corresponding solutions.

Key words: program segment testing, fault detection, runtime exception, segmenting criterion, segmentation rule