Font Size: a A A

Android Application Automation Black Box Testing Method Research

Posted on:2017-08-03Degree:MasterType:Thesis
Country:ChinaCandidate:X T ZhouFull Text:PDF
GTID:2358330503981939Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of mobile internet technology, more and more Android applications have been developed. In order to ensure the reliability and security of Android applications. Android applications should be tested before they are released to the application market officially. But developers only provide the APK application package to the application market, so they can only choose black box testing method to test the applications. Moreover,automatic black box testing is also very consistent with the requirement of mobile cloud testing services which are very popular recently. Developers can use the resources of cloud service platform to test the applications just by uploading the APK application package.Therefore, to realize the automatic testing of Android applications without program source code is very meaningful. In recent years, the industry has developed many testing methods specialized in Android application. These methods mainly include test script recording tool,automated testing framework for Android and traverse Android application GUI automatically.However, these methods have some imperfections and limitations and still can't meet the requirements of reusability, coverage and automation fully. To solve the above problems, a automatic black box testing method for the Android application is proposed, by which the program source code is needless.The main works of this thesis are as follows:(1) An automatic black box testing method for Android applications is proposed. First of all, improving Ui Automator Viewer tool through the ADB command, and identifying all the widgets information and target window information by the improved Ui Automator Viewer tool. Then proposing an Android application window test case auto generate algorithm by using the idea of depth-first traversal and generating test cases automatically while building a traversal model based on the Android application window with the algorithm. Finally encapsulating the methods of Robotium framework by using the ideas of data-driven and keyword-driven to achieve the improvement of Robotium testing framework. And using the improved test framework to generate the test scripts automatically.(2) Based on the above method, the paper achieve an automatic testing tool called Droid Auto Test which can install and launch the Android application under test automatically,identify the window information and widgets information of the tested application automatically, generate the test cases and test scripts automatically and finally generate test report by running the test scripts.(3) In order to confirm the feasibility and effectiveness of this method, the paper test the Sohu news client by Droid Auto Test tool. Results show that the method is feasible and effective in improving automation and coverage of Android application test, and is also advantageous in decreasing the testing cost.
Keywords/Search Tags:Android, Automatic testing, Black box testing, Robotium testing framework
PDF Full Text Request
Related items