Font Size: a A A

A New Approach Of Android Automated Test Based On Packet Analysis

Posted on:2015-02-02Degree:MasterType:Thesis
Country:ChinaCandidate:W SongFull Text:PDF
GTID:2348330485996065Subject:Electronic and communication engineering
Abstract/Summary:PDF Full Text Request
Android automated test plays an important role in the process of application development. A comprehensive and detailed test is the guarantee of the quality and stability of the program.Many news applications and info-exchange applications prefer hybrid application as their prime solution due to the advantage of flexibility and easy implementation. Automated test on Android platform is accomplished with the help of some test frameworks. However,some major test frameworks, such as Robotium, can't support it quite well.In this thesis, a new approach of android automated test is proposed. With a deep understanding of the technical details of WebView, We found that WebView has the same function as the browser engine, which handles all kinds of web page resources, such as HTML and JavaScript files. If all these resources can be captured, the activities of WebView can be determined.So, We extend the ability of traditional test frameworks and focus ourselves on system level. The solution is based on packet capture and HTTP reconstruction technology. With the help of information provided by these reconstructed HTTP requests and responses, a new integrated test framework is created to support the precise and accurate test of WebView.A series of new APIs are developed to maintain the dynamic and real-time communication between packet sniffer program and test script. Developers can filter packets, save web pages, and assert cases by invoking these functions from test script. So the detection,analysis, and test of WebView can be achieved in an easy way.The results of experiments on some popular applications show that this method works well as expected, and it has a good performance on stability.
Keywords/Search Tags:Software, Android, Automated Test, Packet Capture
PDF Full Text Request
Related items