Font Size: a A A

Design And Implementation Of Web Function Automation Test Framework Based On Selenium

Posted on:2022-04-05Degree:MasterType:Thesis
Country:ChinaCandidate:J X SunFull Text:PDF
GTID:2518306323955549Subject:Computer technology
Abstract/Summary:PDF Full Text Request
In order to ensure the correctness,security,stability and good user experience of the web application in the use process,the position of software testing in the software development process has become more and more important.At present,the testing of Web applications is still dominated by manual testing.This method not only has low testing efficiency,but also cannot meet the needs of rapid iteration of software systems.Therefore,how to comprehensively apply automated testing technology and improve the existing automated testing methods is one of the urgent problems to be solved in the field of software testing.Automated testing by building an automated testing framework is currently one of the most common ways to implement automated testing.However,the existing testing frameworks generally have problems such as poor applicability,difficulty in script development,and difficulty in maintaining,which made it difficult to promote in the software development process.Therefore,this paper proposes to design a more optimized testing framework,which can better complete the testing tasks for Web application functions.This paper optimizes the testing framework,and designs the application automation testing framework by using the web application testing tool-Selenium,and conducts practical application.This framework combines the advantages of both data-driven technology and keyword-driven technology to form a hybrid automated testing framework.This framework applies the image-oriented design concept in the design process,using the existing automated testing framework in Selenium to re-encapsulate the web application testing framework,and the positioning methods and positioning expressions of page elements are stored in the object library.In order to facilitate the call and operation of subsequent test scripts.Set up multiple drivers,realize the separation of data and test scripts through data-driven mode,and realize the separation of business logic and application programs through keyword-driven.In the script design,the Page Object design idea is adopted to divide the test script into 5 layers,which further improves the maintainability of test cases.And in the final automated testing stage,the unit testing framework Test NG and the integration platform Jekins are used for testing together.The test results show that the excellent results of testing at any time and fast testing can be achieved during the testing process.Finally,the MIMS system is tested with the built Web test framework,and the test results are compared with the manual test results.By comparing the test results of the same object under the two methods,the former has great efficiency in the test process.For the latter,it greatly saves the time cost of Web application testing,and also greatly saves the software testing cost.Through the application practice of specific objects of the automated test framework built in this article,it further demonstrates the rationality of the actual application of the test framework.
Keywords/Search Tags:Web automated testing, Automation Test Framework, Selenium, test script development, Hybrid Drive Test Framework
PDF Full Text Request
Related items