Font Size: a A A

An Automated And Directed GUI Testing Technique For Android Application

Posted on:2018-08-07Degree:MasterType:Thesis
Country:ChinaCandidate:Y L YeFull Text:PDF
GTID:2348330518499074Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the continuous improvement and development of the functions of the Android platform,more and more users choose to use mobile terminals equipped with Android.Correspondingly,the number and type of Android apps grow rapidly.The ensuing malicious application and its sensitive behavior have caused tremendous damage to users and the Android platform.Because of the openness of the Android platform,the review of Android applications is executed by the application market.The sheer number of applications makes it imperative for the application market to utilize efficient testing tools to test the sensitive behavior of applications.Therefore,it is of great practical significance to study the automatic testing method that can be used to test the specific behaviors efficiently.Directed testing of specific behaviors for Android applications is usually used to detect privacy leak,remote control or other malicious behaviors.The directional testing method mostly adopts the way of combining static analysis and dynamic testing to improve the test efficiency.However,there are some problems with the existing directional testing methods,such as modifying program code to cause a high test failure rate,or traversing all the view components to cause excessive consumption of time.In order to solve these problems,an automated directional testing method that uses target API invocation to represent the application's behavior is proposed.The goal of the method designed is to complete the testing of the target API with the number of widget event inputs as few as possible.First,with static code analysis of the application executable file,the path to the target API invocation location is reached,including related application components,primary callback methods,application component startup relationship and so on.Then dynamic testing is adopted to excluding extraneous components and GUI elements by monitoring application status,and the application is driven to automatically run along the specific paths to reach the target API invocations,and trigger the specific behavior,and the testing process is finally completed.In order to validate the validity of the proposed method,a tool is implemented in this paper,which is used to experience the application of the market,and the comparison experimentis done to compare the testing results with other tools.The experimental results show that,in the case of only a program installation package,this tool can automate the process of control flow analysis,dynamically install and run the application,and trigger the view component of the page,and so on.The data shows that the path obtained by static analysis assists dynamic testing process in excluding 83.6% of the view component on average.By excluding invalid application components that are triggered during the running process,the test efficiency is 87% higher than the Monkey tool.Therefore,the automatic directional testing method designed in this paper has great advantages in testing the application of specific behaviors,which can effectively improve the test efficiency,and can play an important role in large-scale application testing.
Keywords/Search Tags:Android, Directed Test, Target API, Static Analysis, Dynamic Testing
PDF Full Text Request
Related items