Font Size: a A A

A Research On Android Test Automation Technology Based On Dependency Injection

Posted on:2018-11-14Degree:MasterType:Thesis
Country:ChinaCandidate:C L MengFull Text:PDF
GTID:2428330512998269Subject:computer science
Abstract/Summary:PDF Full Text Request
With the increasing popularity of smartphones,the applications running on An-droid need to be adequately tested to ensure quality.Therefore,automated test tech-niques on Android have been widely studied and there have been a number of test tools with different strategies.However,existing testing tools achieve very low coverage for some specific apps because they highly depend on external factors such as busi-ness logic,content providers and so on.In this thesis,we present a testing technique which is based on dependency injection to resovle the dependency shortage problem and developed a test tool called Xdroid which improves test coverage and detects bugs effectively.Specifically,the work of this thesis mainly includes the following aspects:1.Proposed a test technique based on dependency injection to resovle the dependency shortage problem in the process of test.It makes use of automated dependency injection and user intervention to complement automated testing techniques.2.Implemented the dependency injection technique with Xposed framework.It makes use of method hooking which is a light and simple way to insert code for 18 depen-dency related methods in the system.3.Designed and implemented a test tool on Android platform called Xdroid with the technique introduced above.Xdroid can effectively generate events,detect and inject dependency automatically and record the coverage and bug information.4.Evaluated Xdroid with the other three test methods on 20 real-world applications.The results show that Xdroid can achieve higer coverage and reveal bugs that cannot be detected by other tools.
Keywords/Search Tags:Android, Test Automation, Test Dependency
PDF Full Text Request
Related items