Giter Site home page Giter Site logo

Output response about strest HOT 5 CLOSED

eykrehbein avatar eykrehbein commented on July 29, 2024
Output response

from strest.

Comments (5)

eykrehbein avatar eykrehbein commented on July 29, 2024 1

I'd prefer to use the existing Value keyword instead of Json but overall it's a good idea

from strest.

jgroom33 avatar jgroom33 commented on July 29, 2024

Alternative implementation:
Assuming file output from #55

requests:
  file1_test1:
    url: https://postman-echo.com/get
    method: GET
    data:
      params:
        foo: bar
    log:
      file: true
requests:
  file2:
    url: https://postman-echo.com/get
    method: GET
    data:
      params:
        foo: Json(file1_test1.args.foo)

from strest.

shrikster avatar shrikster commented on July 29, 2024

I am having the same thoughts..
Why not just doing all the requests in one file ..
maybe we can chain them when running the tests.yaml files in a folder test ..

from strest.

jgroom33 avatar jgroom33 commented on July 29, 2024

As the number of requests approaches 50+ it makes sense to organize them with files and directories. (Postman uses collections and folders)
The ability to specify a directory for execution is a great feature. It allows this:
1-foo_dir

  • 1-foo_file.strest.yml
  • 2-foo_file.strest.yml

2-foo_dir

  • 2-bar_file.strest.yml
    etc

Assuming that directory 1 contains a login request, it would be good to use that param in future requests.

I think I prefer the second implemention: Json() instead of putting an env var.

from strest.

jgroom33 avatar jgroom33 commented on July 29, 2024

agreed. Even if it is valuable to output responses to file, the better implementation for variable handling across files is to use Value()

from strest.

Related Issues (20)

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.