Jmeter+Jenkins+maven接口自动化集成

上传人:我*** 文档编号:136333843 上传时间:2020-06-27 格式:DOC 页数:38 大小:1.78MB
返回 下载 相关 举报
Jmeter+Jenkins+maven接口自动化集成_第1页
第1页 / 共38页
Jmeter+Jenkins+maven接口自动化集成_第2页
第2页 / 共38页
Jmeter+Jenkins+maven接口自动化集成_第3页
第3页 / 共38页
Jmeter+Jenkins+maven接口自动化集成_第4页
第4页 / 共38页
Jmeter+Jenkins+maven接口自动化集成_第5页
第5页 / 共38页
点击查看更多>>
资源描述

《Jmeter+Jenkins+maven接口自动化集成》由会员分享,可在线阅读,更多相关《Jmeter+Jenkins+maven接口自动化集成(38页珍藏版)》请在金锄头文库上搜索。

1、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立即构建

2、27五、 附录28软件版本说明软件名称版本号下载地址JDK1.8 64bithttp:/ 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是一个软件项目管

3、理工具,管理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是从公有仓

4、库下载依赖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 | th

5、is 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:/ - alimaven aliyun maven http:/ central repo2 centr

6、al 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:/ ui central Human Readable Name for this Mirror. http:/uk.maven.org/maven2/ ibiblio central Human

7、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 mor

8、e 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-te

9、st, 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:/ default s

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 事务文书

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号