Reputation: 138
I have two threads groups. The first one generate a token that is passed to the second thread group. I use a json extractor and a beanshell assertion in the first group to make the token visible for the second thread. It works perfectly in gui mode but in non-gui mode the token always is generated correctly but is not passed to the second thread so it fails, returns status 401.
Do you have any idea why this happen and a solution?
Edit: I have a global user defined variable element. There I have a var called token_type with the value global_token. Then in the second thread I have a http header manager where I have a header called Authorization with the value Bearer ${__V(${token_type})}
Upvotes: 1
Views: 164
Reputation: 168122
Upvotes: 1