API testing framework
Project description
apirun
A simple API test framework for doing api test easy.
How to Use It?
Open Console, type apirun --help
, you will see some parameters
-f TESTCASEFILE, --testcasefile=TESTCASEFILE
TESTCASEFILE is .xls format, you can write testcases in it.
-F TESTCASEFOLDER, --testcasefolder=TESTCASEFOLDER
TESTCASEFOLDER contains TESTCASEFILEs, you need write
folder
orfolder\\
, never\\folder
; default is None, which means to scan the current work dir.
--report=REPORT
Folder to store test results, default is
report
.
--demo
Make demo xls in working dir.
-V, --version
Show the version.
sending email after finishing api test
--from
the user who sends email, will cover the info in email.json
--to
the user(s) who receive email, will cover the info in email.json
--subject
the email subject, will cover the info in email.json, default is
API Test Result
--host
the email host, will cover the info in email.json, is required no metter in json file or in parameter
--pt, --pressuretest
run pressure test according to the xls, supported by locustio;
Ctrl + C
, if you want to stop it.
--pt-demo
make PT demo file in current folder
--pt-not-run
just make locustfile according to the xls
--master
Set locust to run in distributed mode with this process as master, use this parameter with --pt;
Ctrl + Break
, if you want to stop it.
Pending
- More api test situations
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 Distributions
Built Distribution
File details
Details for the file apirun-0.2.12-py2.py3-none-any.whl
.
File metadata
- Download URL: apirun-0.2.12-py2.py3-none-any.whl
- Upload date:
- Size: 200.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1f818ba6f70e5bd448b701354f60b8d86ce1761e6741fd74e8f9db746d5e1bd |
|
MD5 | bdf93262b10d2290cbf8d61caf19acc5 |
|
BLAKE2b-256 | f518a2b9a86d746afc80376144bd3a31137aff231d26143d403a100fa89e272a |