As the tokens are unique and change at each login , I am collecting them on each call and store in current variables.
everything is ok in POstman , I can run my collection , but as you know, I cannot use current values of my variables when I want to run monitors or run tests with Newman. My question is if someone can help me with some hints how can I solve this ?
i am already using pm.environment.get(โvariable_keyโ);
i tried pm.collectionVariables.get(โvariable_keyโ) and still cannot run tests with monitor or Newman. i think i am doing something else wrong.
my variables doesnโt have initial value , only the current one that is collected through each login test for each role.
I read on POstman documentation that current values are not stored into cloud and cannot be used via Newman. this is why i am asking how other people are using access tokens that need to be collected on each login in their automated tests.