How to programmatically set or get a running profile?

Please try the following snippet:

import com.kms.katalon.core.configuration.RunConfiguration as RC
def executionProfile = RC.getExecutionProfile()
WebUI.comment("executionProfile=${executionProfile}")
WebUI.verifyEqual('default', executionProfile)
5 Likes