apirun-0.2.9
توضیحات
API testing framework
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | apirun-0.2.9 |
| نام | apirun |
| نسخه کتابخانه | 0.2.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Guo Tengda |
| ایمیل نویسنده | ttguotengda@foxmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/apirun/ |
| مجوز | MIT |
# 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
نیازمندی
| مقدار | نام |
|---|---|
| >=2.9.1 | requests |
| >=1.2.0 | ddt |
| >=1.2.0 | xlrd |
| >=0.11.213 | yagmail |
| >=17.0.0 | keyring |
| >=0.9.0 | locustio |
| >=2.4.1 | paramiko |
نحوه نصب
نصب پکیج whl apirun-0.2.9:
pip install apirun-0.2.9.whl
نصب پکیج tar.gz apirun-0.2.9:
pip install apirun-0.2.9.tar.gz