Ask a Question

Authorization when working with multiple environments

Lucian
Community Hero

Authorization when working with multiple environments

Hey,

 

I have a project with multiple environments. Some requests require authentication and in order for them to work I have to add an authentication type to all environments by hand.

 

So for instance if I add a request then I have to set an Authorization profile for Env1, then set the Authorization profile for Env2 and so on... Is there another way to do this?



If my answer helped please click on the 'Accept as Solution' button.
2 REPLIES 2
tomovermeers
Occasional Contributor

Hello,

 

You can do it in different ways. 

1. You can read a csv file with the different autentication variables via groovyscript

2. You can write a groovyscript with a switch statement with the different environments and declare the different authentication variables there.

 

If you can show me your project, i can help you with the groovy script cause I am automating tests all day.

Hey @tomovermeers,

 

Thanks for the reply. Unfortunatelly I want to use out of the box things as much as possible. I can groovy script things but this will only make it more complicated for people who will follow to take my position as testers. Smiley Sad



If my answer helped please click on the 'Accept as Solution' button.
cancel
Showing results for 
Search instead for 
Did you mean: