Changing execution profile at runtime

reason: in my default profile i want to keep a reference to the execution profile that should be used, and then select the right profile based on that reference, so i don’t have to change the profile for all my testsuites when i want to use a different environment(or override all values in the default profile)
something along the lines of
if (GlobalVariable.reference=="ABC){
WebUI.changeProfile(profile)
}
failing a testcase if the profile no longer exists

this method would change the execution profile for the testcase/testsuite in which the method is called

hi,

check this chain, maybe .properties file is the way how to do it