Font Size: a A A

Design And Implementation Of Mobile UI Automated Test Platform Based On Appium

Posted on:2022-09-19Degree:MasterType:Thesis
Country:ChinaCandidate:Y Y ChengFull Text:PDF
GTID:2518306602965499Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
With the development of the mobile internet,applications of mobile devices grow more complicated.Rapid iteration and updates bring more pressure to UI testing work which has been already heavily,especially work with a high repetition rate like regression testing.However,professional automated test personnel are relatively few,and many test automation tools are not easy to learn.In order to solve these problems,the thesis developed a mobile terminal UI automation test platform which is simple to use and easy to learn using the micro-service architecture.The platform will manage the data in automated tests through a browser and provide drivers for executing automated test scripts.By using the platform,testers can efficiently complete the mobile terminal UI automation test and obtain accurate and detailed test report through writing a little bit of script code.By referring to the information,the thesis makes a comparison of automated test tools at home and abroad in many aspects and decides to use the keyword-driven,cross-platform Robot Framework and Appium for test script execution.In the stage of demand analysis,the thesis divides the platform into a test platform for managing data and a driver for executing scripts,and determines that the main participants of the system are administrators and ordinary users.The thesis presents a standard mobile terminal UI automation test process,that is,adding mobile terminal interface elements,encapsulating mobile terminal components,encapsulating test cases,adding test tasks,executing tests,then follows this process for test case design: using use case diagrams to model requirements and describe some of the important use cases in detail.In the design and implementation stage,the thesis uses the micro-service architecture to build the underlying framework of the system.The thesis begins with a top-down introduction to the micro-service architecture,then divides the functions of the platform into project management module,test execution module,system management module,scheduling module and basic data management module according to demand analysis.The thesis uses entity relation graph for data modeling of the system as a whole,and gives the specific database table design.When introducing the detailed design of each module,the thesis abstracts the database access components and common classes of the system,which is convenient for code reuse.Then the thesis shows the inter-class relationships of the modules through class diagram,and chooses the core methods to use time sequence diagram for analysis.In this part,this thesis mainly introduces the mobile terminal interface element management and mobile terminal component management functions of the project management module,as well as the implementation of heartbeat registration,acquisition script and execution functions of the test execution module.In the test part,the thesis introduces the hardware and software environment of the platform and the mobile device environment of the target test object,and tests the system according to requirement analysis.For functional testing,the thesis carries out use case design and input parameter design for each step according to the automated test process,and presented screen shots and analysis of test results.For non-functional tests,repeated input use cases were designed to test system stability and Jmeter tool was used to test response time.After testing,this thesis draws the conclusion that the system meets the user's demand.At the end of this thesis,the implementation process of the mobile terminal UI automated test platform is summarized.The thesis gives introduction of effort of the author,puts forward the problems to be solved in the platform,and suggestions for the next step.Mobile UI automated testing is rapidly evolving.The implementation of this platform can effectively reduce the learning cost of automated testing so as to attract more people to join the field of mobile UI automated testing,and promote the development of this field.
Keywords/Search Tags:mobile devices, UI automated testing, Robot Framework, Appium, keyword-driven
PDF Full Text Request
Related items