Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Postman variables default to original value if undefined #53

Closed
mattcollins107 opened this issue Feb 13, 2020 · 1 comment
Closed

Postman variables default to original value if undefined #53

mattcollins107 opened this issue Feb 13, 2020 · 1 comment

Comments

@mattcollins107
Copy link

https://github.com/loadimpact/postman-to-k6/blob/9e3d5083682092c90b1d92fc22af6e96d2118600/lib/shim/core.js#L530

We have a system where the POST body can contain formatted data like {{some_string}}, and this works fine in Postman because when it thinks it finds a variable but that variable does not exist, it defaults to just sending the original string in the request. But this line breaks the API call, because it uses the string undefined instead of defaulting back to the original.

Replacing undef with "{{" + name + "}}" makes this work correctly.

@ppcano
Copy link
Collaborator

ppcano commented Nov 22, 2021

Apologies for the inactivity on this project.

Due to the inability to properly support this project, the k6 team has decided not to continue its development. The primary reason is that k6 scope has grown significantly with the launch of k6 extensions. The team is prioritizing extending k6 capabilities over the converters.

We suggest you post your issue at api-deck/postman-to-k6. The project is active and maintained on this fork.

@ppcano ppcano closed this as completed Nov 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants