Yes, you can! :-)
Here's the Groovy script that works in my soapUI v2.5.2 (this is pro, but it works in the free version too):
def r1 = context.testCase.testSteps["Request #1"].properties["Response"]
def response1 = r1["value"]
def r2 = context.testCase.testSteps["Request #2"].properties["Response"]
def response2 = r2["value"]
log.info "Request #1 response: $response1"
log.info "Request #2 response: $response2"
assert response1 == response2
Hope this works for you too.
Hurrah!
Shonzilla
source
share