In Katalon, if I set the executuion profile to default, and VIA command line I run katalon with a profile of UAT for example, it does not use the UAT profile. It uses the default profile. Therefore in command line I cannot test different environments.
After some investigation it is related to test suite collections.
here is the command I am using (from powershell)
D:\Katalon_Studio_Windows_64-5.6\katalon.exe -noSplash -runMode=console -reportFolder=“$reportPath” -reportFileName=“$reportName” -consoleLog -projectPath=“$projectPath” -retry=0 -testSuiteCollectionPath=“Test Suites/Test Suite Collections/$test” -executionProfile=“PRJ1” -browserType=“$browser”