| Google launched the Android operating system in 2010,then Android in the global smart mobile device market share increased year by year,after several years of rapid development,Android has become the world’s highest share of intelligent mobile device operating system.In order to continue to meet user needs,software developers develop a variety of complex functions,the application of a variety of third-party application software.Due to the existence of subjective and objective reasons such as the uneven level of developers,the development cycle is short,the lack of uniform standard standards,a lot of software quality checks are not strict,does not meet the requirements of software quality management.In order to rectify the third-party application market products of various types of good and bad phenomenon,many smart phone manufacturers in the Android operating system on the basis of the second development,launched based on the platform of the mobile phone operating system,such as MIUI,lightning OS and so on.These new operating systems can help users identify poor software and improve the user experience.Lightning OS is the author of the study company developed an Android mobile phone system optimization software,not really the meaning of the ROM system,it can bring higher system management authority,not only can uninstall the mobile side of the pre-installed software,you can regularly clean up the garbage,real-time monitoring of mobile phone security,improve mobile phone speed,save electricity and so on.The purpose of this paper is to design and implement customized automated testing tools for lightning OS,to solve the problems caused by manual testing,inefficient and low efficiency,and to guarantee product quality.First of all,combined with the company’s internal testing status,summed up and analyze the company’s customization of automated testing needs,developed based on Android Hook automated test system design.The system consists of four modules,namely four independent test tools,including log-cat acquisition module,third-party application performance monitoring module,lightning OS interface authentication module,hit the log file with the attendant,for Android mobile applications to start time,traffic information monitoring,verify whether the successful call to the lightning OS interface,verify the robustness of We Chat red envelopes injection files.Secondly,the overall framework of the system planning and analysis,and then for the specific function of the module design and implementation,this article uses Xposed framework for Java layer Hook.Due to the small amount of data,use Android comes with the database SQLite for data storage.Finally,combined with the needs of the system modules,the preparation of test cases,the use of black box test method for functional testing,the test results and system requirements to verify whether to meet the system requirements.Analyze the test data obtained during the test,summarize the shortcomings of the system,and propose the next improvement scheme.The customized testing tool has been applied to the company where the author works.The results show that the tool has certain practical significance and value to ensure the quality of the test,improve the test efficiency and reduce the test cost.At the same time,the tool as a subsystem of the automated test platform,with the platform in the other subsystems to work together to maximize the realization of the test process automation. |