Skip to main navigation Skip to search Skip to main content

Context-aware bug reproduction for mobile apps

  • Yuchao Huang
  • , Junjie Wang
  • , Zhe Liu
  • , Song Wang
  • , Chunyang Chen
  • , Mingyang Li
  • , Qing Wang

Research output: Chapter in Book/Report/Conference proceeding › Conference Paper › Research › peer-review

Abstract

Bug reports are vital for software maintenance that allow the developers being informed of the problems encountered in the software. Before bug fixing, developers need to reproduce the bugs which is an extremely time-consuming and tedious task, and it is highly expected to automate this process. However, it is challenging to do so considering the imprecise or incomplete natural language described in reproducing steps, and the missing or ambiguous single source of information in GUI components. In this paper, we propose a context-aware bug reproduction approach ScopeDroid which automatically reproduces crashes from textual bug reports for mobile apps. It first constructs a state transition graph (STG) and extracts the contextual information of components. We then design a multi-modal neural matching network to derive the fuzzy matching matrix between all candidate GUI events and reproducing steps. With the STG and matching information, it plans the exploration path for reproducing the bug, and enriches the initial STG iteratively. We evaluate the approach on 102 bug reports from 69 popular Android apps, and it successfully reproduces 63.7% of the crashes, outper-forming the state-of-the-art baselines by 32.6% and 38.3%. We also evaluate the usefulness and robustness of ScopeDroid with promising results. Furthermore, to train the neural matching network, we develop a heuristic-based automated training data generation method, which can potentially motivate and facilitate other activities as user interface operations.

Original languageEnglish
Title of host publicationProceedings - 2023 IEEE/ACM 45th International Conference on Software Engineering, ICSE 2023
EditorsLori Pollock, Massimiliano Di Penta
Place of PublicationPiscataway NJ USA
PublisherIEEE, Institute of Electrical and Electronics Engineers
Pages2336-2348
Number of pages13
ISBN (Electronic)9781665457019
ISBN (Print)9781665457026
DOIs
Publication statusPublished - 2023
EventInternational Conference on Software Engineering 2023 - Melbourne, Australia
Duration: 14 May 2023 → 20 May 2023
Conference number: 45th
https://ieeexplore.ieee.org/xpl/conhome/10172484/proceeding (Proceedings)
https://conf.researchr.org/home/icse-2023 (Website)
https://ieeexplore.ieee.org/xpl/conhome/10449397/proceeding (ICSE-FoSE 2023 Proceedings)
https://ieeexplore.ieee.org/xpl/conhome/10172483/proceeding (ICSE-SEET 2023 Proceedings)
https://conf.researchr.org/track/icse-2023/icse-2023-NIER? (ICSE-NIER 2023 Proceedings)

Conference

ConferenceInternational Conference on Software Engineering 2023
Abbreviated titleICSE 2023
Country/TerritoryAustralia
CityMelbourne
Period14/05/23 → 20/05/23
Internet address

Cite this