Font Size: a A A

Design And Implementation Of An Automated Testing Platform For Electronic Business System

Posted on:2017-04-05Degree:MasterType:Thesis
Country:ChinaCandidate:H L DingFull Text:PDF
GTID:2428330590468399Subject:Software engineering
Abstract/Summary:PDF Full Text Request
At present,the electronic business system changes so frequently,what made it much more urgent to use automated testing to replace manual tedious and repetitive work.There are many researches on automated testing,but most of them only aim at a certain aspect.Such as,on single interface or single web page or single performance area,etc.But there is the lack of automated testing platform for integration of interfaces,web pages,continuous integration systems,and defect management systems.This research based on LINQ and Selenium technology,designs and implements an automated testing platform for the electronic business system,by using a hybrid automated testing framework.By using the modularity test framework,this thesis incorporates the interface automated testing module,the web page automated testing module,the integration of Jenkins system module,and the integration of Zentao system module.By using the data-driven test framework,the input and output parameters are configured flexibly in the XML file.In the process of system design and development,the following problems are mainly studied:(1)Based on LINQ technology,the platform implements the interface automated testing.By using LINQ to XML technology,the platform reads the corresponding parameters in the XML configuration file,which can be transferred as data for the logical layer of the interface automation.By using LINQ to SQL technology,the platform obtains the field value of database after the implementation of automated testing,which will be compared with the field values of the configuration file,so as to verify its correctness.The design embodies the idea that the test data and the test script are separated,which improves the expansibility of the system.It is the concrete realization of the data-driven testing.(2)Based on Selenium technology,the platform implements the web page automated testing.First,the input parameters are obtained by LINQ to XML technology.Then,the platform locates and operates the elements on the page by Selenium technology.And,the platform transfers the parameters in the XML configuration file to the background system.Finally,the platform checks the test results by the mechanism of “failure-> wait-> retry”.The design not only embodies the idea of the separation of test data and the test script,but also uses the mechanism of “failure-> wait-> retry” to avoid the failures due to the long time of page loading.(3)Based on LINQ technology,the platform implements the integration of Jenkins system.The system transfers the configuration time of the timed task on the test platform interaction page to background system.And the configuration file of the Jenkins system are modified by LINQ to XML technology.The design implements the automated testing from the real meaning,which not only triggers the automatic test on the page,implements the automation of the testing process,but also implements the automation of the test execution.(4)Based on LINQ technology,the platform implements the integration of Zentao system.In the process of automated testing,once the defect is found,the page elements of the Zentao system are located and operated by Selenium technology.Bug is automatically recorded to the Zentao System.The platform logs in the system as the identity of "interface automation tester" or "UI automation tester”,and records bug title,uploads the screenshot saving when defect were found as attachment,which provides the basis for tester and developer analyzing the test results and modifying the program.This automated testing platform is different from the traditional automated testing platform,which not only implements the traditional interface test and the web page test,but also integrates the integration with the continuous integration system and the defect management system.And it combined with the ideas of modularity framework and data-driven test framework,implements the design and application of hybrid test framework,based on LINQ and Selenium technology.This automated testing platform has been applied since May 2015.The results show that,compared with the traditional manual test,the automated testing platform greatly improves the work efficiency,and the former one day work can be shortened to ten minutes to complete.And it ensures the accuracy and intuitive of the test.It avoids the error caused by the negligence of the tester during manual test.It can also automatically record bugs in the Zentao system,for users to analyze the reasons.At the same time,it also implements the continuous integration with the Jenkins system,to ensure that the test case can be run automatically without supervision.
Keywords/Search Tags:Electronic business system, Automated testing, LINQ, Selenium
PDF Full Text Request
Related items