Forum Discussion
3 Replies
- nmraoCommunity HeroYou are free to set any environment variable and access it in groovy script. For eg:
def env = System.getenv()
def soapuiHome = env['SOAPUI_HOME'] - JohnZNew ContributorHow could I use this to set the file name for the data source?
- nmraoCommunity HeroGave an example. What is your use case? The question asked was
Is it possible to set the datasource file name based on an environment variable
Use above example to access environment variables in groovy script.