[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-496225-105":59,"doc-detail-496225-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","badge-prioritizing-ui-events-with-hierarchical-multi-armed-bandits-for-automated-ui-testing","BADGE - Prioritizing UI Events with Hierarchical Multi-Armed Bandits for Automated UI Testing","","Automated UI testing aims to maximize mobile app code coverage and expose unique crashes by triggering UI events without human intervention. Existing event-prioritization methods often estimate each event’s exploration value without accounting for exploration diversity, leading to reduced effectiveness on complex apps. This paper proposes BADGE, a hierarchical multi-armed bandit model that estimates both exploration value and exploration diversity using historical explorations. Evaluation on 21 popular industrial Android apps shows 18%-146% relative code coverage gains and 1.19-5.20x more unique crashes.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/badge-prioritizing-ui-events-with-hierarchical-multi-armed-bandits-for-automated-ui-testing/496225/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/badge-prioritizing-ui-events-with-hierarchical-multi-armed-bandits-for-automated-ui-testing/496225.png","ImageObject",300,407,{"name":92,"@type":93},"Lucas Martin","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-17","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does BADGE address in automated UI testing?","Question",{"text":112,"@type":113},"BADGE addresses low test effectiveness caused by prioritization methods that estimate UI event exploration value without considering exploration diversity, especially in complex mobile apps.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does BADGE model the prioritization of UI events?",{"text":117,"@type":113},"BADGE uses a hierarchical multi-armed bandit model to estimate both exploration value and exploration diversity of a UI event based on historical explorations and historical explorations within the same UI group.",{"name":119,"@type":110,"acceptedAnswer":120},"What experimental evidence shows BADGE’s effectiveness?",{"text":121,"@type":113},"On 21 popular industrial apps, BADGE achieves 18%-146% relative code coverage improvement and finds 1.19-5.20x more unique crashes than state-of-the-art/practice tools.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},496225,1791473670,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":41,"preview_page_count":19,"preview_urls":145},8796095360427,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","BADGE: Prioritizing UI Events with Hierarchical Multi-Armed Bandits for Automated UI Testing  \nDezhi Ran  \nSchool of Computer Science Peking University, China [dezhiran@pku.edu.cn](dezhiran@pku.edu.cn)  \nHao Wang  \nSchool of EECS Peking University, China [tony.wanghao@stu.pku.edu.cn](tony.wanghao@stu.pku.edu.cn)  \nWenyu Wang  \nUniversity of Illinois Urbana-Champaign, USA [wenyu2@illinois.edu](wenyu2@illinois.edu)  \nTao Xie§  \nSchool of Computer Science Peking University, China [taoxie@pku.edu.cn](taoxie@pku.edu.cn)  \nAbstract—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 stateof-the-art/practice tools with 18%-146% relative code coverage improvement and finding 1.19-5.20x unique crashes, demonstrating the effectiveness of BADGE. Further experimental studies confirm the benefits brought by BADGE’s individual algorithms.  \nIndex Terms—GUI testing, mobile testing, mobile app, Android, multi-armed bandits, reinforcement learning  \nI. INTRODUCTION  \nMobile applications (apps in short) have been an indispensable part of people’s daily work and life [1] . The number of global smartphone users is estimated at 6.6 billion [2] in 2022 and users spend nearly 5 hours [3] on apps daily. Consequently, ensuring good user experiences has become unprecedentedly important for mobile app vendors. While manual UI testing is usually conducted to test complex app functionalities, it can be notoriously expensive and tedious to satisfy frequent and rapid shipments of mobile apps [4] .  \nTo alleviate the cost of manual UI testing, automated UI testing [5], [6], [7], [8], [9], [10], [11], [12], [13], [14],[15], [16], [17], [18], [19] requires no human intervention  \n§ Corresponding author.  \nand automatically selects UI events 1 to trigger based on their exploration values. In this paper, the exploration value of UI event e is denoted as the increased code coverage (e.g., activity coverage and method coverage) achieved by future exploration rooted from e (beyond the code coverage achieved during the exploration process before the triggering of e) in the directed acyclic activity transition graph [20] of the AUT. As shown in Figure 1, a click on the search tab element leads to searchrelated functionalities. The exploration value of this click event is the estimated increased code coverage from triggering this event and its subsequent UI events. Since the goal of automated UI testing is usually to maximize the coverage of the App Under Test (AUT for short), it is more desirable to trigger UI events estimated to result in more code coverage gain in future exploration, ideally having higher priorities over other UI events to be performed on ","cbCaitJuNfxMMyoS","https://ap.wps.com/l/cbCaitJuNfxMMyoS","pdf",962616,12,"English","# Abstract\n# Index Terms\n# Introduction\n## Background and Motivation\n## Related Approaches\n## Challenges in Industrial Apps","[{\"question\":\"What problem does BADGE address in automated UI testing?\",\"answer\":\"BADGE addresses low test effectiveness caused by prioritization methods that estimate UI event exploration value without considering exploration diversity, especially in complex mobile apps.\"},{\"question\":\"How does BADGE model the prioritization of UI events?\",\"answer\":\"BADGE uses a hierarchical multi-armed bandit model to estimate both exploration value and exploration diversity of a UI event based on historical explorations and historical explorations within the same UI group.\"},{\"question\":\"What experimental evidence shows BADGE’s effectiveness?\",\"answer\":\"On 21 popular industrial apps, BADGE achieves 18%-146% relative code coverage improvement and finds 1.19-5.20x more unique crashes than state-of-the-art/practice tools.\"}]","BADGE - Prioritizing UI Events with Hierarchical Multi-Armed Bandits for Automated UI Testing | PDF",1790929337,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/3d7b8dc859df7171ff72e2b809567fe6.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5e0c362e04c001c8a2f7a20dc0600ebc.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/46c84c50c5254514cc0055153424d92f.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/51fa150cc35d4283d8f1571729b6f9cf.webp",980,1268]