hoppscotch / hoppscotch

Open source API development ecosystem - https://hoppscotch.io (open-source alternative to Postman, Insomnia)

Home Page:https://hoppscotch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature]: Ability to run a collection of requests sequentially

mwkcoding opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Summary

I would like to be able to make some kind of "scenario" that runs a set of requests, waits for first one to finish and only continue if the previous was successful (aka returns status 200). Maybe the default assertion is that the request returns with status 200 but if you define tests for the requests, those have to pass before proceeding.

Why should this be worked on?

My use-case is a form for running a warmup of APIs which requires calling a bunch of endpoints which is tedious to do manually.

We've been working on this feature, there's an active pull request #3600 to introduce the Collection Runner feature.

I work for a large company that very soon will need to replace POSTMAN.
However, whatever it gets replaced with will have to have a Runner that uses a CSV as input.
If you can get this working, I might convince my company to purchase several hundred of the licenses for the paid version.

We’re hoping to release this feature in the next few weeks.

@RJRReid, I’d love to hear your thoughts on this:

  • Will you be comfortable with running the Collections from the GUI or a terminal/CI/CD pipeline?

  • Does JSON format works for you instead of CSV?

  • How are these files created and maintained in your organisation?

Question: will this support similar functionality as Postman where you can have a request basically repeat itself? The use case I’m thinking is request one loads an array as a variables, request two pops an element off that array and makes a request and then repeats itself if there are still elements in the array.

Something similar to postman.setNextRequest?