How to know current execution environment using groovy script

Hi

I have created 3 different environments, depending on my environment I have to execute different code snippet withing the same test case, for that purpose I want to know the current execution environment dynamically using a groovy script.

Hi,
You can use

import com.kms.katalon.core.configuration.RunConfiguration

RunConfiguration.getExecutionProfile()
1 Like