How to define common variables for my testcases under the folder

See GlobalVariables:

https://docs.katalon.com/katalon-studio/docs/execution-profile-v54.html

You can also find my guide on using variables across test cases in a suite: