i have a project that is using Authorization OAuth 2.0 for all the services in the application in dev and stage environments (different Access Token URLs).
i am able to generate the tokens for each environment but is there a way to automate the request to use the correct token based on the Environment Vriables?
Solved! Go to Solution.
the answer was hidden in Auth Manager window
basically, you chose the environment first then you pick the correct token using Auth Manager for each test case for that environment and you save and you then pick the next environment and you do the same using the other token corresponding to that other environment
@richie i appreciate your reply but the issue here is not how to get URLs or DBs specific to each environment, I have no problem loading those values, i actually built a groovy script that gets DB URLs based on which environment we are running the test against. but i am trying to do the same to get Access Token value generated from authorization call in "Auth & Security" based on the environment.
Thanks @richie i will keep you posted if i find or hear anything.
the answer was hidden in Auth Manager window
basically, you chose the environment first then you pick the correct token using Auth Manager for each test case for that environment and you save and you then pick the next environment and you do the same using the other token corresponding to that other environment