Set Environment Variables¶
Most deployment-level settings in TestGen — SMTP credentials, single sign-on, custom branding, and MCP options — are applied through environment variables. The steps to set a variable depend on the install mode. After setting any variable, restart the application for the change to take effect.
Docker mode¶
-
Navigate to the directory that contains the
docker-compose.ymlfile for TestGen.- If the instance was installed using dk-installer.exe, the file can be located under "AppData\Local\DataKitchenApps".
- If the instance was installed using dk-installer, the file can be located in the folder from which the Python installer was executed.
-
Add each variable under the x-common-variables section, one variable per line.
-
Restart the application.
Pip mode¶
-
Open the
~/.testgen/config.envfile in a text editor. -
Add each variable on its own line, no quotes.
-
Restart the application. Stop the running TestGen process with Ctrl+C in the terminal where it is running, then start it again.