@bennythedroid : As you are getting value with square bracket , it means that it is a array of string, can you please have a try with using index, like:
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
groovyUtils.setPropertyValue("Request2", "LTPA", cookie_vals.)
I'm also facing a similar issue.
def value = testRunner.testCase.testSteps["GetToken"].testRequest.response.responseHeaders["Authorization"]
def tc = testRunner.testCase.testSuite.getTestCaseByName("JTY")
I'm able to get the value to the required property but in [ ].
Can someone please help me in how to get rid of those square brackets from value.