Skip to main content

hichao-test is a Tool that HTTP Test base on linux curl.

Project description

hichao-test

hichao-test is a Tool that HTTP Test base on linux curl.

简介:

pycharm自带个工具,在菜单Tools –> Test RESTful Web Service可以打开,可视化界面的操作,但不利于参数输入后保存以及后续的复用。此工具基于以上缺点,直接借助linux工具,结合实际的个人需求与想法,以拦截请求、保存请求、复用的流程进行,为方便个人所用定制。

使用:

依赖:

linux系统需要安装curl

$ sudo yum install curl
$ sudo apt-get install curl

模块介绍:

curl_reader.py:
    - 读取存放测试脚本的文件, 以命令行的形式执行(指定的行脚本, 指定范围的行脚本).
    - 利用 linux curl 构建测试脚本, 减少服务端开发过程中, 在测试上对客户端的依赖.

@django_request:
用于Django项目

@pyramid_request:
用于Pyramid项目

@tornado_request:
用于Tornado项目

    - 测试时, 输出POST信息到控制台.
    - 拦截测试时请求数据, 保存并构建curl脚本保存到文件.

curl_builder.py:
    - 构建生成curl测试请求数据, 以便于后续回归测试, 供curl_reader.py自动化.
    - 对之前生成报告文件做去重处理.

在shell终端:

$ hichao_curl -h
$ hichao_distinct -h

Changelog

0.2.2 - 18-JUN-2015

  • Fix some bugs.

  • Add code comment.

  • Some objects for extended separation.

0.2.0 - 11-Apr-2015

  • Add decorator for Django or Tornado project.

  • Add build curl script function.

0.1.0 - 06-Apr-2015

  • First release.

  • Read the script from file and execute it.

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

hichao-test-0.2.2.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file hichao-test-0.2.2.tar.gz.

File metadata

  • Download URL: hichao-test-0.2.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hichao-test-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a29fa519a4cb67321ff0879637e59f6dacd7fc091af5d47ca241d0bfa551f631
MD5 6abd823cf4dc6a2c56d7782ae9da2a9f
BLAKE2b-256 3edf36b5d9f0340254ba5cf32a18bb3f575bd680b91d11d3e0147d5479c5958a

See more details on using hashes here.

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