Skip to main content

Api test framework in Linux

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ApiTestFramework, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size ApiTestFramework-0.1.2-py3-none-any.whl (10.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ApiTestFramework-0.1.2.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page