Forum Discussion
3 Replies
- nmrao
Champion Level 1
You 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?
- nmrao
Champion Level 1
Gave an example. What is your use case? The question asked wasIs it possible to set the datasource file name based on an environment variable
Use above example to access environment variables in groovy script.