Possible to get current profile in scripting mode?

I would like to do something like If profile is a do a, else if profile is b do b.

Can you get the current profile as a variable?

You can print it out using 'getExecutionProfile’ function, example:

import com.kms.katalon.core.configuration.RunConfiguration
RunConfiguration.getExecutionProfile()
1 Like