selenium+testng+gitblit+jenkins+ant自动化测试系列四:Eclipse安装git插件-解决安装egit后找不到git问题

Git是一款免费、开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。Eclipse的git插件叫EGit,类似是GIT的GUI工具。

1.help->AboutEclipse查看eclipse版本

 

2.检查Eclipse中是否已安装EGit插件,Help -> AboutEclipse,查看是否有EGit插件的图标

不同的版本安装的Egit图标貌似不同,有茶杯图标

 

或者类似二叉树图标

我使用的版本先安装的是第二个图标的egit,但是却在preferences-team中找不到git选项,然后卸载了重新安装,才可正常使用。(卸载:在help-AboutEclipse-Installation Details中选中对应的插件进行卸载)

3.安装Egit,不要盲目安装,一定要根据自己的eclipse版本安装对应的egit版本.

EGit对应的Eclipse版本列表

EGit

Contained in release train

Supported Version of Eclipse

p2 repository URL

4.1.0.201509280440-r (latest release)

Eclipse 4.6 M2 (Neon M2)

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.1

4.0.3.201509231615-r

Eclipse 4.5.1 (Mars.1)

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0.3

4.0.2.201509141540-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0.2

4.0.1.201506240215-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0.1

4.0.0.201506090130-r

Eclipse 4.5.0 (Mars)

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-4.0

3.7.1.201504261725-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.7.1

3.7.0.201502260915-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.7

3.6.2.201501210735-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.6.2

3.6.1.201501031845-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.6.1

3.6.0.201412230720-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.6

3.5.3.201412180710-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.5.3

3.5.2.201411120430-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.5.2

3.5.1.201410131835-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.5.1

3.5.0.201409260305-r

 

Eclipse 3.8.2/4.2.2 + (Juno), support for 3.8.2 was fixed see bug 438601

http://download.eclipse.org/egit/updates-3.5

3.4.2.201412180340-r

Eclipse 4.4.2 (Luna SR2)

Eclipse 4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.4.2

3.4.1.201406201815-r

Eclipse 4.4.1 (Luna SR1)

Eclipse 4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.4.1

3.4.0.201406110918-r

Eclipse 4.4 (Luna)

Eclipse 4.2.2 + (Juno)

http://download.eclipse.org/egit/updates-3.4

3.3.1.201403241930-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.3.1

3.3.0.201403021825-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.3

3.2.0.201312181205-r

4.3.2 (Kepler SR2)

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.2

3.1.0.201310021548-r

 

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.1

3.0.3.201309161630-r

4.3.1 (Kepler SR1)

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.0.3

3.0.1.201307141637-r

4.3.0 (Kepler)

Eclipse 3.8.2/4.2.2 + (Juno)

http://archive.eclipse.org/egit/updates-3.0.1

2.3.1.201302201838-r

3.8.2/4.2.2 (Juno SR2)

Eclipse 3.7.2+ (Indigo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.3

2.2.0.201212191850-r

3.8.1/4.2.1 (Juno SR1)

Eclipse 3.7.2+ (Indigo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.2

2.1.0.201209190230-r

3.8.1/4.2.1 (Juno SR1)

Eclipse 3.5.2+ (Galileo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.1

2.0.0.201206130900-r

3.8/4.2 (Juno)

Eclipse 3.5.2+ (Galileo) (except EGit Import Support feature, which is optional)

http://archive.eclipse.org/egit/updates-2.0

1.3.0.201202151440-r

3.7.2 (Indigo SR2)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.3

1.2.0.201112221803-r

3.7.2 (Indigo SR2)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.2

1.1.0.201109151100-r

3.7.1 (Indigo SR1)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.1

1.0.0.201106090707-r

3.7.0 (Indigo)

Eclipse 3.5.2+ (Galileo)

http://archive.eclipse.org/egit/updates-1.0


如我的elipse版本为Eclipse 4.4.2 (Luna SR2),则下载地址为http://download.eclipse.org/egit/updates-3.4.2

在help-install new software中输入http://download.eclipse.org/egit/updates-3.4.2,勾选加载项,后面就一直点击下一步,接受,安装,重启软件,git插件就安装好了.

 

如果不选择对应的版本,直接输入网址http://download.eclipse.org/egit/updates,下载安装后就会出现在preferences-team中找不到git选项的问题.

 

4.配置Git

菜单栏Window ->Preferences -> Team -> Git -> Configuration,点击Add Entry…,添加name和email,在将项目代码commit到Git时需要用到name和email信息。在点击AddEntry…弹出的对话框中,Key填user.name,Value填姓名信息,这是添加name信息,在添加email信息时,Key填user.email,Value填email地址。如图:

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
搭建项目自动化框架的过程大致可以分为以下几个步骤: 1. 安装 Docker 和 Jenkins - 首先需要在你的机器上安装 Docker,可以参考官方文档:https://docs.docker.com/get-docker/ - 然后安装 Jenkins,可以通过 Docker 镜像来安装:`docker run -d -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts` 2. 配置 Jenkins - 打开浏览器,访问 `http://localhost:8080`,输入初始密码(可以通过 `docker logs <container_id>` 来获取)进入 Jenkins 控制台 - 安装必要插件,例如 Git Plugin、Allure Plugin 等 - 配置全局变量和 Jenkins 节点等,根据实际需要进行设置 3. 编写测试代码和配置 Pytest - 编写测试用例代码,可以使用 Pytest 框架进行编写 - 在项目根目录下创建 `requirements.txt` 文件,列出项目所需的依赖库,例如 Pytest、Selenium 等 - 在项目根目录下创建 `pytest.ini` 文件,配置 Pytest 的运行参数,例如测试报告输出路径等 4. 使用 Git 进行版本控制 - 在 Github 或 Gitlab 等平台上创建项目并将代码上传至仓库 - 在 Jenkins 中配置 Git 插件,设置 Git 仓库地址、分支等相关信息 - 在 Jenkins 中创建一个新的任务,设置构建触发器、Git 仓库等相关信息 5. 集成 Pytest 和 Allure - 在 Jenkins 中配置 Allure 插件安装 Allure 命令行工具 - 在 Jenkins 的构建任务中添加构建步骤,编写 Pytest 和 Allure 的命令 - 在 Jenkins 中查看测试报告和测试结果 这些步骤只是大致的流程,具体细节可以根据实际情况进行调整和修改。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值