[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-496398-105":59,"doc-detail-496398-en":130,"doc-similar-496398":162},{"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","time-travel-testing-of-android-apps","Time-travel Testing of Android Apps","","Android testing tools generate input-event sequences to exercise the app-under-test state space. Existing search-based methods evolve event-sequence populations to maximize objectives such as code coverage, assuming mutations of fit sequences yield even fitter ones. Evolution can be ineffective because app states that produced original fitness may be unreachable after mutation, truncating the state-space path. The paper proposes evolving discoverable states and resuming testing from them via time travel, implemented in TimeMachine based on Monkey.",{"@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":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/time-travel-testing-of-android-apps/496398/",{"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/time-travel-testing-of-android-apps/496398.png","ImageObject",300,407,{"name":92,"@type":93},"Quinn Holloway","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why can mutation-based evolution of Android event sequences be ineffective?","Question",{"text":112,"@type":113},"Because app states that contributed to the original sequence’s fitness may not be reached after mutation, truncating the original path in the state space.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is the core idea of time-travel testing?",{"text":117,"@type":113},"Evolve and resume testing from states that have been captured upon discovery, then generate events on fit program states to reach even fitter states.",{"name":119,"@type":110,"acceptedAnswer":120},"How does TimeMachine relate to Monkey, and what did experiments show?",{"text":121,"@type":113},"TimeMachine implements time-travel testing in a time-travel enabled version of Monkey; experiments on many open- and closed-source Android apps show better coverage and more crashes found than Sapienz and Stoat.","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},496398,1791388606,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":19,"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},2336474466712,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Time-travel Testing of Android Apps  \nZhen Dong  \nNational University of Singapore [zhen.dong@comp.nus.edu.sg](zhen.dong@comp.nus.edu.sg)  \nMarcel Böhme Monash University, Australia [marcel.boehme@monash.edu](marcel.boehme@monash.edu)  \nLucia Cojocaru  \nPolitehnica University of Bucharest [lucia.cojocaru@stud.acs.upb.ro](lucia.cojocaru@stud.acs.upb.ro)  \nAbhik Roychoudhury  \nNational University of Singapore [abhik@comp.nus.edu.sg](abhik@comp.nus.edu.sg)  \nABSTRACT  \nAndroid testing tools generate sequences of input events to exercise the state space of the app-under-test. Existing search-based techniques systematically evolve a population of event sequences so as to achieve certain objectives such as maximal code coverage. The hope is that the mutation of fit event sequences leads to the generation of even fitter sequences. However, the evolution of event sequences may be ineffective. Our key insight is that pertinent app states which contributed to the original sequence’s fitness may not be reached by a mutated event sequence. The original path through the state space is truncated at the point of mutation.  \nIn this paper, we propose instead to evolve a population of states which can be captured upon discovery and resumed when needed. The hope is that generating events on a fit program state leads to the transition to even fitter states. For instance, we can quickly deprioritize testing the main screen state which is visited by most event sequences, and instead focus our limited resources on testing more interesting states that are otherwise difficult to reach.  \nWe call our approach time-travel testing because of this ability to travel back to any state that has been observed in the past. We implemented time-travel testing into TimeMachine, a time-travel enabled version of the successful, automated Android testing tool Monkey. In our experiments on a large number of open-and closed source Android apps, TimeMachine outperforms the state-of-theart search-based/model-based Android testing tools Sapienz and Stoat, both in terms of coverage achieved and crashes found.  \n1 INTRODUCTION  \nAndroid app testing has been gaining in importance. In 2020, thereis a smart phone for every third person (2.9 billion users) while app revenue will double from 2016 (US$ 88 to 189 billion) .1 The number of bugs and vulnerabilities in mobile apps are growing. In 2016, 24.7% of mobile apps contained at least one high-risk security flaw [1] . The Android testing market is also expected to double in five years from US$ 3 .21 billion in 2016 to US$ 6 .35 billion in 2021 .2  \n1[https://www.statista.com/statistics/269025/worldwide-mobile-app-revenue-forecast/](https://www.statista.com/statistics/269025/worldwide-mobile-app-revenue-forecast/)  \n2[https://www.businesswire.com/news/home/20170217005501/en/](https://www.businesswire.com/news/home/20170217005501/en/)  \nPermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions [from permissions@acm.org](from permissions@acm.org).  \nICSE ’20, May 23–29, 2020, Seoul, Republic of Korea © 2020 Association for Computing Machinery.  \nACM ISBN 978-1-4503-7121-6/20/05. . . $15.00 [https://doi.org/10.1145/3377811.3380402](https://doi.org/10.1145/3377811.3380402)  \n(a) Excerpt of the map of Maridia where pink marks explored rooms.  \n(b) Samus discovering the Spazer weapon  \nFigure 1: Super Metroid on an Android Emulator  \nTo illustrate the challenges of existing Android testing tools, take for example Super Metroid (Fig. 1), one of the b","cbCaieAbR9LCDII5","https://ap.wps.com/l/cbCaieAbR9LCDII5","pdf",2680635,12,"English","# Abstract\n# Introduction\n## Android app testing motivation\n## Limitations of long random event sequences\n## Limitations of search-based event-sequence evolution","[{\"question\":\"Why can mutation-based evolution of Android event sequences be ineffective?\",\"answer\":\"Because app states that contributed to the original sequence’s fitness may not be reached after mutation, truncating the original path in the state space.\"},{\"question\":\"What is the core idea of time-travel testing?\",\"answer\":\"Evolve and resume testing from states that have been captured upon discovery, then generate events on fit program states to reach even fitter states.\"},{\"question\":\"How does TimeMachine relate to Monkey, and what did experiments show?\",\"answer\":\"TimeMachine implements time-travel testing in a time-travel enabled version of Monkey; experiments on many open- and closed-source Android apps show better coverage and more crashes found than Sapienz and Stoat.\"}]","Time-travel Testing of Android Apps | PDF",1790931720,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/05636996df455522e6fd74555b1ada00.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c716b7e4803ee6ba9a9253d1fc5d0223.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/4ae49fe003b5206c305f079c89646b29.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/66a320f6344d23a7ec16dee9ef5838fd.webp",980,1268,{"list":163,"token":66},[164,170,176,182,188,194,201,207,213,219],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":39,"category_name":30,"create_tm":169},537757,"Infrastructure Trial Readiness Guide - Pearson Support and Tech Setup - IL 2.24","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229943455728/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=Fl8HDjg9ju4JQ8EkRTm6OnJpjrg%3D","infrastructure-trial-readiness-guide-pearson-support-and-tech-setup-il-224",1791605326,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":81,"category_name":30,"create_tm":175},696626,"Salesforce Personalization Implementation - How to implement Salesforce Personalization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009769941/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=CvUuv08AnV0POdpsBDfJdehMvY0%3D","salesforce-personalization-implementation-how-to-implement-salesforce-personalization",1794433912,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":44,"category_name":30,"create_tm":181},665483,"Information Systems Analysis and Design - State and Activity Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983495517/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=q1p5fPywg%2Fb9kHuBwoI4bbhM0RM%3D","information-systems-analysis-and-design-state-and-activity-diagrams",1793304474,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":52,"category_name":30,"create_tm":187},672791,"Cisco Live APJC - Transform your Network Automation Apps with GenAI","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229989872459/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=mNqs5L%2BHlvc5eUIPkoTlA7fpsRw%3D","cisco-live-apjc-transform-your-network-automation-apps-with-genai",1793608164,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":34,"category_name":30,"create_tm":193},665507,"Chapter 16 - State Diagrams - Introduction to State Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983495923/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=7jDImfFGBhe4PdJZm9LRRCLULmA%3D","chapter-16-state-diagrams-introduction-to-state-diagrams",1793304559,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":30,"create_tm":200},83545,"From World Models to World Action Models: A Concise Tutorial for Robotics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808865621/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=70ZA6%2BIT288CjeSXozXSx7IsRSQ%3D","from-world-models-to-world-action-models-a-concise-tutorial-for-robotics",33,1784188729,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":44,"category_name":30,"create_tm":206},655599,"State Diagrams - State and Activity Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286048/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=BytGYUXG4st2tI3gUimuv1Gz4xU%3D","state-diagrams-state-and-activity-diagrams",1792962838,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":34,"category_name":30,"create_tm":212},496516,"Automotive Technology - Program Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929892688/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=LlpWSl1HoRptKHzzdWA16%2Bzjlos%3D","automotive-technology-program-overview",1790933909,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":24,"category_name":30,"create_tm":218},640876,"Bosch - ICP-SOL2-P/ICP-SOL3-P Control Panel - en User's Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229970420427/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=1t3OfxaSg3EJRhboepw7MkrgBRU%3D","bosch-icp-sol2-picp-sol3-p-control-panel-en-users-guide",1792712001,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":139,"category_name":30,"create_tm":224},183610,"CS401-Deadlock Simulation Lab-FINAL","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229877964799/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796257019&Signature=PCzfzeLceshn6bPoCkI3arOTpOg%3D","cs401-deadlock-simulation-lab-final",1788353336]