Can we define Env variable outside of the .tst file?

PiyaPiya Posts: 9

is there a way to define environment variables at project level instead of defining it at .tst?


  • benken_parasoftbenken_parasoft Posts: 895 ✭✭✭

    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}.

  • Thomas MooreThomas Moore Posts: 77 admin

    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.

  • PiyaPiya Posts: 9

    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?

  • jakubiakjakubiak Posts: 669 admin

    You need to reference the environment file in each .tst file that needs to use it.

Sign In or Register to comment.