Skip to content

how to add timeout into postman-to-k6 script? #60

Answered by thim81
BrendaAspen asked this question in Q&A
Discussion options

You must be logged in to vote

The time-out is a K6 parameter, so you should not set that in your Postman collection.

postman-to-k6 supports the passing of K6 params

So my advice would be to create a k6-params.json:

{
  "timeout:": "120s",
  ... other K6 params if needed
}

This will set the K6 timeout to 120 seconds, instead of the default 60 seconds.

and then include the K6 params file in the conversion

postman-to-k6 collection.json --k6-params k6-params.json -o k6-script.js

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@BrendaAspen
Comment options

Answer selected by thim81
Comment options

You must be logged in to vote
1 reply
@BrendaAspen
Comment options

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
Q&A
Labels
None yet
3 participants