当前位置:主页 > 科技论文 > 软件论文 >

基于Jenkins的项目持续集成方案研究与实现

发布时间:2018-03-09 20:15

  本文选题:持续集成 切入点:Jenkins 出处:《西南交通大学》2017年硕士论文 论文类型:学位论文


【摘要】:软件产品的系统架构日益复杂,迭代周期越来越短。而每次产品版本发布前都需要对代码进行手动集成,使得开发人员、测试人员经常要花大量时间在产品集成上。一旦集成过程中出现问题就有可能导致产品发布延期,开发团队不得不寻找一种新的方案来解决面临的问题。持续集成通过频繁地构建代码,保证项目一直都能够正常运行,降低了发布产品失败风险,提高了产品质量。同时持续集成能够减少发布产品的重复劳动,节约人力成本。本文提出了一种基于Jenkins的持续集成解决方案,该方案使用Jenkins完成任务的分发调度工作,实现了代码静态检查、编译、部署和测试功能。主要完成工作如下:1.深入研究了持续集成理论基础,学习了持续集成过程中涉及到的各种技术和工具。详细设计了持续集成架构,把持续集成过程分成三个模块,即自动化构建模块、自动化部署模块以及自动化测试模块,并分别对各模块做出详细的设计。引入Docker容器,作为持续集成的构建环境,解决了构建环境配置复杂及重复配置的问题,达到了环境瞬间重现的目的。2.根据总体设计实现了自动化构建、自动化部署以及自动化测试三个模块。其中自动化构建及自动化部署模块主要完成了 Jenkins持续集成服务器的搭建和系统配置,并完成了相应构建和部署任务的脚本开发和配置工作。自动化测试模块主要设计并实现了一套基于Selenium2的自动化测试框架。该框架采用分层结构模型,主要包含UI层、Engine层、Page层、Utility层及底层Selenium2。为了最大程度实现测试自动化,分别设计并实现了页面对象代码生成器和数据源XML文档生成器。最终达到了页面元素、测试数据及业务逻辑相互分离的目标,减少了代码耦合,提高了测试脚本的复用性及可维护性,也降低了测试脚本的编写难度,从而满足了持续集成对自动化测试的需求。3.通过具体实例验证了本文设计的持续集成方案。验证了从代码提交,到代码静态检查、编译、单元测试、部署、自动化测试及反馈的完全自动化,达到了项目持续集成的目标。
[Abstract]:The system architecture of the software product is becoming more complex and the iteration period is getting shorter and shorter, and the code needs to be manually integrated before each release of the product version, so that the developer, Testers often spend a lot of time on product integration. The development team has to look for a new solution to the problem. Continuous integration ensures that the project will continue to work by building code frequently, reducing the risk of failure in the release of the product. At the same time, continuous integration can reduce the repeated work and save the labor cost. This paper presents a solution of continuous integration based on Jenkins, which uses Jenkins to complete the distribution and scheduling of tasks. The functions of code static checking, compiling, deploying and testing are realized. The main work is as follows: 1. The theoretical foundation of continuous integration is deeply studied. The architecture of continuous integration is designed in detail, and the continuous integration process is divided into three modules, that is, automation construction module, automation deployment module and automation test module. And each module is designed in detail. Docker container is introduced as a continuous integrated environment to solve the problem of complex and repeated configuration of the building environment. Achieve the goal of environment instant recurrence. 2. According to the overall design to achieve automatic construction, Automatic deployment and automated testing are three modules, in which the automation construction and automatic deployment module mainly complete the construction and system configuration of the Jenkins continuous integration server. The automatic test module mainly designs and implements a set of automated test framework based on Selenium2. It mainly includes UI layer engine layer and bottom layer selenium 2.In order to realize the test automation to the greatest extent, the page object code generator and the data source XML document generator are designed and implemented respectively. Finally, the page element is achieved. The separation of test data and business logic reduces the code coupling, improves the reusability and maintainability of test scripts, and reduces the difficulty of writing test scripts. In order to meet the requirements of continuous integration for automated testing. 3. Through a concrete example to verify the design of the continuous integration scheme, verify the code from the submission, to code static inspection, compilation, unit testing, deployment, Automated testing and complete automation of feedback, to achieve the goal of continuous integration of the project.
【学位授予单位】:西南交通大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP311.52

【参考文献】

相关期刊论文 前5条

1 张建;谢天钧;;基于Docker的平台即服务架构研究[J];信息技术与信息化;2014年10期

2 黄华林;;使用Selenium进行Web应用自动化测试的研究[J];电脑开发与应用;2012年04期

3 吴莹;;基于Selenium的Web自动化测试框架[J];科技传播;2011年18期

4 白国靖;;虚拟化技术在网络服务中的应用研究[J];电子世界;2011年09期

5 宋冬生;;Git——版本管理之利器[J];程序员;2007年11期



本文编号:1590083

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/ruanjiangongchenglunwen/1590083.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户38653***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com