Hudson应用和分享课件_第1页
Hudson应用和分享课件_第2页
Hudson应用和分享课件_第3页
Hudson应用和分享课件_第4页
Hudson应用和分享课件_第5页
已阅读5页,还剩39页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、1Hudson介绍和应用分享3流程一、Hudson介绍二、Hudson应用ABS自动化测试DeployBox三、Hudson扩展应用四、QA?3Rise of Continuous Integration4Hudson5It basically does builds and tests7Hudson能做什么?1.三种Build1)CheckInBuild-提交编译,编译颗粒度自己定义2)定时Build-设置,类似于Crontab3)强制Build-界面发起4)编译参数自定义化2.通知机制根据Build情况,可以根据不同的对象定制不同的通知内容。构建失败时,默认会给该次构建的Commiter发

2、邮件告知。3.后续事情可以发布,打rpm包,单元测试等。FindBugs插件等.在线打tags等。4.相关URL:8080/ABS:一致的总体目标ABS:Hudson+Toast业务逻辑ABS使用开发者注意:1、登陆ABS的用户名是域验证。2、正式打包应当通过ABS来打,其中Build for QA的初始密码是111;Build for PE的初始密码是222;可以更改。QA请注意:sudo yum install -b test t_algo_keyprop_pp (包名),PE部署/PE注 意:install -b current t_algo_keyprop_pp (包名)例子:12Hu

3、dson在测试中的运用14Hudson 基础使用定时触发、检测代码更新触发Upstream project 触发15Hudson 基础使用原生的支持maven项目自动识别pom配置依赖版本跟踪17Hudson 基础使用测试结果展现原生支持junit报告支持多种测试结果展现18Hudson 基础使用构建结果展现静态代码检查Findbugs、PMD测试覆盖率Clover、Emma、 Cobertura 19Hudson 基础使用控制台实时输入构建日志20参数化构建在构建/测试过程中加入环境参数开发插件直观的展示构建参数Hudson 拓展使用21Matrix build使测试同时在多个环境下运行,如

4、不同的jdk版本, 不同的OS,不同的数据库,以及其他可自定义 的维度Hudson 拓展使用22Hudson remote access API支持json/xml支持xpath可用于获取构建数据,触发构建,修改配置示例参考链接:Hudson 扩展之Remote access APIHudson 拓展使用24环境 maven2 and jdk6使用:maven-hpi-pluginExtention pointseg: Notifier技术点:Jelly(视图), Stapler(MVC)参考链接:Hudson 扩展点Hudson扩展之插件开发Hudson 扩展25测试用例管理不统一、信息孤岛

5、和重复工作多统一完善的测试用例管理平台测试数据量大、增删改查困难统一完善的测试数据管理平台重复代码多、依赖于工程师自身技术能力强大的基于流程和模型的测试框架平台多、维护成本高、单机不满足巨量的测试需求统一的分布式集成环境Hudson 测试随想安装新的slave前20个slave, 手工安装插入光驱,然后不停的点击,输入,点击,输入无法规模化有一种自动化的解决方案 “Hudson PXE Plugin”27自动系统安装28SlavesPower on, hit F12PC boots from network (PXE)Hudson + PXE pluginISO images of OS29S

6、lavesPower on, hit F12PC boots from network (PXE)Choose OS from menuInstalls non-interactivelyHudson + PXE pluginISO images of OSYour corporate IT guy & his DHCP server自动系统安装支持 OpenSolaris, Ubuntu, CentOS, FedoraTrivial with most Linux对于windows也同样适用30自动系统安装MasterServes HTTP requestsStores all import

7、ant infoSlaves170KB single JARAssumed to be unreliableScale to at least 100LinkSingle bi-di byte streamNo other requirements31Hudson分布式构建For Unix slaves, via SSHOnly need SSH and JRE on slavesWe just need a host name32Master和slave的连接方式For Windows, DCOMWe just need admin user name and passwordNo manu

8、al interventionWorks even from Unix masters33Master和slave的连接方式Via Java Web StartWhen master cannot see slavesA separate socket connection is made34Master和slave的连接方式Once started, can be installed as Windows service35Master和slave的连接方式Your builds/tests need to run in specific environmentDependency on i

9、ndividual nodes hurts utilization36商品线页面自动化Windows testtopApiLinux testjobsslaves交易线页面自动化Windows testTfs LinuxPerf testCluster带来的挑战Windows slaveLinux Perf slaveLinux slaveWindows slaveWindows slaveLinux Perf slaveLinux slaveWindows slaveLabel is a group of slavesTie jobs to labels37商品线页面自动化Windows t

10、esttopApiLinux test交易线页面自动化Windows testTfs LinuxPerf testWindows slaveLinux Perf slaveLinux slaveWindows slavejobsslavesWindowslinuxLinux perf使用label标注We want jobs to be mostly on the same slaveFaster check outConsistent resultsMinimizes disk consumptionBut does it softlyHudson uses consistent hash*

11、 to achieve thisMore schedule controls become possible:Use faster machines more frequentlySlowly ramp up newly installed slaves38Coming to your Hudson soon* /wiki/Consistent_hashingCluster带来的挑战Hudson monitors key health metrics of slavesLow disk space, insufficient swapClock out of synchExtensibleSl

12、aves go offline automaticallyCatch problems before they break builds39预警40Load 监控Hudson Hadoop pluginJust a few mouse clicks to installTurn every Hudson slave into a Hadoop nodeDistributed file systemAutomatic data replication (fault tolerant)Nice for storing old artifacts, logs, test records, Map/reduce frameworkLarge scale test results analysis / dataminingMore interesting work to be done in the future41SeleniumTests webapps by scripting browsersSelenium GridRuns Selenium ov

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论