资源预览内容
第1页 / 共33页
第2页 / 共33页
第3页 / 共33页
第4页 / 共33页
第5页 / 共33页
第6页 / 共33页
第7页 / 共33页
第8页 / 共33页
第9页 / 共33页
第10页 / 共33页
亲,该文档总共33页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
精品资料推荐Jmeter+Jenkins+maven接口自动化集成(V1.0) 目录Jmeter+Jenkins+maven接口自动化集成1软件版本说明3一、 JDK安装配置3二、 Maven安装配置31.1 Maven安装31.2设置环境变量31.3 maven配置5三、 Maven工程搭建92.1、eclipse创建maven工程92.2、Maven工程子目录创建102.3、Jmeter配置文件修改112.4、编辑pom.xml文件12四、 Jenkins集成193.1 Jekins 安装193.2 Jekins 配置193.3 jenkins新建一个maven风格的项目223.4 执行job立即构建27五、 附录28软件版本说明软件名称版本号下载地址JDK1.8 64bithttp:/www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Jenkins 2.89.4(LTS)https:/jenkins.io/download/ maven3.3.9http:/maven.apache.org/download.cgitomcat8.5.27https:/tomcat.apache.org/download-80.cgi 1、 JDK安装配置因为本次配套的Jmeter和Jenkins是基于JAVA语言开发的,需要JDK1.8支持,首选需要安装配置JDK1.8。 JDK安装配置详见附录手册。2、 Maven安装配置Maven是一个软件项目管理工具,管理java项目。我们最能感受到的Maven的好处应该是它的“自动化构建”与“管理依赖关系”两大功能。1.1、Maven安装将Maven包(apache-maven-3.3.9.zip)解压到对应目录,我这里放到D:java目录下。1.2、设置环境变量新建变量名MAVEN_HOME,变量值为maven包路径:MAVEN_HOME=D:javaapache-maven-3.3.9在PATH变量值末位追加:;%MAVEN_HOME%bin 。验证是否配置成功打开cmd命令窗口 输入:MVN V,窗口打印出maven版本及环境信息,说明配置成功。1.3、maven配置默认maven是从公有仓库下载依赖jar包,如果公司有自己的私服,最好连上,这样下载jar会快点。 路径:D:javaapache-maven-3.3.9confsettings.xmlMaven配置文件: !- pluginGroup | Specifies a further group identifier to use for plugin lookup. com.your.plugins - !- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | mirrorId repositoryId Human Readable Name for this Mirror. http:/my.repository.com/repo/path - alimaven aliyun maven http:/maven.aliyun.com/nexus/content/groups/public/ central repo2 central Human Readable Name for this Mirror. http:/repo2.maven.org/maven2/ mvnrepository mvnrepository maven http:/central.maven.org/maven2/ central net-cn central Human Readable Name for this Mirror. http:/maven.net.cn/content/groups/public/ ui central Human Readable Name for this Mirror. http:/uk.maven.org/maven2/ ibiblio central Human Readable Name for this Mirror. http:/mirrors.ibiblio.org/pub/mirrors/maven2/ jboss-public-repository-group central JBoss Public Repository Group http:/repository.jboss.org/nexus/content/groups/public !- profile | Specifies a set of introductions to the build process, to be activated using one or more of the | mechanisms described above. For inheritance purposes, and to activate profiles via | or the command line, profiles have to have an ID that is unique. | | An encouraged best practice for profile identification is to use a consistent naming convention | for profiles, such as env-dev, env-test, env-production, user-jdcasey, user-brett, etc. | This will make it more intuitive to understand what the set of introduced profiles is attempting | to accomplish, particularly when you only have a list of profile ids for debug. | | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo. jdk-1.4 1.4 jdk14 Repository for JDK 1.4 builds http:/www.myhost.com/maven/jdk1
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号