GUI-guided Repair of Mobile Test Scripts

Minxue Pan,Tongtong Xu,Yu Pei,Zhong Li,Tian Zhang,Xuandong Li
DOI: https://doi.org/10.1109/icse-companion.2019.00137
2019-01-01
Abstract:Graphical User Interface (GUI) testing has been the focus of mobile app testing. Manual test cases, containing valuable human knowledge about the apps under test, are often coded as scripts to enable automated and repeated execution for test cost reduction. Unfortunately, many test scripts may become broken due to changes made during app updates. Broken test scripts are expected to be updated for reuse; however, the maintenance cost can be high if large numbers of test scripts require manual repair. We propose an approach named Meter to repairing broken test scripts automatically when mobile apps are updated. Meter novelly leverages computer vision techniques to infer GUI changes between two versions from screenshots and uses the GUI changes to guide the repair of test scripts. In experiments conducted on 18 Android apps, METER was able to repair 78.3% broken test scripts.
What problem does this paper attempt to address?