Font Size: a A A

Design And Implementation Of Web UI Automation Test Framework Based On Selenium2

Posted on:2018-08-31Degree:MasterType:Thesis
Country:ChinaCandidate:F HongFull Text:PDF
GTID:2348330515969122Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the rapid development of the Internet,the iteration of the project is getting shorter,and the workload of testers becomes heavier.In order to alleviate the work of testers and to improve the efficiency of testing,this thesis designed and developed an automated regression test framework of Web UI,based on the Selenium2 which is automation testing framework.The test framework uses the Selenium2 as the base framework,combining the TestNG unit test framework and the Log4j log component,applies the SVN to control the version of test framework,integrates the Jenkins continuous integration platform to implement trigger and timing execution of test cases,and to send the test report to the tester,facilitating the tester to understand the execution environment of cases in time.The main work of the thesis is as follows:(1)Introducing the background,significance and present situation of the project,and summarizing the goal and contents of the thesis.(2)Introducing the automation testing,the mainstream web automation testing framework,and the involved technology.(3)Analyzing the automation testing framework,clarifying the requirements of the testing framework,and designing the overall structure and function module of the testing framework.(4)The the test framework is divided into four modules,i.e.the underlying API module,the page object module,the test case module and the driver module.The underlying API module is essentially to code a function that simulates the user's operations on a web page,such as opening a page,clicking,and so on.The page object module is to create and encapsulate the pages by invoking the underlying API.The test case module is encapsulated by invoking one or more methods of the page object to encapsulate the test cases with a certain scene meaning.The driver module opens the browser by using the method Selenium provided.(5)The testing framework is specifically applied to LOFTER,which is the product of NetEase,and combinswith the Jenkins platform to automate concurrent execution of test cases on multiple machines and to send test reports to testers by email.The test framework has been implemented and applied to the web side of the LOFTER product of NetEase company,which is used to substitute the artificial regression test.The actual operation results show that the test framework improves the test efficiency to a large extent.
Keywords/Search Tags:Automation testing, Test case, Selenium2, Jenkins, TestNG
PDF Full Text Request
Related items