Giter VIP home page Giter VIP logo

jreyesr / insomnia-plugin-batch-requests Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.21 MB

An Insomnia plugin to repeatedly send a request, each time replacing some data with information from a CSV file, and collecting response data into the CSV file.

Home Page: https://jreyesr.github.io/posts/insomnia-batch-requests/

License: MIT License

JavaScript 100.00%
csv insomnia insomnia-plugin insomnia-rest

insomnia-plugin-batch-requests's People

Contributors

jreyesr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

insomnia-plugin-batch-requests's Issues

Runner stops after first iteration when no output fields are set

Reported by @dotJson in #3

I find if I dont set an output map in the batch dialog it does not iterate through the CSV so I have been selecting bogus fields to get it to go.
if it, as you say should work without defining an output, then something is stopping my runners after the first iteration. I have been setting it to some random selection in the CSV headers and typing garbage in the JSON path field to get it to go.

Need iteration delay to avoid API rate limiting

This plugin is the closest thing to emulate Postman runners - great work.

When running long iterations a rate limit can be triggered, but if there was a way to set an iteration interval it would help to avoid this. Can it be done? Here's the Postman method as an example. It's in milliseconds but seconds would be enough.
iteration

Request history not visible

Steps to reproduce

  1. Create a new request in any collection
  2. Use a batch variable
  3. Create a CSV file using that variable
  4. Run Batch Requests with the CSV file
  5. Press Ctrl+Shift+H or (attempt to) click the history on the top right of the right panel (the panel that shows responses)

Expected behavior
The history menu drops down with all responses from the batch

Actual behavior
Nothing happens when using the keyboard shortcut and the history button in the responses panel isn't there to click

Additional context

  • When running the request as a normal request at least once AFTER running the request batch, the other requests DO show up
  • When running the request as a normal request at least once BEFORE running the request batch, the other requests DON'T show up

Therefore I expect that the history items do get added to the list, but the GUI doesn't get refreshed after doing so.

Possible solution
Refresh the request history part of the GUI after running a request batch.

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.