GithubHelp home page GithubHelp logo

wklken / fetch Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 3.0 1.48 MB

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

Go 99.45% Makefile 0.31% Dockerfile 0.24%
apitest cli httptest newman

fetch's Introduction

Hi there 👋

I'm wklken, a software engineer from China.

  • I use Vim and Visual Studio Code and have created some popular repositories such as k-vim / vim-for-server / k-vim-vscode.
  • With expertise in Golang and Python, I can also work efficiently with PHP, Java, JavaScript, and Ruby to deliver high-quality results.
  • Check out my blog at https://wklken.me.

wklken's github stats

GitHub Streak

fetch's People

Contributors

wklken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fetch's Issues

case env

  • case scope config, render=true, priority higher than global config
  • case scope config: timeout

bug: multiple cases in same yaml

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
---

run in parallel

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]

problem found

  • json path/value, values contains or starts_with or regex

fix compare output

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)

run in order

-c config.yaml

set the patterns, by glob syntax

order:
    - case*.yaml
    - stage2*.yaml
    - stagex.yaml

then the run order

  • patterns hit the config
  • the rest of non-hit

share data between cases

like:

  1. get html page, parse csrftoken
  2. request with csrftoken

how to share between two cases? or just make into one case with logical

support: hook run_python

  • save response_body
  • use a python script to parse, save k-v into context
  • or just save a request body, another case use it and send

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.