Font Size: a A A

Research And Implementation Of Project Continuous Integration Scheme Based On Jenkins

Posted on:2018-05-13Degree:MasterType:Thesis
Country:ChinaCandidate:L W ZhangFull Text:PDF
GTID:2348330515971043Subject:Electronic and communication engineering
Abstract/Summary:PDF Full Text Request
Software system architecture is becoming more and more complex and the development cycle is becoming shorter.Before the release of each product version,testers and developers often spend a lot of time on manual integration.Once the potential problems appear in the integration process,product release time will be delayed.Hence the development team has to find an efficient solution to deal with the problem above.By frequently building code,continuous integration ensures that the project can always run properly and reduce the possible failure in the process of the product release and improve product quality.Meanwhile,continuous integration can also reduce the repeated work in the process of the product release,and save labor costs.Based on Jenkins continuous integration,a solution proposed in this dissertation which uses Jenkins to perform dispatching tasks,and code checking,compiling,deploying and testing functions are achieved.The main work of this dissertation is listed below:Firstly,the continuous integration theory is deeply studied,including the technology and tools involved.The continuous integration architecture proposed is divided into three modules,e.g.automation module,automated deployment module and automated test module.And each module is designed in detail.The Docker container is introduced as a building environment of continuous integration,which solves the problem of complex configuration and repeated configuration of the environment,and achieves the instant reproduction of the environment.Secondly,three automatic modules involved the build,deployment and testing are realized according to the overall design.The automated build and automated deployment module mainly perform the build of Jenkins server,the system configuration,the scripting development and the configuration tasks.Aiming at the problems and deficiencies in the existing integration testing,a set of automatic test framework based on Selenium2 is designed and implemented.The framework uses the idea of hierarchical architecture,including the UI layer,Engine layer,Page layer,Utility layer and the underlying Selenium2.The page object code generator and data source XML document generator are respectively designed.The framework realizes the separation of page elements,test data and business logic,and reduces the code coupling.Not only it improves the reusability and maintainability of test scripts but also reduces the difficulty of writing test scripts.Ultimately the framework can meet the needs of testing in the progress of continuous integration.Finally,an example is given to demonstrate the continuous integration scheme proposed.The example verifies the automation of code submission,code static checking,compiling,unit testing,deployment,automation test and feedback of the functions provided.
Keywords/Search Tags:Continuous Integration, Jenkins, Docker, Automatic Testing, Selenium2
PDF Full Text Request
Related items