GithubHelp home page GithubHelp logo

wklken / fetch Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.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%
newman httptest apitest cli

fetch's Issues

case env

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

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

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

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

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

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)

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.