In general what’s the best way to manage environment variables

In Katalon, what have users found to be the best way to deal with per environment variables? Is there a direct approach akin to fixtures in javascript, where you can pass a test suite an environment variable and it reads the fixture for additional data specific to that env?

2 Likes

You can set up different Environment Profiles for your project. You can add Global Environment Variables to each of those profiles. Choosing a profile during a test run will use the variables set up for that profile/environment.

More information is available at:

Setting up Environment Profiles:
http://www.sanspantalones.com/2018/04/22/setting-up-environment-profiles-in-katalon-studio/

Setting up Global Environment Variables:
http://www.sanspantalones.com/2018/01/21/global-variables-how-to-define-your-test-environment/

Katalon Docs for Different Variable Types:
https://docs.katalon.com/display/KD/Variable+Types

1 Like