insomnia-plugin-exec-suite v1.0.10
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.
1. SKIP: Skips the current/marked request irrespective of being placed as prefix or suffix.
2. STOP: Execution flow will stop before (if placed as prefix) or after (if placed as suffix) executing marked request.
3. WAIT(seconds)
1. Will await before (if placed as prefix) or after (if placed as suffix) executing marked request.
2. Waiting numbers are given in brackets in seconds. For example `WAIT(10)` means wait for 10 seconds.
4. RETRY(count)
1. During execution, if any request does not return 200 status code, that request will be retried again for number of counts mentioned in brackets.
2. 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.
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: 1. IfWAITis present in front of the request name (example would be`WAIT(10)` Save Note) execution will waitBEFORErunning the current request. 2. IfWAITis present in after the request name (example would beSave Note `WAIT(10)`) execution will waitAFTERrunning the current request.SKIPWhen running all requests in the folder, execution will SKIP this particular request and continue to execute others as usual.STOPWhen running all requests in the folder: 1. IfSTOPis 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). 2. IfSTOPis present in after the request name (example would beSave Note `STOP`) execution will stop after executing current request.RETRYRETRYoption can be defined at the root level (on folder name) and also on the request level (like any other tag).- Request level
RETRYtag will retry sending the request if the response'sstatusCodeis NOT 200. - Number of retries must be defined in brackets similar to
WAITtag. Example would be (Note-Taking-App `RETRY(3)`). RETRYtag 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.