Forum Discussion
geoffcamp
15 years agoContributor
Not sure if this is what you're looking for:
//Takes one of the elements of the response Header
def value = testRunner.testCase.testSteps["Request"].testRequest.response.responseHeaders["Set-Cookie"]
//Read this value into a parameter
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
groovyUtils.setPropertyValue("Properties", "LTPA", value.toString())
You can then use this parameter in later test steps.
//Takes one of the elements of the response Header
def value = testRunner.testCase.testSteps["Request"].testRequest.response.responseHeaders["Set-Cookie"]
//Read this value into a parameter
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
groovyUtils.setPropertyValue("Properties", "LTPA", value.toString())
You can then use this parameter in later test steps.
Related Content
- 10 months ago
- 5 years ago
Recent Discussions
- 15 years ago