Skip to main content

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 or folder\\, 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.

--email

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

Metadata

Release files for apirun 0.2.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for apirun 0.2.12
File Interpreter ABI Platform Actions
apirun-0.2.12-py2.py3-none-any.whl Python 3, Python 2 none any Details for apirun-0.2.12-py2.py3-none-any.whl

Release files / apirun-0.2.12-py2.py3-none-any.whl

Download URL apirun-0.2.12-py2.py3-none-any.whl
Size 200.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a1f818ba6f70e5bd448b701354f60b8d86ce1761e6741fd74e8f9db746d5e1bd
BLAKE2b-256 checksum
How to use checksums
f518a2b9a86d746afc80376144bd3a31137aff231d26143d403a100fa89e272a
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for apirun 0.2.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page