Forum Discussion
geoffcamp
16 years agoContributor
Thanks for the replies chaps, greatly appreciated.
I've gone with the script assertion test step and used this to trim and write the value to a file, which seems to work exactly as I need it to.
Thanks again,
Geoff
I've gone with the script assertion test step and used this to trim and write the value to a file, which seems to work exactly as I need it to.
def value = messageExchange.responseHeaders["Set-Cookie"]
def file = new PrintWriter ("t:/Wibble101.xml")
sb = new StringBuffer(value)
sb = value - 'LtpaToken=' - '; Path=/; Domain=.test.com'
file.println(sb)
file.flush()
Thanks again,
Geoff