A Coverage Measurement Method For GUI Test Cases On Android Applications

Merve Melis MIRZA, Alper Şen · 2021

Coverage measurements are among the most effective methods for determining the extent and quality of the functional tests executed on a mobile application. Although code coverage metrics such as line and branch are provided by the Integrated Development Environments (IDE), there is not any tool that can calculate the coverages of Graphical User Interface (GUI) components. In this study, we are suggesting a coverage measurement method that is independent of the source code and can function just by using application's compiled artifact (APK), for activity, action and GUI components. With the tool we have developed based on this method, it is possible to run functional tests and to identify all the accessed activities, executed actions, defined for an activity, and GUI components, which were referenced with their ID's, to obtain related coverages. We have confirmed the validity of our coverage metrics by running the tool for the tests we have written for a large scale mobile banking application.

Read the paper · More papers on PaperTik