| With the development of Internet technology and cloud computing technology,the development and testing of Web system has become a very important part in the process of software development.As the requirements of the product change frequently and the functional version is constantly updated,a large number of testers must be relied on in the regression testing of software to ensure the quality of the product.In order to solve this problem,this paper designs and develops a Web automatic test system based on Selenium.In this paper,the Shumi-Artificial Intelligence basic data service platform is taken as an example.On this basis,this paper proposes a Web hybrid driver automation testing framework based on Selenium.It includes keyword module,Base Page module,execution module and report generation module.In this paper,Python is used as the development language,Pycharm is used as the integrated development environment,xpath localization method is used to locate and encapsulate the elements in the page,and Selenium Web Driver is used to locate these elements.The automated testing system developed in this paper based on Selenium has been used in regression testing of the Shumi-Artificial Intelligence basic data service platform.Through the research and analysis conducted in this paper,it can be seen that the more times regression testing is performed,the greater the percentage of efficiency improvement of automated testing compared with manual testing.Using the Selenium automated testing framework can not only reduce the labor cost of regression testing,but also reduce the requirement on testers’ ability to develop automated test scripts. |