Font Size: a A A

Design And Implementation Of Auto Test Log System For Android Phone

Posted on:2015-06-10Degree:MasterType:Thesis
Country:ChinaCandidate:Y J YuFull Text:PDF
GTID:2298330452466890Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Android phone because of its free Linux platform and easy to develop applicationsJava language, it is so widely loved by consumers and producers. As the characteristics ofthe smart phone, its complex operating system and the process of multi-tasking, needengineers to do a lot of regression testing to lead the platforms, systems and theirapplications to be stabilized. Which consumed a lot of test work involved in the mass testcase. And a lot of time the test scene and log often cannot be sustained, preserved, or to bedestroyed by the continuity of operations. Especially some sporadic bug with lowprobability and complexity of the operation path, leading it to be difficult for testers to doagain reproducibly to capture useful scene down to be provided for R&D engineers toanalyze and solve problems. Therefore, in this case, how to develop a tool which cancaptured the scene in a timely manner during test systems is particularly important andurgent.In this paper, through investigating and researching the various problems and situationencountered in the process of testing by test segment. The specific research is finding areasonable and efficient testing means and methods. Then sum up methods of how toacquire the log of various type bugs. Through the researching and rational planning of theoperation to the Android UI layer, which determine the several log acquisition methodsimplifies to the dial pad commands. The design depends on the Linux service smartly getthrough from the Android application to the Shell command. Which in addition aparts thedesign of user operation and business logic. The innovations of this paper mainly focus onusability, punctuality and directionability. Usability, tester acquires and saves the log withsimply inputing some special digits on the dial interface. The operation is so convenient which tester do not need to know which log and state value to be acquired, only remembera few simple instruction can complete all the test operations. Punctuality, first time torecord available logs for analysis, at the same time tester also can open the persistent logstorage function, which records site logs at any time. Which also provides the keycombination to stop background log acquisition process in order to restart acquiring log.directionability, testers can according to the types of different problems, with differentinstructions to obtain the corresponding log.In addition,"monkey" as a set of automatic testing tools which is specially designedby Goolge for Android system, can generat randomly click and key events to simulate thehuman operations and test behaviors. But the tool should execute at the PC end through theShell command. This paper will transplant the launcher method of tool from the PCterminal to the dial interface with reasonable design of script. At the same time accordingto different needs, use a different special digit code to launch the separately test and topreserve the relevant log for the whole system and each sub module. Which greatlyreduces the testing staff workload, enhances the test strength.The implementation of upper instruction conduction and execution based on Linuxservice in this paper. Which lead to precisely capture and clear the test log and enable anddisable the other test tools, effectively overcome the lack of timely and operative everacquire logs with connecting to PC. Which facilitates the operation for the testers,simplifies the process of bug reproducibility and submission. the design reduces the testcost and waste of time, synchronizes the problem occurrence and debug logs, timelycaptures the scene. After use of the system, the overall efficiency of the test lifting nearly25%. As the site timely to be provided to engineers, the occasional problem solvingefficiency increased by3to4times.
Keywords/Search Tags:Android, Log, Linux, test
PDF Full Text Request
Related items