# swagger2jmx-plugin **Repository Path**: liuyunlong1229/swagger2jmx-plugin ## Basic Information - **Project Name**: swagger2jmx-plugin - **Description**: 1、只要具备JDK环境 2、知道swagger地址或者swagger文件 就可以一键式生成服务的所有接口测试脚本。 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 5 - **Forks**: 3 - **Created**: 2020-11-04 - **Last Updated**: 2024-05-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1、安装包下载 https://github.com/liuyunlong1229/swagger2jmx-plugin/releases/ 2、解压后,运行bin目录下的启动startup.cmd文件,运行前先设置2个参数值 【SWAGGER_LOCATION】参数:指定swagger的源,可以是本地文件,或者线上的swagger地址。 方式一:线上swagger: SWAGGER_LOCATION=http://localhost:18083/v2/api-docs 方式二:本地swagger的文件: SWAGGER_LOCATION=D:/swagger.json 【JMX_FILE_DIR】参数:指定生成jmeter脚本auto_test.jmx生成的位置 JMX_FILE_DIR=D:/jmeter/