Failed to implement case compatibility with multiple environments by using profiles

Hi :blush:
In our project, our system has multiple sets of environmental addresses.
I need to execute my test case at a different environment address.
I use profiles to make itļ¼Œbut failed.
Iā€™m looking forward to someone helping me, thank you very much.


you can handle this in multiple ways. what info are you looking for?

I donā€™t see what is your problem, what you are asking to us.

More information, please.

If you have a variable that is used in all environments, then put that variable in the ā€œdefaultā€ profile. If the variable does not change in any other environment, then that is the only placement you need. As an example, since I am the Tester, I have my user id, ā€œgTestIdā€, only in the ā€œdefaultā€ profile and I donā€™t need to overwrite it in any other profile.
Edit: All variables that will be initialized with only an empty value, or 0, are only in the ā€œdefaultā€ profile.

Those variables that need different values for an environment, then duplicate the variables in those profiles giving the variable the appropriate value for each environment. For instance, I need several different URLs, one for each of my environments, so I have the same variable, ā€œgSiteUrlā€, in each of my other profilesā€“Stage, Test, Devā€“giving each profile a different value.
Edit: All variables that need to be initialized with different values are duplicated in the other profiles.

I may have 60 variables in the ā€œdefaultā€ profile and only 10 in my other ones that overwrite the variableā€™s value of the ā€œdefaultā€ profile.

1 Like