Experiments with Interactive Fault Localization Using Simulated and Real Users
Autor: | László Vidács, Bela Vancsics, Gergo Balogh, Arpad Beszedes, Ferenc Horváth, Tibor Gyimóthy |
---|---|
Rok vydání: | 2020 |
Předmět: |
Statement (computer science)
Exploit Computer science Process (computing) Code coverage 020207 software engineering 02 engineering and technology Fault (power engineering) computer.software_genre Test case 0202 electrical engineering electronic engineering information engineering Code (cryptography) A priori and a posteriori 020201 artificial intelligence & image processing Data mining computer |
Zdroj: | ICSME |
DOI: | 10.1109/icsme46990.2020.00036 |
Popis: | Fault localization is considered a difficult and time consuming activity. However, tool support for automated fault localization is still limited because state-of-the-art algorithms often fail to provide efficient help to the user. They usually offer a ranked list of suspicious code elements, but the fault is not guaranteed to be found among the highest ranks. In Spectrum-Based Fault Localization (SBFL) – which uses code coverage information of test cases and their execution outcomes to calculate the ranks –, the developer has to investigate several locations before finding the faulty code element. Yet, all the knowledge she a priori has or acquires during this process is not reused by the SBFL tool. We propose an approach in which the developer interacts with the SBFL algorithm by giving feedback on the elements of the prioritized list. We exploit contextual knowledge of the user about the next item in the ranked list (e. g., a statement), with which larger code entities (e. g., a whole function) can be repositioned in their suspiciousness. First, we evaluated the approach using simulated users incorporating two types of imperfections, their knowledge and confidence levels. On SIR and Defects4J, results showed notable improvements in fault localization efficiency, even with strong user imperfections. We then empirically evaluated the effectiveness of the approach with real users, which also showed promising results. |
Databáze: | OpenAIRE |
Externí odkaz: |