oleksii
10 years agoOccasional Contributor
How to set OS environment variable from groovy script.
I've not found a way to set OS environment variable from a groovy test step. Tried this:
System.setProperty("prp_name", "value")
def prp = System.getProperties()
log.info prp["prp_name"]It only works within SoapUI, but when I check if such variable exists in CMD it does not return anything:
c:\>set prp_name Environment variable prp_name not defined