Skip to main content

Capture HTTP request/response and convert to test code.

Project description

# ZEROTEST [![PyPI](https://img.shields.io/pypi/v/zerotest.svg)](https://pypi.python.org/pypi/zerotest) [![Travis](https://img.shields.io/travis/jjyr/zerotest.svg)](https://travis-ci.org/jjyr/zerotest)

Zerotest makes it easy to test API server, start a micro proxy, send requests, and generate test code by these behaviours.

> Zerotest makes test api server like a boss!

## Install Stable version: pip install zerotest

Develop version: pip install git+https://github.com/jjyr/zerotest.git

## Usage 1. Start a local proxy to capture http traffic zerotest server https://api.github.com -f octocat.data

  1. Make few requests curl -i http://localhost:7000/users/octocat

  2. Press C-c to exit local proxy

  3. Generate test code zerotest generate octocat.data –ignore-all-headers > test_octocat.py

  4. Type py.test test_octocat.py to run test

## Contribute * Open issue if found bugs or some cool ideas * Feel free to ask if have any questions * Testing is very important for a test tool, commit your test file together with pull request

Project details


Download files

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

Source Distribution

zerotest-1.0.0.tar.gz (25.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page