Lune

ICSE2023Top-tier venue

Badge: Prioritizing UI Events with Hierarchical Multi-Armed Bandits for Automated UI Testing

Dezhi Ran, Hao Wang, Wenyu Wang, Tao Xie

Abstract

To assure high quality of mobile applications (apps for short), automated UI testing triggers events (associated with UI elements on app UIs) without human intervention, aiming to maximize code coverage and find unique crashes. To achieve high test effectiveness, automated UI testing prioritizes a UI event based on its exploration value (e.g., the increased code coverage of future exploration rooted from the UI event). Various strategies have been proposed to estimate the exploration value of a UI event without considering its exploration diversity (reflecting the variance of covered code entities achieved by explorations rooted from this UI event across its different triggerings), resulting in low test effectiveness, especially on complex mobile apps. To address the preceding problem, in this paper, we propose a new approach named Badge to prioritize UI events considering both their exploration values and exploration diversity for effective automated UI testing. In particular, we design a hierarchical multi-armed bandit model to effectively estimate the exploration value and exploration diversity of a UI event based on its historical explorations along with historical explorations rooted from UI events in the same UI group. We evaluate Badge on 21 highly popular industrial apps widely used by previous related work. Experimental results show that Badge outperforms state-of-the-art/practice tools with 18%-146% relative code coverage improvement and finding 1.19-5.20 × unique crashes, demonstrating the effectiveness of Badge. Further experimental studies confirm the benefits brought by Badge's individual algorithms.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Vet: identifying and avoiding UI exploration tarpits cites An infrastructure approach to improving effectiveness of Android UI testing tools
  • Vet: identifying and avoiding UI exploration tarpits cites Time-travel testing of Android apps
  • Navigating Mobile Testing Evaluation: A Comprehensive Statistical Analysis of Android GUI Testing Metrics cites Reinforcement learning based curiosity-driven testing of Android applications
  • Navigating Mobile Testing Evaluation: A Comprehensive Statistical Analysis of Android GUI Testing Metrics cites Time-travel testing of Android apps
  • Navigating Mobile Testing Evaluation: A Comprehensive Statistical Analysis of Android GUI Testing Metrics cites Benchmarking automated GUI testing for Android against real-world bugs
  • Benchmarking automated GUI testing for Android against real-world bugs cites Reinforcement learning based curiosity-driven testing of Android applications
  • Benchmarking automated GUI testing for Android against real-world bugs cites Time-travel testing of Android apps
  • Guardian: A Runtime Framework for LLM-Based UI Exploration cites An infrastructure approach to improving effectiveness of Android UI testing tools
  • Guardian: A Runtime Framework for LLM-Based UI Exploration cites Reinforcement learning based curiosity-driven testing of Android applications
  • Guardian: A Runtime Framework for LLM-Based UI Exploration cites Vet: identifying and avoiding UI exploration tarpits
  • Guardian: A Runtime Framework for LLM-Based UI Exploration cites Time-travel testing of Android apps
  • TaOPT: Tool-Agnostic Optimization of Parallelized Automated Mobile UI Testing cites An infrastructure approach to improving effectiveness of Android UI testing tools
  • TaOPT: Tool-Agnostic Optimization of Parallelized Automated Mobile UI Testing cites Reinforcement learning based curiosity-driven testing of Android applications
  • TaOPT: Tool-Agnostic Optimization of Parallelized Automated Mobile UI Testing cites Vet: identifying and avoiding UI exploration tarpits
  • TaOPT: Tool-Agnostic Optimization of Parallelized Automated Mobile UI Testing cites Guardian: A Runtime Framework for LLM-Based UI Exploration
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Code Repair with LLMs gives an Exploration-Exploitation TradeoffHao Tang, Keya Hu, Jin Zhou, Sicheng Zhong et al.NeurIPS 2024 · 85 citations
  2. Guardian: A Runtime Framework for LLM-Based UI ExplorationDezhi Ran, Hao Wang, Zihe Song, Mengzhou Wu et al.ISSTA 2024 · 13 citations
  3. GUIPilot: A Consistency-Based Mobile GUI Testing Approach for Detecting Application-Specific BugsRuofan Liu, Xiwen Teoh, Yun Lin, Guanjie Chen et al.ISSTA 2025 · 5 citations
  4. Navigating Mobile Testing Evaluation: A Comprehensive Statistical Analysis of Android GUI Testing MetricsYuanhong Lan, Yifei Lu, Minxue Pan, Xuandong LiASE 2024 · 4 citations
  5. TaOPT: Tool-Agnostic Optimization of Parallelized Automated Mobile UI TestingDezhi Ran, Zihe Song, Wenyu Wang, Wei Yang et al.ASPLOS 2025 · 2 citations

Builds on7

  1. Reinforcement learning based curiosity-driven testing of Android applicationsMinxue Pan, An Huang, Guoxin Wang, Tian Zhang et al.ISSTA 2020 · 166 citations
  2. Time-travel testing of Android appsZhen Dong, Marcel Böhme, Lucia Cojocaru, Abhik RoychoudhuryICSE 2020 · 104 citations
  3. Benchmarking automated GUI testing for Android against real-world bugsTing Su, Jue Wang, Zhendong SuFSE 2021 · 77 citations
  4. Vet: identifying and avoiding UI exploration tarpitsWenyu Wang, Wei Yang, Tianyin Xu, Tao XieFSE 2021 · 35 citations
  5. An infrastructure approach to improving effectiveness of Android UI testing toolsWenyu Wang, Wing Lam, Tao XieISSTA 2021 · 33 citations

Related papers

  1. Automata-Based Trace Analysis for Aiding Diagnosing GUI Testing Tools for AndroidEnze Ma, Shan Huang, Weigang He, Ting Su et al.FSE 2023 · 3 citations
  2. From Suspicious Signals to Crashes: Guiding Bug-Driven GUI Testing via Code-Inspired TracingMengzhuo Chen, Zhe Liu, Chunyang Chen, Junjie Wang et al.FSE 2026
  3. Deeply Reinforcing Android GUI Testing with Deep Reinforcement LearningYuanhong Lan, Yifei Lu, Zhong Li, Minxue Pan et al.ICSE 2024 · 21 citations
  4. Mobile Bug Report Reproduction via Global Search on the App UI ModelZhaoxu Zhang, Fazle Mohammed Tawsif, Komei Ryu, Tingting Yu et al.FSE 2024 · 4 citations
  5. Mobile Application Coverage: The 30% Curse and Ways ForwardFaridah Akinotcho, Lili Wei, Julia RubinICSE 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines