How to manage different auth profiles per environments for different roles in REST api project
Hi,
I am trying to use environment settings in my project, but it seems that there is a tight coupling between environment and Auth profiles. My project scenario is,
1. There are four different roles/permissions in the project. All the REST apis can be called using all the four roles(email/password combination) but some APIs will return 403 which is needed to be tested.
2. I also have to manage the project for different environments, currently three.
Now what I have setup so far,
1. I have setup some project level custom properties like baseUrl, which has a default value for endpoint/domain name. I use ${#Project#baseUrl} in the endpoint for REST request. This is working fine.
2. Now, I tried setting up a couple of environments settings. I have local, qa. and I have provided the different values to baseUrl for different environments, which is also working fine.
Actual issue being faced,
Now when I am looking at my REST requests under Projects tabs, the Authorization is overridden as "No Authorization" and the dropdown is disabled. I want Authorization profiles to be independently set, without managing them through Auth Repository because one testcase will be run for all the four roles/permissions in a loop under one testcase.
I hope, I have made my scenario and requirement quite clear.
Thanks in advance