Pull the scripts of nGrinder via SourceTree

2015-02-25  籽藤 

SourceTree是Mac上一款很赞的代码管理客户端。可以同步Git和svn代码。

nGrinder是基于Grinder的性能测试平台,它内置了svn对测试脚本进行版本管理。通过web方式访问,比如:http://192.168.1.77:9999/ngrinder-controller-3.3/svn/applewu 就可以看到用户(applewu)创建的所有脚本。

那么,如何用SourceTree同步nGrinder上的脚本呢?

1. 打开SourceTree,创建Repository指向本地一个目录2. 安装Subvertpy or the Subversion Python SWIG bindings!

在终端输入:brew install --with-python subversion 安装之后的配置命令:sudo sh -c 'echo /usr/local/lib/svn-python > /Library/Python/2.7/site-packages/subversion.pth'

3. 配置Repository

在SourceTree的bookmarks窗口,双击第一步创建的Repository查看详细信息。点击[Settings]-[Remotes]-[Add],把你在web上可以访问到的svn路径(比如:http://192.168.1.77:9999/ngrinder-controller-3.3/svn/applewu)黏贴过来。点击[ok]即可。

4. 同步代码

在SourceTree中点击[Pull]拉服务器代码,会弹出验证窗口让你输入用户名密码。验证窗口一般会弹出3次,搞得我还以为是用户名密码哪里错了~汗--#

372°/3721 人阅读/0 条评论 发表评论

登录 后发表评论