UI automation testing is an automated testing method that implements automatic operation and verification in code by simulating manual operation of the user UI interface.For the implementation scenario of embedded Web pages in Android Applications,the current common open source Android UI automation testing frameworks cannot meet the reqUIrements of using Android UI automation capabilities and Web UI automation capabilities in the same test case at the same time,and has a high ease of use.gender these two conditions.However,if only the Web page itself is tested,it is difficult to find the compatibility problem of the Web page in the Application.In order to solve the above problems,this subject designs and implements the Android-Webview automated testing framework.This paper studies UI automation testing,designs and implements an automated testing framework that supports both Android UI automation capabilities and Web UI automation testing capabilities,and supports cross-platform and cross-process testing.In this paper,the layered design is adopted to realize the basic ability of automation framework,device driving ability and control driving ability in layers.In this paper,the automation operation obtains the control attribute information by the control driving ability,and completes the click and other operations by the device driving ability,which simplifies the realization of cross-platform automation.In this paper,a unified encapsulation layer is added on top of the automation capability as an interface for users to use the automation capability,which shields the user from the differences in the underlying implementation of the measured object,making the framework easier to use.In summary,this paper designs and implements an Android-Webview automation testing framework that supports both Android UI automation capabilities and Web UI automation capabilities and has better usability. |