Capture-Replay Testing for Android Applications

Authors:
  • CLChien Hung Liu
    Chien Hung Liu
  • CLChien Yu Lu
    Chien Yu Lu
  • SCShan Jen Cheng
    Shan Jen Cheng
  • KCKoan Yuh Chang
    Koan Yuh Chang
  • YHYung Chia Hsiao
    Yung Chia Hsiao
  • WCWeng Ming Chu
    Weng Ming Chu

Abstract
With the widespread popularity of Android devices, the number of Android applications has increased dramatically in recent years. In order to assure the quality of the applications, Android testing has drawn extensive attention. This paper proposes an approach to automate the testing of Android applications based on the Capture and Replay method. Particularly, the user events of Android applications are captured and converted into Robotium test scripts that can be executed to replay the recorded actions of users. The approach also allows inserting assertions when capturing user interactions for verifying the outputs of Android UI components. A supporting tool is implemented to illustrate the usefulness of the proposed approach.