Forum Discussion
bhajanmehta
Visitor
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.[0])
nadamat
6 years agoNew Contributor
bhajanmehta
I'm also facing a similar issue.
def value = testRunner.testCase.testSteps["GetToken"].testRequest.response.responseHeaders["Authorization"]
def tc = testRunner.testCase.testSuite.getTestCaseByName("JTY")
tc.setPropertyValue("_csrf", "$value")
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.
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