Forum Discussion
richie
8 years agoCommunity Hero
nmrao knows way more than I do about this stuff so I'd listen to him.
Bill_In_Irvine gave me the following to extract a header value and pass it to a Properties step (so cred goes to Bill for this - not me)
//Takes one of the elements of the response Header
def value = testRunner.testCase.testSteps["REST request step name"].testRequest.response.responseHeaders["headername"]
//Read this value into a parameter
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
groovyUtils.setPropertyValue("Properties", "headername",value[0])Cheers,
richie
faisalmalik
8 years agoNew Contributor
Thanks Guys,
Sorry for the delayed response, as I have been on a parental Leave :) I have tried richie 's method and worked like a charm.
didn't get the time to try out nmrao method.
Cheers
Faisal
- nmrao8 years agoCommunity HeroThere can be multiple ways of doing the same thing.
Glad to know that you had it working.