Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

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

Piya
Piya Posts: 9

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

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭

    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 Moore
    Thomas Moore Posts: 82 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.

  • Piya
    Piya 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?

  • jakubiak
    jakubiak Posts: 798 admin

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