strest YAML风格的REST API测试工具

YAML 写测试脚本的爽感你试过吗?strest就挺对味的,专门拿来测REST API。它比较灵活,像登录求里的token可以直接喂给下一个求用,整个流程串起来毫不费劲。

写测试不用 JavaScript 也不用 Python,直接上YAML,语法简洁,结构一目了然。你只要会看 Postman 的结构,这玩意几分钟就能上手,真不夸张。

还有,CI 集成也方便,npm装一下就能跑:npm i -g @strest/cli,或者用Docker起个容器也行。测试文件放在tests/success/postman.strest.yml,执行完直接就能看结果,响应也快。

嗯,还有个亮点是可以用Gitpod开箱即跑,不想折腾本地环境的可以直接在线试。挺适合做团队协作测试或者新手练手的。强烈建议你试试。

如果你平时用 Postman、Swagger 一类工具,但又想让测试流程自动化、CI 友好,那这个工具就蛮值一用的。

zip
strest-master.zip 预估大小:93个文件
folder
strest-master 文件夹
file
.gitignore 82B
file
Dockerfile 201B
file
package.json 2KB
folder
src 文件夹
file
configLoader.ts 1KB
file
fs.ts 2KB
file
handler.ts 3KB
file
yaml-parse.ts 2KB
file
configSchema.ts 5KB
file
commands.ts 2KB
file
main.ts 222B
file
test.ts 20KB
file
SCHEMA.md 8KB
file
.dockerignore 56B
file
.travis.yml 789B
file
CONTRIBUTING.md 1KB
file
VALIDATION.md 1KB
file
LICENSE 1KB
file
tsconfig.json 524B
folder
.github 文件夹
folder
ISSUE_TEMPLATE 文件夹
file
bug_report.md 349B
file
feature_request.md 885B
file
README.md 18KB
folder
tests 文件夹
file
strest.png 7KB
folder
success 文件夹
folder
other 文件夹
file
windows_line_endings.strest.yml 121B
file
repeat3.strest.yml 141B
file
bulk.yml 97B
folder
headers 文件夹
file
0-requestHeaders.strest.yml 627B
file
1-responseHeaders.strest.yml 340B
folder
formdata 文件夹
file
simple.strest.yml 408B
file
file.strest.yml 736B
folder
jsonfile 文件夹
file
data.json 23B
file
jsonfile.strest.yml 240B
folder
log 文件夹
file
postman.strest.yml 548B
folder
params 文件夹
file
post.strest.yml 408B
folder
auth 文件夹
file
basic.strest.yml 246B
folder
Methods 文件夹
folder
Env 文件夹
file
environ.strest.yml 196B
folder
Filename 文件夹
file
postman-echo.com.strest.yml 408B
file
postman-echo.strest.yml 414B
folder
JsonPath 文件夹
file
JsonPath.strest.yml 1KB
folder
Fake 文件夹
file
name.strest.yml 308B
folder
chaining 文件夹
folder
var 文件夹
file
one.strest.yml 161B
file
two.strest.yml 95B
file
verify_login_chained.strest.yml 357B
file
login.strest.yml 475B
file
one.strest.yaml 218B
folder
Value 文件夹
file
value.strest.yml 387B
file
nunjucks.strest.yml 430B
file
array.strest.yml 353B
file
moment.strest.yml 551B
file
variables.strest.yml 208B
file
two.strest.yaml 434B
folder
if 文件夹
file
if.strest.yml 525B
file
postman.strest.yml 401B
folder
postman-echo-demo 文件夹
folder
2-authentication 文件夹
file
0-basicAuth.strest.yml 246B
folder
0-request_methods 文件夹
file
1-post.strest.yml 231B
file
0-get.strest.yml 371B
file
3-patch.strest.yml 234B
file
4-delete.strest.yml 237B
file
2-put.strest.yml 228B
folder
1-headers 文件夹
file
0-requestHeaders.strest.yml 305B
file
1-responseHeaders.strest.yml 340B
folder
3-status_code 文件夹
file
0-responseStatusCode.strest.yml 177B
folder
validate 文件夹
file
jsonpath.strest.yml 1KB
file
raw.strest.yml 215B
file
object.strest.yml 542B
file
code.strest.yml 407B
file
jsonschema.strest.yaml 2KB
file
zero.strest.yml 265B
file
mimeType.strest.yml 266B
file
json.strest.yml 169B
file
type.strest.yml 319B
file
codeRegex.strest.yml 317B
file
rawPost.strest.yml 380B
file
headers.strest.yml 318B
file
queryparam_and.strest.yml 448B
file
code404.strest.yaml 173B
file
object_array.strest.yml 633B
file
commands.jest.ts 1KB
file
validate.jest.ts 1KB
folder
success_validate_retries 文件夹
file
maxRetries.strest.yml 267B
folder
failure 文件夹
file
failureValidateExpect.strest.yaml 189B
file
failureValidateCodeRegex.strest.yml 178B
file
bulk.yml 93B
file
failureValidateJsonpath.strest.yml 176B
file
failureSchema.strest.yaml 220B
file
failureValidateCode.strest.yaml 177B
file
failureMaxRetries2.strest.yml 255B
file
failureValidateType.strest.yaml 187B
file
failureValidateObject.strest.yml 538B
file
failureNunjucks.strest.yaml 194B
file
failureVersion.strest.yml 230B
file
failureJsonschema.strest.yaml 2KB
file
failureNunjucks2.strest.yaml 193B
file
.npmignore 23B
...
zip 文件大小:63.82KB