wklken / fetch Goto Github PK
View Code? Open in Web Editor NEWA command line http test tool. Maintain the case via git and pure text
Home Page: https://wklken.me/fetch/
License: Apache License 2.0
A command line http test tool. Maintain the case via git and pure text
Home Page: https://wklken.me/fetch/
License: Apache License 2.0
application/yaml
like json/xml assertion, support yaml
make it with the run in order
config?
order:
- xxxxx
- parallel = true
or?
can we define it globally?
parallel=true [run all in parallel => need a worker pool]
github actions
jobs:
xxxx:
steps:
- name: xxxxx
run: xxxx
- name: xxxx
run: xxxx
like the order
in config file, but more powerful
like:
how to share between two cases? or just make into one case with logical
bootstrap
-c config.yaml
set the patterns, by glob syntax
order:
- case*.yaml
- stage2*.yaml
- stagex.yaml
then the run order
if got an empty case, will panic
request:
method: get
url: 'http://httpbin.org/get'
assert:
status: ok
statusCode: 200
contentLength_gt: 180
contentType: application/json
---
yaml, single file with whole cases of one project
使用最少的字段就能完成一个caseh
application/toml
support toml response assertion
use this: https://github.com/pelletier/go-toml/tree/f99d6bbca119636aeafcf351ee52b3d202782627/query
request:
method: get
url: https://httpbin/status/302
assert:
hasRedirect: true
bug: assert.hasredirect: Fail | line:23 | equal | expected=false(bool), actual=true(bool)
yaml or other format
if the user define a wrong key, the assert not working but maybe ignored
can be assesrted
assert.json.code: Fail | equal | expected=`1.640001e+06`(float64), actual=`1.640301e+06`(float64)
assert.json.code_name: Fail | equal | expected=`INVALID_ARGS`(string), actual=`APP_NO_PERMISSION`(string)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.