Abstract:Smart phones and tablets are gaining popularity with their rich and powerful input, but their rich input features add to the complexity of the testing. Existing GUI-based recording and playback tools are inadequate for capturing the input of sensor devices, GUI gestures, and have precise timing requirements. This study designs and implements a tool named RARA. RARA can be recorded and replay both GUI events and sensor events, and replaying with microsecond accuracy. Finally, it is verified by experiment:(1) RARA is effective; (2) The playback time overhead is only about 1%, will not affect the performance of the host APP; (3) The application bug can be reproduced through the RARA.