Font Size: a A A

Design And Realization Of Visual Automatic Test Framework Based On Selenium

Posted on:2018-02-19Degree:MasterType:Thesis
Country:ChinaCandidate:L S ShiFull Text:PDF
GTID:2348330542471916Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the popularity of Internet technology,the importance of Web testing begins to be reflected.Web automated testing has a broad market.In recent years,with the development of automated testing,testing framework becomes to be popular.This topic comes from actual project,aims to improve testing efficiency and reduces the difficulty of writing automated test scripts and test case.This thesis mainly studied the visualized automated framework which base on Selenium.The author's main work is as follows:First,introduce the working principle and basic application of Selenium,and TestNG test framework and ReportNG report template features,then analyze the steps and key points of using Eclipse to build a development environment.Secondly,according to the characteristics of the enterprise,the thesis puts forward the concrete demand from the aspects of business,function and nonfunctioning aspect.Based on the object-oriented development mode,the architecture design of the automated test framework based on Selenium visualization is given,including the framework core which is the secondary encapsulation of Web page elements base on Selenium(Framework core),to achieve the business logic of the project logic business logic(Business logic),combined with the framework core and business logic to use case scheduling and management of the test data(Data),to achieve the presentation of test results then mail push it(Result).And then secondary development encapsulation based on Selenium Webdriver and reportNG,optimize the positioning methods of Web page element,achieve the visualization effect,including use Selenium to complete the secondary encapsulate of the element in the page,and use the Java reflection mechanism to complete the coding of the core code of the framework,and realize the automated testing of the page visualization,use Java to read Excel test data,then change their format to adapt to framework,use ReportNG to encapsulate the results of the test,and implement the page presentation and email push the results.Finally,through the application of automated testing of EOMS system,the application of automated test framework has been applied,and the results of the application of the framework are analyzed and summarized in detail.At present,the automated test framework has been used in projects such as EOMS,MIS and BHZ.The results of the operation show that the automation test framework has good compatibility,reliability,stability and expansibility,which improves the efficiency and coverage of the test,and effectively reducing the strength of the test staff.
Keywords/Search Tags:Automatic Test, Testing Framework, Web Testing, Visualization
PDF Full Text Request
Related items