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
- 5 years ago
- 2 years ago
Recent Discussions
- 2 days ago