Can we define Env variable outside of the .tst file?
Options
Comments
-
You can define other types of variables outside of a tst. For example, you can reference OS or shell variables using ${env_var:name_of_variable}.
0 -
You can also export an environment or set of environments to be used as reference environments. For more information on this, our documentation details this here.
0 -
Thank you Thomas. Referencing environment works but is there a way to just place the environment variable file only once outside at project level (like adding global data source) and use that in different .tst files?
0 -
You need to reference the environment file in each .tst file that needs to use it.
0
