Toca
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
配置文件示例
[env]
class_id = "123456"
school_id = "123456"
# 静态参数可以出现在所有地方
# 动态参数只允许出现在 url/headers/params 中
[liteApp]
scheme = "http"
port = 4000
host = "localhost"
[liteApp.headers]
content-type = "application/json"
[liteApp.Duration]
[liteApp.Duration.CreateDuration]
method = "post"
url = "/liteapp/duration"
[liteApp.Duration.CreateDuration.headers]
content-type = "application/json"
[liteApp.Duration.CreateDuration.params]
begin_time = "2019-01-01"
end_time = "2019-06-01"
class_id = "{{class_id}}"
school_id = "{{school_id}}"
[liteApp.Duration.GetDuration]
method = "get"
url = "/liteapp/duration/{$ liteApp.Duration.CreateDuration.response.data.uid $}"
[liteApp.Duration.ListDuration]
method = "get"
url = "/liteapp/duration/list"
[liteApp.Duty]
[liteApp.Duty.CreateDuty]
method = "post"
url = "/liteapp/duty/"
[liteApp.Duty.CreateDuty.headers]
content-type = "application/json"
[liteApp.Duty.CreateDuty.params]
duration_id = "{$ liteApp.Duration.CreateDuration.response.data.uid $}"
duties = "{$ _functions.loadJsonFromFile('duties.json') $}"
[liteApp.Duty.GetDuty]
method = "get"
url = "/liteapp/duty/{$ liteApp.Duty.CreateDuty.response.data.uid $}"
[liteApp.Section]
[liteApp.Section.ListSection]
method = "get"
url = "/liteapp/school/{{school_id}}/sections/"
Todo
- 执行单个命令
- 执行单个命令时,可以在命令行中指定参数
- 执行单个 Group
- env 中的参数支持动态生成
Metadata
Release files for toca 0.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| toca-0.3.6.tar.gz | 7.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| toca-0.3.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 kB
Release files / toca-0.3.6.tar.gz
| Download URL | toca-0.3.6.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb89933595c50c5cde1e4579eb4b5fea84c024ed907378ca1b1d6e0f40a0cce5
|
|
BLAKE2b-256 checksum How to use checksums |
bafa5a90a4d77e16adc0d6d8d6f414af7e982f7b60a021fba480754db8a279e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9
|
Release files / toca-0.3.6-py3-none-any.whl
| Download URL | toca-0.3.6-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
408f317f6ce46f40076a14f429e47fc6787a9d6054a7f8ac548ae789751d557b
|
|
BLAKE2b-256 checksum How to use checksums |
2c7d36e187e36bd479c4785d04c5ee8bcffa0809af03a23fa8e2bb4c6d897b72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.9
|
Security for toca 0.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.