This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
Postman requests take into account K6 param options #88
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a PR to provide support in the Postman request for passing K6 params that are globally defined.
https://k6.io/docs/javascript-api/k6-http/params
Example
It seemed that the Postman request function does not uses all the "options", when executing the http.request via K6.
Example script.js file
Which results in the following K6 call
The PR adds the passing of
let options
configurations, when making the K6 requests.export let options = { maxRedirects: 4 , headers: { 'Content-Type': 'application/json' } };
Which results in
This PR would allow the possibility to leverage any K6 Params https://k6.io/docs/javascript-api/k6-http/params to be used when executing the Postman Request via K6.