| With the increasing complexity of mobile applications,efficient testing techniques and tools are becoming a necessary guarantee for high-quality mobile applications.Because the user interface of the mobile program is the main way to interact with the user,the friendly interface has become the most important factor for the user to select the application.At present,testing relies mainly on manual testing,and UI automated testing is relatively small,and most automated tests are for unit testing and module level functional testing.Most of the existing testing tools apply to functional testing or regression testing.But in adaptation compatibility testing,you also need to take into account the various cell phone models,screen resolution and other equipment differences.The existing GUI testing methods include control search,record playback,image search,OCR,picture comparison,random operation,[1].Some automated testing tools develop scripts directly through programming languages,but there are problems such as the difficulty of development and debugging.These methods are not suitable for adaptationcompatibility testing.This article uses the recording playback method,which is the minimum requirement for testers.Based on Android GUI widget,this paper proposes an automated testing solution for mobile applications on Android platform,and implements a black box testing to-ol.This paper describes the design and implementation of the key technology of therecording and playback module of the GUI automatic test tool by giving examples to describe the process of recording test cases,generating scripts and replaying the system.The GUI testing tool can be used both for smoke tests,regression tests,andfor compatibility testing with adaptation.Integrated in the MTaaS(Mobile Testing as a Service)[1] platform,simplify the testing process and improve test efficiency. |