{"id":{"repo_id":"chalmers","oai_identifier":"oai:odr.chalmers.se:20.500.12380/311901"},"canonical_url":"https://search.ndltd.org/etd/chalmers/oai:odr.chalmers.se:20.500.12380/311901","repository":{"repo_id":"chalmers","name":"Chalmers University of Technology","base_url":"https://odr.chalmers.se/oai/request"},"display":{"title":"Shrinkdroid: A Property-Based Testing Tool for Android Applications using Dynamic Element Detection and Test Case Minimisation","abstract":"This thesis presents Shrinkdroid, a property-based testing tool for automated GUI testing of Android applications. Existing Android GUI testing approaches typically depend on manually written test scripts tied to fixed UI element identifiers, making them fragile to interface changes and limited in exploration coverage. Shrinkdroid addresses these limitations by dynamically detecting UI elements at runtime, generating event sequences through weighted random and guided exploration strategies, and validating application behaviour against a set of seven generalised GUI properties. When a property violation is detected, an integrated shrinking pipeline automatically reduces the failing event sequence to a smaller counterexample that still reproduces the failure, improving debugging efficiency. Shrinkdroid is evaluated on two industrial Android Automotive applications developed by CPAC Systems AB, and on three open-source mobile applications from the Themis benchmark. Across 184 test runs, explored using both Random Weighted Exploration and Guided Ex ploration, 26 property violations were detected, of which 17 were validated as real bugs. Ten of these bugs were previously unreported. Shrinkdroid’s findings complemented those of the industrial partner’s existing testing practices with no overlap in detected bugs, demonstrating its value as a complementary testing tool. Test case minimisation through shrinking was completed in 14 out of 26 cases, achieving sequence reductions in 13 of these, while preserving the original property violation. Graph-based shortest-path reduction proved most efficient, completing in under three minutes for deterministic traces, while greedy reduction of longer sequences could require several hours. These results demonstrate that property-based testing with integrated shrinking can effectively detect and localise GUI bugs in Android applications, even in dynamically changing interfaces, and across different Android environments and device types.","abstract_html":"This thesis presents Shrinkdroid, a property-based testing tool for automated GUI testing of Android applications. Existing Android GUI testing approaches typically depend on manually written test scripts tied to fixed UI element identifiers, making them fragile to interface changes and limited in exploration coverage. Shrinkdroid addresses these limitations by dynamically detecting UI elements at runtime, generating event sequences through weighted random and guided exploration strategies, and validating application behaviour against a set of seven generalised GUI properties. When a property violation is detected, an integrated shrinking pipeline automatically reduces the failing event sequence to a smaller counterexample that still reproduces the failure, improving debugging efficiency. Shrinkdroid is evaluated on two industrial Android Automotive applications developed by CPAC Systems AB, and on three open-source mobile applications from the Themis benchmark. Across 184 test runs, explored using both Random Weighted Exploration and Guided Ex ploration, 26 property violations were detected, of which 17 were validated as real bugs. Ten of these bugs were previously unreported. Shrinkdroid’s findings complemented those of the industrial partner’s existing testing practices with no overlap in detected bugs, demonstrating its value as a complementary testing tool. Test case minimisation through shrinking was completed in 14 out of 26 cases, achieving sequence reductions in 13 of these, while preserving the original property violation. Graph-based shortest-path reduction proved most efficient, completing in under three minutes for deterministic traces, while greedy reduction of longer sequences could require several hours. These results demonstrate that property-based testing with integrated shrinking can effectively detect and localise GUI bugs in Android applications, even in dynamically changing interfaces, and across different Android environments and device types.","abstract_has_math":false,"creators":["Simonsson, Clara","Sjöström, Fanny"],"institution":null,"degree_name":null,"degree_level":"H","degree_discipline":null,"degree_department":"Chalmers tekniska högskola / Institutionen för data och informationsteknik","school":null,"contributors":[],"advisors":["Elahi, Haroon"],"committee_chairs":[],"committee_members":["Berger, Christian"],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T03:03:51Z","subjects":["Automated Testing, Property-Based Testing, GUI Testing, Android Ap plications, Test Case Minimisation, Shrinking"],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.coursecode","label":"Dc Identifier Coursecode","values":["DATX05"],"render_values":[{"text":"DATX05","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/20.500.12380/311901","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/20.500.12380/311901","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Achalmers%3Aoai%3Aodr.chalmers.se%3A20.500.12380%2F311901","prefix":"oai_dc"},"source_record":{"url":"https://odr.chalmers.se/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aodr.chalmers.se%3A20.500.12380%2F311901","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Berger, Christian"]},{"key":"dc:contributor.department","label":"Department","values":["Chalmers tekniska högskola / Institutionen för data och informationsteknik","Chalmers University of Technology / Department of Computer Science and Engineering"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Elahi, Haroon"]},{"key":"dc:creator","label":"Author","values":["Simonsson, Clara","Sjöström, Fanny"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-07-07T09:21:20Z"]},{"key":"dc:date.issued","label":"Date","values":["2026"]},{"key":"dc:publisher.program","label":"Dc Publisher Program","values":["Software engineering and technology (MPSOF), MSc"]},{"key":"dc:type.degree","label":"Dc Type Degree","values":["Examensarbete för masterexamen","Master's Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["H"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Automated Testing, Property-Based Testing, GUI Testing, Android Ap plications, Test Case Minimisation, Shrinking"]},{"key":"dc:subject.uppsok","label":"Dc Subject Uppsok","values":["Technology"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.coursecode","label":"Dc Identifier Coursecode","values":["DATX05"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.12380/311901"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["This thesis presents Shrinkdroid, a property-based testing tool for automated GUI testing of Android applications. Existing Android GUI testing approaches typically depend on manually written test scripts tied to fixed UI element identifiers, making them fragile to interface changes and limited in exploration coverage. Shrinkdroid addresses these limitations by dynamically detecting UI elements at runtime, generating event sequences through weighted random and guided exploration strategies, and validating application behaviour against a set of seven generalised GUI properties. When a property violation is detected, an integrated shrinking pipeline automatically reduces the failing event sequence to a smaller counterexample that still reproduces the failure, improving debugging efficiency. Shrinkdroid is evaluated on two industrial Android Automotive applications developed by CPAC Systems AB, and on three open-source mobile applications from the Themis benchmark. Across 184 test runs, explored using both Random Weighted Exploration and Guided Ex ploration, 26 property violations were detected, of which 17 were validated as real bugs. Ten of these bugs were previously unreported. Shrinkdroid’s findings complemented those of the industrial partner’s existing testing practices with no overlap in detected bugs, demonstrating its value as a complementary testing tool. Test case minimisation through shrinking was completed in 14 out of 26 cases, achieving sequence reductions in 13 of these, while preserving the original property violation. Graph-based shortest-path reduction proved most efficient, completing in under three minutes for deterministic traces, while greedy reduction of longer sequences could require several hours. These results demonstrate that property-based testing with integrated shrinking can effectively detect and localise GUI bugs in Android applications, even in dynamically changing interfaces, and across different Android environments and device types."]},{"key":"dc:title","label":"Title","values":["Shrinkdroid: A Property-Based Testing Tool for Android Applications using Dynamic Element Detection and Test Case Minimisation"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.committeemember":["Berger, Christian"],"dc:contributor.department":["Chalmers tekniska högskola / Institutionen för data och informationsteknik","Chalmers University of Technology / Department of Computer Science and Engineering"],"dc:contributor.supervisor":["Elahi, Haroon"],"dc:creator":["Simonsson, Clara","Sjöström, Fanny"],"dc:date.accessioned":["2026-07-07T09:21:20Z"],"dc:date.issued":["2026"],"dc:description.abstract":["This thesis presents Shrinkdroid, a property-based testing tool for automated GUI testing of Android applications. Existing Android GUI testing approaches typically depend on manually written test scripts tied to fixed UI element identifiers, making them fragile to interface changes and limited in exploration coverage. Shrinkdroid addresses these limitations by dynamically detecting UI elements at runtime, generating event sequences through weighted random and guided exploration strategies, and validating application behaviour against a set of seven generalised GUI properties. When a property violation is detected, an integrated shrinking pipeline automatically reduces the failing event sequence to a smaller counterexample that still reproduces the failure, improving debugging efficiency. Shrinkdroid is evaluated on two industrial Android Automotive applications developed by CPAC Systems AB, and on three open-source mobile applications from the Themis benchmark. Across 184 test runs, explored using both Random Weighted Exploration and Guided Ex ploration, 26 property violations were detected, of which 17 were validated as real bugs. Ten of these bugs were previously unreported. Shrinkdroid’s findings complemented those of the industrial partner’s existing testing practices with no overlap in detected bugs, demonstrating its value as a complementary testing tool. Test case minimisation through shrinking was completed in 14 out of 26 cases, achieving sequence reductions in 13 of these, while preserving the original property violation. Graph-based shortest-path reduction proved most efficient, completing in under three minutes for deterministic traces, while greedy reduction of longer sequences could require several hours. These results demonstrate that property-based testing with integrated shrinking can effectively detect and localise GUI bugs in Android applications, even in dynamically changing interfaces, and across different Android environments and device types."],"dc:identifier.coursecode":["DATX05"],"dc:identifier.uri":["https://hdl.handle.net/20.500.12380/311901"],"dc:language.iso":["eng"],"dc:publisher.program":["Software engineering and technology (MPSOF), MSc"],"dc:subject":["Automated Testing, Property-Based Testing, GUI Testing, Android Ap plications, Test Case Minimisation, Shrinking"],"dc:subject.uppsok":["Technology"],"dc:title":["Shrinkdroid: A Property-Based Testing Tool for Android Applications using Dynamic Element Detection and Test Case Minimisation"],"dc:type.degree":["Examensarbete för masterexamen","Master's Thesis"],"others:access_status":["open.access"],"thesis:degree_level":["H"]},"updated_at":"2026-11-19T03:03:51Z"}