-
Hi everyone, I have a Postman Collection that I exported. I know pm.response.headers is not supported when converting. Does anyone have an idea how I can still get my session ID? Here just my simple PM tests: if(pm.response.code !== 200){ pm.globals.set("Session ID", pm.response.headers.get("SESSION")); |
Beta Was this translation helpful? Give feedback.
Answered by
thim81
Apr 2, 2024
Replies: 1 comment 1 reply
-
Any Solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @ArneHH79
Previously postman-to-k6 did not support
pm.response.headers
.Since version 1.9.0, we have introduced the methods: pm.response.headers.get("xyz") and pm.response.headers.all().
This should help you overcome your problem.