Font Size: a A A

The Design And Implementation Of Android GUI Test Script Repairing System

Posted on:2020-09-12Degree:MasterType:Thesis
Country:ChinaCandidate:X Z ChenFull Text:PDF
GTID:2428330575955095Subject:Engineering
Abstract/Summary:PDF Full Text Request
With the continuous development of mobile Internet,mobile applications have become a indispensable part of people's lives and Android applications occupy a con-siderable market.The rapid iteration of Android applications challenges comprehen-sive regression testing.Version changes often change the interface(GUI)structure and operation flow,which leads to the failure of the original GUI test scrnpt and can not be reused directly.Enterprises need to invest a lot of resources to manually review script code,this affects the quality assurance and release cycle of applications.There-fore,improving test script reusability is of great value to mobile application quality assurance.This thesis designs and implements an Android application GUI test script repair system,which improves reusability by repairing GUI test scripts that have failed due to version updates.The system divides the repair process into four parts.Firstly,the GUI components of Android applications are extracted by using the automated traversal tool and the event flow graph model is established.The graph structure can concisely and intuitively reflect the GUI characteristics of Android applications.Then the data of GUI components' locator in the test script code is extracted and the mapping re-lationship between the script code and the model is established.Then an automatic repair algorithm is constructed based on event flow graph and mapping relationship data,Freud algorithm is used to preliminarily repair scripts.Finally,on the basis of automated repair,the method of man-machine collaborative repair is provided to fur-ther improve the repair effect.In the aspect of system construction,this thesis adopts service-oriented architecture and uses Spring Boot to build a server-side program and Dubbo to implement remote procedure call for repair service.The system uses My-batis to manage data persistence layer,Angular to build front-end program,Http to interact with front-end and back-end separately,Nginx for reverse proxy and load bal-ance.In the aspect of mobile application testing framework,this thesis uses Appium and Uiautomator to build Android automated test input generation and execution tool and implement the real-time running of test scripts.This thesis preliminarily evaluates the availability of Android GUI test script re-pair system.Seven different versions of open source Android applications and corre-sponding GUI test scripts are selected for repair experiments.After manual verification and statistics,the average accuracy of repair reaches 80.27%.Android GUI test script repair system can improve the reusability of test script in Android application GUI re-gression test,improves the efficiency of testers maintaining scripts,and accelerate the iteration of mobile application software development.
Keywords/Search Tags:Android GUI Test, Test Script Repair, Event Model, Human-machine Collaboration
PDF Full Text Request
Related items