Forum Discussion

MartyBurns's avatar
MartyBurns
Occasional Contributor
11 years ago

path environment variable running shell script from groovy

When running a Groovy script step, I run a bash script with foo.execute(). In my particular script a curl statement is invoked. However, the curl command is not found.

If I run from a terminal window (that is not within SOAPUI) the curl command is found and the script succeeds.

If I print out the environment from within groovy, it shows the contents of /etc/environment and not the current path on my platform.

What is the proper way to configure SOAPUI so it uses the current environment of the user it is run under?

Thanks