Authorization error at the time of running a collection for performance test

I have a collection. In the collection I have multiple request. Authorization is used by bearer token. the token is set in the environment variable. If I run the requests individually its working fine. If I run a Functional collection runner it is also working fine. But when I am running the collection for performance it is getting 401 unauthorized error.

How are you running the collection for performance?


This is how I am doing it @michaelderekjones

Ah, that’s a new(ish) feature which I haven’t used.

I was wondering if you are selecting the environment for the run, but it looks like its set ok.

It doesn’t look like there are any options that you can miss (so I’m assuming everything is taken from the underlying collections). Therefore I can’t even guess at why the authorization is not being sent.

Do you get any console logs for these requests. To check what was actually sent in a request. To see if its translating any variables, or is it just the authorization that is failing.

Thanks for your concern.
I have found out the problem here is that at the time of running the test in performance tab, it can retrieve data from collection variable but can’t access environment variable for Authorization.
In my collection everywhere environment variable is used. when i change the variable to collection then it is working.
As this is a new feature which is in development may be thats why this bug remains there.