The present invention provides a method of automatic test based on continuous integration, which belongs to the technical field of automation testing, to solve the bug cannot be handled in time so as to reduce the efficiency of the test problems in software development, by adopting the technical scheme: in version control and configure the SVN server on the hook scripts; developers submit the test code by SVN, version control server through the hook the script code has been submitted to detection; SVN hook scripts trigger compilation server starts to work, complete code compilation and packaging; after the package is complete, inform the Jenkins continuous integration tool continuous integration server; continuous integration server to just compile generated by the server installation package through the network transmission mode, and the installer installation; after the start of automated testing, automated testing of products after installation The test results are analyzed and the bug is detected from the source of the test to improve the efficiency of the test. The invention also provides a continuous integrated device based on automated testing.
【技术实现步骤摘要】
一种基于自动化测试的持续集成方法及装置
本专利技术涉及自动化测试
,具体地说是一种基于自动化测试的持续集成方法及装置。
技术介绍
软件开发过程中,采用较多的是瀑布式开发模式,即按照需求分析、设计、编码,然后到最后的测试。这种测试的流程往往存在着一定的弊端,有些原本存在的bug,没有在第一时间内进行处理,而是到最后集成测试的时候再去测试和处理bug。这样处理bug的方式比较浪费时间和精力,效率低下。基于上述测试过程中存在的问题,提出一种基于自动化测试的持续集成方法及装置,实现代码提取,软件打包安装,运行自动化测试,发现bug、代码上传自动化流程。
技术实现思路
本专利技术的技术任务是解决现有技术的不足,提供一种基于自动化测试的持续集成方法,以从测试的源头检测bug,提高测试的效率,减少测试bug的时间。本专利技术的技术方案是按以下方式实现的:一种基于自动化测试的持续集成方法,该方法通过Jenkins持续集成工具,判断SVN上的代码提交情况,判断是否启动自动化测试,然后通过自动化测试的情况分析bug和决定代码是否有提交的权限。该方法的实现过程包括:1)在版本控制服务 ...
【技术保护点】
一种基于自动化测试的持续集成方法,其特征在于,该方法通过Jenkins持续集成工具,判断SVN上的代码提交情况,判断是否启动自动化测试,然后通过自动化测试的情况分析bug和决定代码是否有提交的权限。
【技术特征摘要】
1.一种基于自动化测试的持续集成方法,其特征在于,该方法通过Jenkins持续集成工具,判断SVN上的代码提交情况,判断是否启动自动化测试,然后通过自动化测试的情况分析bug和决定代码是否有提交的权限。2.根据权利要求1所述的一种基于自动化测试的持续集成方法,其特征在于,该方法的实现过程包括:1)在版本控制服务器上配置SVN的钩子脚本;2)开发人员通过SVN提交测试代码,版本控制服务器通过钩子脚本会检测到代码已经提交;3)SVN的钩子脚本触发编译服务器开始工作,完成代码的编译和打包;4)打包完成后,通知Jenkins持续集成工具的持续集成服务器工作;5)持续集成服务器通过网络传送的方式取到刚刚编译服务器生成的安装包,并执行安装程序;6)安装完成后,启动自动化测试,对安装后的产品进行自动化测试并分析出测试结果。3.根据权利要求2所述的一种基于自动化测试的持续集成方法,其特征在于,在步骤3)中,钩子脚本触发编译服务器工作的内容包括:检出SVN上的代码,调用ANT工具,实现检出代码的编译和打包。4.根据权利要求2所述的一种基于自动化测试的持续集成方法,其特征在于,在步骤6)中,自动化测试全部通过时,系统通知提交代码的用户代码提交成功;自动化测试失败时,系统会通知用户代码提交失败,并会告知版本控制服务器取消刚刚用户上传的代码。5.根据权利要求2所述的一种基于自动化测试的持续集成方法,其特征在于,在该方法的实现过程中,...
【专利技术属性】
技术研发人员:王亮,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。