Forum Discussion

teak's avatar
teak
Contributor
8 years ago
Solved

how to set environment variable to use in loadtestrunner

Hi,    i am trying to read an environment variable in a groovy script: def host = context.expand('${#Env#API_HOST}')   i set the environment variable: export API_HOST="https://api.host.com"   ...
  • teak's avatar
    teak
    8 years ago

    i started soapui from the terminal rather than the launhcer in os x and it worked. 

     

    i then ran loadtestrunner and it worked as well. 

     

    i had to start soapui from a session with the environment variable set first.