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
- 9 years ago
Recent Discussions
- 4 days ago
- 8 days ago
xml to soap
Solved8 days ago