Testing Program Segments to Detect Runtime Exceptions in Java']Java

被引:0
|
作者
Rao, Lei [1 ]
Liu, Shaoying [1 ]
Liu, Ai [1 ]
机构
[1] Hiroshima Univ, Grad Sch Adv Sci & Engn, Hiroshima 7398511, Japan
关键词
Fault Detection; Program Slicing; Software Testing; Runtime Exceptions;
D O I
10.1007/978-3-031-29476-1_8
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Runtime exceptions are difficult to be detected by static analysis tools and their occurrences in runtime often cause software systems to crash or unexcepted termination. Therefore, it is necessary to detect the existence of runtime exceptions in the program before it is executed. In this paper, we describe a novel program segment testing technique for detecting potential occurrences of runtime exceptions during the program construction process. Our testing technique is characterized by three steps. The first step is to determine the target program segment in which potential runtime exceptions may occur during the program execution. The second step is to form an appropriate environment to test the program segment by determining the values of the variables. The final step is to carry out the testing and determine whether the runtime exceptions will occur and will be handled properly during the system execution. This paper also presents a case study to demonstrate that the technique is effective.
引用
收藏
页码:93 / 105
页数:13
相关论文
共 50 条
  • [1] Fault Localization and Repair for Java']Java Runtime Exceptions
    Sinha, Saurabh
    Shah, Hina
    Goerg, Carsten
    Jiang, Shujuan
    Kim, Mijung
    Harrold, Mary Jean
    ISSTA 2009: INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, 2009, : 153 - 163
  • [2] Testing Java']Java Exceptions: an instrumentation technique
    Martins, Alexandre L.
    Hanazumi, Simone
    de Melo, Ana C. V.
    2014 38TH ANNUAL IEEE INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE WORKSHOPS (COMPSACW 2014), 2014, : 626 - 631
  • [3] Exercising Java']Java Exceptions Using Java']Java Pathfinder and Program Instrumentation
    Martins, Alexandre Locci
    Hanazumi, Simone
    de Melo, Ana C. V.
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2014, PT 1, 2014, 8579 : 671 - 682
  • [4] Testing java exceptions: An instrumentation technique
    Martins, Alexandre L.
    Hanazumi, Simone
    De Melo, Ana C.V.
    Proceedings - IEEE 38th Annual International Computers, Software and Applications Conference Workshops, COMPSACW 2014, 2014, : 626 - 631
  • [5] Q&A MAESTRO: Q&A Post Recommendation for Fixing Java']Java Runtime Exceptions
    Kimura, Yusuke
    Akazaki, Takumi
    Kikuchi, Shinji
    Mahajan, Sonal
    Prasad, Mukul R.
    2021 36TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING ASE 2021, 2021, : 1227 - 1231
  • [6] Students' Misconceptions of Java']Java Exceptions
    Rashkovits, Rami
    Lavy, Ilana
    KNOWLEDGE AND TECHNOLOGIES IN INNOVATIVE INFORMATION SYSTEMS, 2012, 129 : 1 - 21
  • [7] A core calculus for Java']Java exceptions
    Ancona, D
    Lagorio, G
    Zucca, E
    ACM SIGPLAN NOTICES, 2001, 36 (11) : 16 - 30
  • [8] Better performance with exceptions in Java']Java
    Orchard, D
    BYTE, 1998, 23 (03): : 53 - 54
  • [9] The KaffeOS Java']Java runtime system
    Back, G
    Hsieh, WC
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2005, 27 (04): : 583 - 630
  • [10] Advanced Runtime Adaptation for Java']Java
    Villazon, Alex
    Binder, Walter
    Ansaloni, Danilo
    Moret, Philippe
    ACM SIGPLAN NOTICES, 2010, 45 (02) : 85 - 94