Font Size: a A A

Design And Implentation Of WebView Page Automated Test System In Android Application Program Based On GU

Posted on:2022-09-25Degree:MasterType:Thesis
Country:ChinaCandidate:Q M JiangFull Text:PDF
GTID:2518306338968639Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid development of mobile devices and the continuous improvement of Android platform,mobile applications have become the standard output mode of Internet brands.How to quickly and low cost online application function in the rapidly changing Internet environment has become one of the basic pursuits of application developers,so hybrid application emerges as the times require.Hybrid application uses web mode to develop core functions,and uses Web View(Android),uiwebview(IOS)and other controls to run web program code on the native development framework,which integrates the advantages of cross platform development of web and good interaction of native application.In order to ensure the quality of the application,the research of automatic traversal testing technology has become a hot topic.However,the existing automatic testing technology takes the control as the minimum fine-grained dynamic testing,and can not completely cover the content of Web View in hybrid applications.Therefore,it is very important to test the Web View page of hybrid application automatically.In order to solve the above problems,this paper proposes an automatic test method of Web View based on threshold optimization GUI model traversal algorithm,which verifies the effectiveness of traversal algorithm,and applies the automatic traversal test to Web View security detection.The purpose of this method is to traverse the events of Web View page through automated testing,so as to provide a new entry point for automated testing of Web View components.The technology uses the hybrid application of Web View in the static analysis and screening section,and then simplifies the GUI event tree of Web View pages in the dynamic running process,constructs the GUI model,and constantly adjusts the model tree according to the real-time feedback information of events in the test process,calculates the appropriate exploration path,and completes the page traversal test with the least event triggering.The main work of this paper includes:1.The static analysis technology is used to analyze and test the application to obtain the information of the activity and the corresponding event callback interface,and the corresponding input event set is established for the activity through the above information.Aiming at the HTML page in WebView,the current DOM tree information is obtained,and then a GUI model that can cover the WebView page is built based on the obtained activity GUI information.2.Aiming at simplifying the inner and outer state space of the established GUI model,this paper proposes a grouping algorithm to compare the characteristics of nodes in the same layer to simplify the tree structure required by the GUI model,so as to reduce the inner space of the GUI model.A path exploration method based on Q-learning algorithm is proposed,which can traverse the GUI model and dynamically adjust the model according to the feedback results.3.Based on the above method,we design and implement a web view page traversal testing system gadroid,and compare it with the existing traversal testing tools to verify the effectiveness.Then the system is applied to Web View security detection to verify the practicability of the system.
Keywords/Search Tags:WebView automation test, GUI model, WebView simplification, model explorati
PDF Full Text Request
Related items