International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 174 - Number 19 |
Year of Publication: 2021 |
Authors: Moheb R. Girgis, Bahgat A. Abdel Latef, Tahany Akl |
10.5120/ijca2021921080 |
Moheb R. Girgis, Bahgat A. Abdel Latef, Tahany Akl . A System for GUI Testing of Android Apps with Multiple Activities. International Journal of Computer Applications. 174, 19 ( Feb 2021), 25-35. DOI=10.5120/ijca2021921080
The wide spread use of Android and the GUI-driven nature of its apps have risen the need for appropriate automated GUI testing techniques. This paper presents a proposed system for GUI testing of Android apps with multiple activities, which applies a model-based approach to capture the event-driven nature of Android apps. This approach comprises two phases: Modeling Phase and Test Evaluation Phase. In the modeling phase, for each activity in the app under test (AUT), an event sequence diagram (ESD) is built, which depicts the activity's events and possible transitions between them, and used to generate event sequences (test cases). In the test evaluation phase, certain event-based coverage criteria are employed to measure the adequacy of the generated test cases. The proposed system analyses the AUT, builds an ESD for each activity, and generates event sequences. It handles the event sequences explosion problem and discards any unacceptable event sequences. For each event sequence, the system generates a test script and a corresponding Robotium test class, and executes the AUT with it. The paper also presents a case study that illustrates the use of the proposed system for testing an Android app with multiple activities, and the results of the experiments that have been conducted to evaluate the system's ability to expose some GUI errors that may occur in Android apps.