Font Size: a A A

Design And Implemention Of Distributed Parallel Testing Framework For Web Application

Posted on:2017-07-15Degree:MasterType:Thesis
Country:ChinaCandidate:S Z JiangFull Text:PDF
GTID:2428330596490005Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Web applications are rapidly developing,and it is closely related to the work and life.Web application developer and quality assurance should not only improve the quality of Web application during the development,but also need to verify the quality of Web application during the testing.Design and implement a distributed parallel test framework for Web applications,which will be able to automate the manual test cases into test scripts,and test scripts are executed on the distributed test environments.This greatly improves the testing coverage rate and quality for the Web application,and also improves the efficiency,and reduces the cost of the project.First,it is an automation testing framework for Web applications.QA writes the test scripts based on this automation framework rules and the manual test cases for Web application.The test scripts can be executed continuously in the future,especially during the regression testing,and it will save a lot of time and manpower cost.Secondly,this framework provides a distributed parallel operation mode.According to the project needs,QA can choose the local or remote mode,and parallel or serial mode,running test case execution test on different types of browsers.Finally,the framework also provides a complete and friendly HTML report for the testing results.In this report,it contains test script running result,detailed log for the important steps.QA can accurate locate the Web application defects based on those detailed information in a short time.Managers get familiar with the quality of Web applications well based on this report.Test script is designed based on Selenium Web Driver technology.Selenium Web Driver can simulate the operation of the real user interacts with the Web application.The architecture is also applied to the page object mode and keyword driven test.The basic idea of Page Object is designing each page as an object.Elements of one page are defined in a class file which isnamed the object class file.All potential operations of one page are defined a class file which is named the operation class file.Keyword driven testing is based on the framework of the definition of the key word test case format,manual test cases compiled into XML format keyword test script.The framework profile and the commonly used variables defined in the another file,the system provides the operation of the file class,such as the interaction with Excel,TXT,XML,database and so on.Distributed parallel test is implemented based on Selenium Grid and TestNG technology.Test scripts can be batch run based on TestNG.Selenium Sever contains Hub and Nodes for the distributed parallel testing.Hub is started on a testing Server machine,and Node is started on the testing client machines.Nodes machines are connected to the Hub machine automatically.Type and version of the browser can be specified on the Node machines.Test scripts and testing environment are defined on Hub machine.In this way,test script and other testing information are distributed from Hub machine to Node machines.Test scripts are executed on the Node machine,and Hub machine finally collects the test log and result.This testing framework uses SLF4 J and Logback classes to define the testing log.Test report is designed based on ReportNG which provides QA a friendly HTML report.The framework is deployed on Jenkins.It continues to integrate the configuration of the test framework,run the test scripts,and display the testing report.Finally,I chose GitHub as Web application to verify the functions of this testing framework.First is getting familiar with the functions of GitHub.Design some manual test cases.Design test scripts based on this testing framework and manual test cases.Prepare the distributed parallel environment,and run test scripts in distributed parallel.Review and check test report and execution log.Maintain test scripts.If it is used in the enterprise,the framework for code deployment can be set in SVN or cloud,Jenkins virtual machine can also be specified using cloud services,can greatly reduce the maintenance cost and the cost of the project.
Keywords/Search Tags:Web application testing, testing framework, distributed parallel testing, automation testing
PDF Full Text Request
Related items