generate test case code
Project description
简介
gtc(generate test case) 是一个把http请求转换为测试代码的cli工具
功能
- 支持解析curl命令
- 支持解析postman文件
- 支持解析swagger2文件
- 支持解析curl文件并生成Jmeter性能脚本
- 支持解析curl文件并生成Locust性能脚本
- 支持解析postman文件并生成Jmeter性能脚本
- 支持解析postman文件并生成Locust性能脚本
- 一键生成Jmeter性能压测方案脚本
用法
执行下面命令,会在当前目录生成api文件(api.yaml
)和测试代码的脚本文件(test_case.py
)
gtc -t curl curl.txt
gtc -t postman postman.json
gtc -t swagger2 swagger.json
gtc -t swagger2 swagger.json
----------------------------
gtc -t jmeter curl.txt
gtc -t locust curl.txt
已知问题
- 若postman文件中有变量,则不会生成相对应的代码块.
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
gentccode-0.1.1.tar.gz
(14.6 kB
view hashes)
Built Distribution
gentccode-0.1.1-py3-none-any.whl
(18.5 kB
view hashes)
Close
Hashes for gentccode-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dadd611b31a65c20fb2c4ba208acf118f6350fe520a7ff1d5652928d4c278a2e |
|
MD5 | 3f16846d3a76158b60c29c57624b03bf |
|
BLAKE2b-256 | 4309c66735e957486ca07ec1441bd3e774857d8b5adc4e9da45e52ddcca6b389 |