Font Size: a A A

The Design And Implementation Of Iterative Android Application Automated Testing System

Posted on:2021-03-30Degree:MasterType:Thesis
Country:ChinaCandidate:Y R XuFull Text:PDF
GTID:2428330647950870Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the continuous shortening of mobile application development cycles,how to improve the efficiency of mobile application quality assurance has become a major problem in the testing community.On the one hand,some companies send test tasks to volunteers for manual testing.However,the level of volunteer reporting varies,and the truly useful ”User Operation Flow” itself is often overlooked.On the other hand,some testers intend to develop automated testing tools to reduce the consumption of human and time resources on testing.However,due to the lack of human-owned testing knowledge,the actual effect of the tools cannot surpass manual testing.If the ”User Operation Flow” containing human testing knowledge is introduced into an automated testing tool,the effect of automated testing can theoretically be improved.This paper designs and implements an iterative Android application automated testing system,which automatically records,extracts,and fuses the user operation flows of the test users,and enters them into the testing tool.Through iterations in testing process: user operation information is introduced into the tool,and the output of the tool is passed back to the user to generate the next round of user operation information;and iterations in operation: multiple rounds of iterative testing that are different from the one-time testing process of general automated testing tools process,to enhance the test results of the system.By modifying the Appium framework,the system automatically obtains the user operation flows in the background.The front-end uses Angular2 to complete the web page,so that testers can easily use the system,and the back-end uses the Spring Boot framework to complete various controls.The ADB(Android Debug Bridge)tool and Uiautomator framework are used to contact and control the device under test connected to the system.Finally,the coverage process is drawn through the Echarts framework and the Dot tool,so that testers can understand the coverage of the test tool.In order to verify the usability of this system,an experiment is designed in this paper to use the Jacoco framework for instrumentation of the application under test,so as to obtain the ratio of the number of code lines covered by the application runtime to the total number of codes.This paper selected 10 well-known mobile applications and 50 user operation flows to conduct an experiment,and compared with the well-known tool Monkey.The experimental results show that the test results of the system have been significantly improved compared to the case without the introduction of user information.When the test time is set to one hour,the average code coverage rate reaches 37.83 %,which exceeds Monkey under the same conditions,which average code coverage is 28.90 %.In addition,the test results after the introduction of the information completely included the coverage of the user or the tool when it was tested alone,and no coverage omissions were generated,which undoubtedly proved the usability of the system.
Keywords/Search Tags:Mobile testing, Android GUI testing, Android automated testing, automated testing framework, automated testing tools
PDF Full Text Request
Related items