Giter VIP home page Giter VIP logo

swagger2jmx-plugin's Introduction

V1.1 新增功能介绍

  • 支持通过初始参数值默认生成
    生成jmeter脚本会根据参数的默认值(即取@ApiImplicitParam的defaultValue和@ApiModelProperty的example的值)生成。

  • 支持测试用例生成的顺序
    @ApiOperation维护扩展属性{@Extension(name="ext",properties = @ExtensionProperty(name = "sortNo", value = "1"))}),指定sortNo的值,值越小,生成测试用例越靠前。


Step 1: 获取工具包

1、直接到 latest stable release.下载

2、有maven环境的话,直接在本地执行mvn package生成

Step 2: 解压包后,运行bin目录下的startup.cmd文件,运行前先设置2个参数值

【SWAGGER_LOCATION】参数:指定swagger的源,可以是本地文件,或者线上的swagger地址。

  • 方式一:线上swagger
SWAGGER_LOCATION=http://localhost:18083/v2/api-docs
  • 方式二:本地swagger的文件,也就是上面的线上显示的整个大的json内容保存到本地一个文件中
SWAGGER_LOCATION=D:/swagger.json

【JMX_FILE_DIR】参数:指定生成jmeter脚本auto_test.jmx生成的位置 例如保存到D:/jmeter目录下,可以这么设置

JMX_FILE_DIR=D:/jmeter/

效果

Image text

swagger2jmx-plugin's People

Contributors

liuyunlong1229 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.