insomnia-plugin-exec-suite
v1.0.10
Published
An Insomnia plugin for running all or conditional requests in a folder.
Downloads
14
Maintainers
Readme
insomnia-plugin-exec-suite
An Insomnia plugin to run all or conditional requests in a folder. Via plugin, user can SKIP
a particular request, WAIT
after a particular request has run or can STOP
execution at a certain request. It also supports root level and request level RETRY
options.
TLDR;
Clicking on Execute All Requests
folder menu item will execute all requests.
SKIP
: Skips the current/marked request irrespective of being placed as prefix or suffix.STOP
: Execution flow will stop before (if placed as prefix) or after (if placed as suffix) executing marked request.WAIT(seconds)
- Will await before (if placed as prefix) or after (if placed as suffix) executing marked request.
- Waiting numbers are given in brackets in seconds. For example
`WAIT(10)`
means wait for 10 seconds.
RETRY(count)
- During execution, if any request does not return
200
status code, that request will be retried again for number of counts mentioned in brackets. - When placed on folder, retry settings are applicable for all requests inside folder. When placed on request, settings will be appicable only for that request and will override folder settings.
- During execution, if any request does not return
Usage
The Plugin can be used to send all requests in a folder.
Modify Folder run.
We can add some attributes to each request like WAIT
, SKIP
and STOP
inside double back ticks (``).
WAIT(10)
When running all requests in the folder:- If
WAIT
is present in front of the request name (example would be`WAIT(10)` Save Note
) execution will waitBEFORE
running the current request. - If
WAIT
is present in after the request name (example would beSave Note `WAIT(10)`
) execution will waitAFTER
running the current request.
- If
SKIP
When running all requests in the folder, execution will SKIP this particular request and continue to execute others as usual.STOP
When running all requests in the folder:- If
STOP
is present in front of the request name (example would be`STOP` Save Note
) execution will stop at the current request (and current request will not be executed). - If
STOP
is present in after the request name (example would beSave Note `STOP`
) execution will stop after executing current request.
- If
RETRY
RETRY
option can be defined at the root level (on folder name) and also on the request level (like any other tag).- Request level
RETRY
tag will retry sending the request if the response'sstatusCode
is NOT 200. - Number of retries must be defined in brackets similar to
WAIT
tag. Example would be (Note-Taking-App `RETRY(3)`
). RETRY
tag can be placed before or after the request name.- If defined on both root level and request level, request level value will be considered and root level value will be ignored for that particular request.
We can use multiple tags separated by comma if needed.
Please find the screenshot below to see the execution plan of the folder.
Also please see the dialog visible after entire folder is ran.