Abstract
Manual testing, as a complement to automated GUI testing, is the last line of defense for app quality especially in spotting usability and accessibility issues. However, the repeated actions and easy missing of some functionalities make manual testing time-consuming, labor-extensive and inefficient. Inspired by the game candy crush with flashy candies as hint moves for players, we develop a tool named NaviDroid for navigating human testers via highlighted next operations for more effective and efficient testing. Within NaviDroid, it constructs an enriched state transition graph (STG) with the trigger actions as the edges for two involved states. Based on the STG, NaviDroid utilizes the dynamic programming algorithm to plan the exploration path, and augment the run-time GUI with visualized hint moves for testers to quickly explore untested states and avoid duplication. The automated experiments demonstrate the high coverage and efficient path planning of NaviDroid. A user study further confirms its usefulness in the participants covering more states and activities, detecting more bugs within less time compared with the control group. NaviDroid demo video: https://youtu.be/lShFyg_nTA0.
Introduction
Manual testing remains a critical component of mobile app quality assurance, particularly for identifying usability and accessibility flaws that automated scripts often overlook. Despite its importance, manual testing is frequently inefficient; testers often struggle with repetitive actions or fail to explore deep, obscure functionalities. NaviDroid addresses this gap by introducing "hint moves"—a concept inspired by mobile games like Candy Crush—to guide human testers through an app's interface in real-time. By combining automated state-transition analysis with visual overlays, NaviDroid acts as a "GPS" for apps, tracking explored areas and highlighting unvisited states to maximize coverage and efficiency.
Methodology
NaviDroid operates through a structured three-stage pipeline designed to map, plan, and guide the testing process.
1. $STG_{action}$ Extraction
The process begins by constructing a State Transition Graph (STG). NaviDroid utilizes a hybrid approach:
- Static Analysis: Examining code and manifest files to identify potential activity connections.
- Dynamic Exploration: An automated crawler interacts with the UI to record hierarchies and transitions.
- Context-Aware State Merging: To prevent graph explosion, the tool merges UI states that are logically identical (e.g., lists with different content) into single nodes.
2. DP-based Path Planning
With the STG established, NaviDroid treats exploration as an optimization problem. It employs a Dynamic Programming (DP) algorithm to determine the shortest path required to visit all remaining unvisited states. This path is not static; if a tester deviates from the suggested route, the algorithm recalculates the optimal path in real-time from the new current state.
3. Visual-based Path Guidance
The final stage involves presenting these planned paths to the tester. Using Android’s floating window service, NaviDroid overlays red bounding boxes and text prompts directly onto the live application.
If a tester remains idle for more than 5 seconds, the tool highlights the next component to interact with or suggests a "back" action to return to an unexplored branch. This gamified approach reduces cognitive load, allowing testers to focus on bug detection rather than navigation.
Evaluation and Results
The effectiveness of NaviDroid was evaluated through automated benchmarks and a controlled user study involving 85 open-source apps and 32 human testers.
Automated Performance
In automated tests, NaviDroid achieved a median state coverage of 81%. Compared to standard baselines, it reduced the number of exploration steps required by 20% to 42%, demonstrating superior path efficiency.
Human-Centric Testing
The user study revealed significant improvements in human performance:
- Coverage: Participants using NaviDroid covered 62% more states and 61% more activities than the control group.
- Bug Detection: The NaviDroid group identified 146% more bugs.
- Efficiency: These results were achieved while spending 33% less time on the tasks.
- Usability: Professional testers awarded the tool a helpfulness score of 4.51/5, highlighting its ability to prevent redundant operations.
Discussion and Conclusion
NaviDroid demonstrates the power of hybrid testing, where machines handle the complex bookkeeping of state coverage while humans focus on high-level evaluation. The "hint move" mechanic successfully translates gamification into a functional utility for software engineering.
However, the tool's performance is inherently tied to the quality of the initial STG extraction. If the automated crawler cannot access certain states (e.g., those behind authentication), the guidance system remains unaware of them. Future work aims to improve human-machine collaboration and incorporate deeper logic-based testing requirements beyond simple UI coverage.
Summary updated