Font Size: a A A

Design And Implementation Of Android APP Automated Testing Framework Based On Appium

Posted on:2021-02-18Degree:MasterType:Thesis
Country:ChinaCandidate:X Y CaiFull Text:PDF
GTID:2428330626958923Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the increasing popularity of Android system,the number of Android APPs is also growing at a very fast speed.In order to cope with the rapidly changing market demand and improve the competitiveness,the iteration speed of Android APP is generally faster.In order to ensure the quality of products in the process of rapid iteration,software development enterprises use automated testing instead of manual testing in the highly repetitive regression testing.However,when using the current automated testing framework for automated testing,testers need to write test scripts,which requires high coding level of testers.Therefore,an Android APP automation testing framework without testers writing test scripts is needed to solve this problemThis paper uses Java programming language,keyword driven automatic testing method and Appium framework to implement a framework that can automate the testing of Android APPs.In this paper,the automated test framework encapsulates and extends the Appium framework.Compared with the Appium framework,it adds functions such as automatically generating and executing test scripts according to the keyword actions selected by testers on the browser page,test case management,test plan management,test report management,and device status management.At the same time,it supports remote testing and multi-device testing in practicability,and it also supports displaying the device screen and control device through the browser,obtaining control information on the browser,and debugging test cases in ease of useFirstly,this paper researches and compares the automation testing framework of Android APP at home and abroad,and chooses the Appium open source framework which has the advantages of supporting cross platform,cross application,supporting multiple application types,supporting multiple languages to write test scripts as the basic framework,and puts forward the main research objectives of this paper for the shortcomings of Appium framework.Then it introduces the key technologies involved in the design and implementation of the automated testing framework,including the automated testing technology,Appium framework,TestNG framework,vue-element-admin front-end solution,Spring Boot Admin technology,etc.The source of demand for this framework is explained,and the main functions of browser,server and database are analyzed in detailThis paper gives a detailed description of the design and implementation of the key technologies of the framework's functionality,practicability and ease of use.For functionality,the keyword action and method corresponding function is implemented by associating the keyword action selected by the tester with the method corresponding to the preset keyword action in the code through the database record The function of automatically generating and executing test scripts is implemented by analyzing the keyword actions selected by testers,generating test script source code by using FreeMarker template,generating executable files by dynamic compilation and then executing it by TestNG framework.The function of monitoring Android device status is implemented by implementing the ID eviceChangeListener interface in the ADB toolkit ddmlib.For practicality,remote testing and multi-device testing are implemented by Spring Boot Admin technology and ADB technology.For ease of use,the browser displays and controls device function is implemented through the cooperation of Web Socket,minicap,minitouch and other technologiesNext,this paper introduces the deployment and startup of the framework,tests the main functions of the framework,and proves the usability of the framework.By comparing with the basic framework Appium and other framework based on Appium,the advantages of this framework are shown.Finally,the work of this framework is summarized,and the shortcomings and further prospects are proposed.
Keywords/Search Tags:Android, automated testing, Appium, keyword driven, TestNG
PDF Full Text Request
Related items