Mini API Test Framework
It is not smart, just a hard worker.
.
├── ApiTestFramework
│ ├── __init__.py
│ ├── CaseExecutor.py
│ ├── CodeGenerator.py
│ ├── SwaggerParser.py
│ └── atf_exec.py
├── Dockerfile
├── README.md
├── docker-compose.yaml
├── requirements.txt
└── setup.py
Installation
pip install ApiTestFramework
Usage
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
# 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
Metadata
Release files for ApiTestFramework 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ApiTestFramework-0.1.2.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ApiTestFramework-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / ApiTestFramework-0.1.2.tar.gz
| Download URL | ApiTestFramework-0.1.2.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a54fa4e7e32049ed9f5136d5b257e6bfbb32e4879c539b8e8333c4477cc21a3
|
|
BLAKE2b-256 checksum How to use checksums |
4bdfff9fac210de73d7652eea65e85d4089727288f5c6620df34528e66814ef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.0
|
Release files / ApiTestFramework-0.1.2-py3-none-any.whl
| Download URL | ApiTestFramework-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e10981b2c613ee7af2b756f70cc6ee5d5939632aae60e23ecb68a841b5c124b
|
|
BLAKE2b-256 checksum How to use checksums |
a374688e767e4c7ae3a5c6f4c5ede66c063e78c1f02a2ed0ee22ebda82aafefa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.0
|