Skip to main content

Automatic Testing

Project description


Automatic Testing


# toca help
usage: toca ACTION [-c toca.toml]

ACTION should be:
    ls           列出所有 API
    run          运行所有 API
    help, -h, --help    打印帮助

optional arguments:
    -c toca.toml  指定配置文件, 默认为当前路径下的 toca.toml


class_id  = "123456"
school_id = "123456"

# 静态参数可以出现在所有地方
# 动态参数只允许出现在 uri/headers/params 中

scheme = "http"
port = 4000
host = "localhost"
    content-type = "application/json"
        method = "post"
        uri    = "/liteapp/duration"
            content-type = "application/json"
            begin_time = "2019-01-01"
            end_time   = "2019-06-01"
            class_id   = "{{class_id}}"
            school_id  = "{{school_id}}"
        method = "get"
        uri    = "/liteapp/duration/{$ $}"
        method = "get"
        uri    = "/liteapp/duration/list"
        method = "post"
        uri = "/liteapp/duty/"
            content-type = "application/json"
            duration_id = "{$ $}"
            duties      = "{$ _functions.loadJsonFromFile('duties.json') $}"
        method = "get"
        uri    = "/liteapp/duty/{$ $}"
        method = "get"
        uri    = "/liteapp/school/{{school_id}}/sections/"


  1. 执行单个命令
  2. 执行单个命令时,可以在命令行中指定参数
  3. 执行单个 Group
  4. env 中的参数支持动态生成

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
Toca-0.1.5.tar.gz (5.7 kB) Copy SHA256 hash SHA256 Source None

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page