I am new to SoapUI and have run into an issue I do not understand. Goal: I want to pass a result from one Groovy script into another Groovy script in a different test step.
Step 1: I have a Groovy script that generates a GUID:
// generate a new GUID
def guidVal = "${java.util.UUID.randomUUID()}"
Step 2: I have a property transfer step that takes the result of the above script and passes it into an HTTP request step (that is working)
Step 3: I have a second Groovy script that runs a curl command where I need to include the same GUID.
def deviceGuid = testRunner.testCase.testSteps['Property Transfer'].getPropertyValue("result")
// run the following curl command to generate certs
def command = 'C:\\Program Files (x86)\\Git\\usr\\bin\\curl -v -H "Content-type: application/json" -X POST -d "{\"deviceId\": \"<NEED GUID HERE>\" }" http://localhost:49742/register > out.zip'.execute().text
Step 3 is where the problem starts. How do I the resulting GUID from the first script and place it into the second Groovy script? At runtime at the moment the above returns
Wed Mar 16 13:46:37 EDT 2016:INFO:null