swagger convert jmx
Project description
swaggerjmx
Logo
安装
pip install swaggerjmx
仓库地址:
- github:https://github.com/Pactortester/swaggerjmx.git
- pypi:https://pypi.org/project/swaggerjmx/#history
社区地址
适用场景
- 由于接口文档编写耗时,而且需要持续维护,耗时耗力,使用此工具可以一键自动生成接口文档.
- swagger-ui接口文档一键生成jmx文件供jmeter使用.
功能
- 将swagger-ui文档转换为jmx文件
Demo_1
- 可以直接访问 swagger_url (http://ip:port/v2/api-doc) 不需要登录的,使用Demo_1方式转换
# -*- coding: utf-8 -*-
from swaggerjmx.convert import conversion
from swaggerjmx.settings import Settings as ST
# swagger_url
ST.swagger_url = 'http://ip:port/v2/api-docs'
# report_path
ST.report_path = 'jmx'
# 开始转换
conversion()
Demo_2
- 需要登录才能访问的,可以复制swagger_url页面上的json信息,保存json文件,使用Demo_2方式转换
# -*- coding: utf-8 -*-
from swaggerjmx.convert import conversion
from swaggerjmx.settings import Settings as ST
# swagger_url_json_path
ST.swagger_url_json_path = 'test.json'
# report_path
ST.report_path = 'jmx'
# 开始转换
conversion()
以上便是 swaggerjmx 的基本用法介绍。
如果您有发现错误,或者您对 swaggerjmx 有任何建议,欢迎到 swaggerjmx Issues 发表,非常感谢您的支持。您的反馈和建议非常宝贵,希望您的参与能帮助 swaggerjmx 做得更好。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swaggerjmx-1.0.4.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file swaggerjmx-1.0.4.tar.gz
.
File metadata
- Download URL: swaggerjmx-1.0.4.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90be47997b6d9ef9ec5786f3916444874f5bcb66dc4977c5e7820644454cf72f |
|
MD5 | 36470cb689a78ff12f81d253223ab47b |
|
BLAKE2b-256 | 24fd079884557d7fa92c45eb7e4dc78c487eb155e609bc934b6b10c2e1c39bab |
Provenance
File details
Details for the file swaggerjmx-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: swaggerjmx-1.0.4-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6df23b7325894ea0a2e4600c65c2bb548f939a79bb41584bdb85fef3d3903b3c |
|
MD5 | 904117bd700e73c352e88f3096ad800c |
|
BLAKE2b-256 | 06d0acf16cb06655d7a453549956f368d5b8c0c5cf9e4a71c6ace09ea46b83bb |