0
点赞
收藏
分享

微信扫一扫

MeterSphere 之 IDEA 接口同步插件

1安装插件

1.1、插件安装有两种方式

  • 在线安装:直接在 idea -> Settings -> plugins -> Marketplace 搜索 MeterSphere 在线安装
  • 离线安装:下载安装包,idea -> Settings -> plugins -> 选择下载的插件 -> Install Plugin from Disk

1.2、打开 MeterSphere GitHub 地址,在仓库搜索 idea,地址:​​​https://github.com/metersphere​​

MeterSphere 之 IDEA 接口同步插件_插件

1.3、点击这个 metersphere-idea-plugin,找到并点击"下载离线包"

MeterSphere 之 IDEA 接口同步插件_IDEA插件_02

MeterSphere 之 IDEA 接口同步插件_IDEA插件_03

2配置插件信息

2.1、找到 Other Settings 下的 MeterSphere

MeterSphere 之 IDEA 接口同步插件_IDEA插件_04

2.2、输入 MeterSphere 相关地址信息,accessKey 和 secretKey 可以在个人信息中生成,然后点击 test 按钮

MeterSphere 之 IDEA 接口同步插件_接口同步_05

MeterSphere 之 IDEA 接口同步插件_插件_06

2.3、可以看到验证成功的弹窗,工作空间等信息会自动填充,修改成要同步模块

MeterSphere 之 IDEA 接口同步插件_接口同步_07

2.4、在要同步接口的 Controller 右键选择 Export MeterSphere

MeterSphere 之 IDEA 接口同步插件_IDEA插件_08

2.5、同步成功弹窗

MeterSphere 之 IDEA 接口同步插件_MeterSphere_09

3验证接口

3.1、我们在要同步的模块中看到了同步过来的接口

MeterSphere 之 IDEA 接口同步插件_接口同步_10

3.2、创建一个用例进行测试,接口响应正常

MeterSphere 之 IDEA 接口同步插件_插件_11


举报

相关推荐

0 条评论