Skip to content

Scripts which execute only once per collection run #8120

Closed Answered by ihexxa
Tobias4872 asked this question in Help
Discussion options

You must be logged in to vote

This is an interesting topic 👍 . Hm currently there is no capability for setup or teardown.

One way I can think of is adding 2 requests for them, and calling insomnia.execution.skipRequest() to skip sending request from pre-req script, here is an example (setup is similar):

And set them as the first and the last one.

It is still not optimal although it doesn't send out the request.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Tobias4872
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants