ApiTestFramework-0.1.2
توضیحات
Api test framework in Linux
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ApiTestFramework-0.1.2 |
| نام | ApiTestFramework |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | ['Will'] |
| ایمیل نگهدارنده | ['v.stone@163.com'] |
| نویسنده | Will |
| ایمیل نویسنده | v.stone@163.com |
| آدرس صفحه اصلی | https://github.com/seoktaehyeon/api-test-framework |
| آدرس اینترنتی | https://pypi.org/project/ApiTestFramework/ |
| مجوز | MIT |
# Mini API Test Framework
> It is not smart, just a hard worker.
```text
.
├── ApiTestFramework
│ ├── __init__.py
│ ├── CaseExecutor.py
│ ├── CodeGenerator.py
│ ├── SwaggerParser.py
│ └── atf_exec.py
├── Dockerfile
├── README.md
├── docker-compose.yaml
├── requirements.txt
└── setup.py
```
## Installation
```bash
pip install ApiTestFramework
```
## Usage
```text
Usage: atf-exec <command>
command:
init Init framework
prepare Generate test case in test_case dir and data template in data_template dir
run Run test case
clean Cleanup workspace
```
## Quick Start
```bash
# 1. Install ATF
pip install ApiTestFramework
# 2. Init ATF
mkdir api_test
cd api_test
atf-exec init
# 3. Put swagger YAML into atf_api_docs
wget http://xxxx/xxx.yaml -O atf_api_docs/xxx.yaml
# 4. Prepare for running
atf-exec prepare
# 5. Add test data into atf_test/data refer to atf_test/data_template
# 6. Execute testing
atf-exec run
```
نیازمندی
| مقدار | نام |
|---|---|
| >=5.2 | PyYAML |
| >=2.22.0 | requests |
| >=5.3.2 | pytest |
| >=2.0.1 | pytest-html |
نحوه نصب
نصب پکیج whl ApiTestFramework-0.1.2:
pip install ApiTestFramework-0.1.2.whl
نصب پکیج tar.gz ApiTestFramework-0.1.2:
pip install ApiTestFramework-0.1.2.tar.gz