Forum Discussion
Phreak
New Contributor
Hey,
Thanks for the reply. The response is pretty basic... For example:
token.id=AQIC5wM2LY4Sfczq0L3wcE24BKuMEJ1cC5o/cQMCWGDV18A=@AAJTSQACMDIAAlMxAAIwMQ==#
I just need to remove the 'token.id=' so I can have a variable that contains the token as that token is needed in various ways as a part of my test plan.
KarelHusa
9 years agoChampion Level 1
Hi,
you can remove the prefix of the string e.g. this way:
def response = 'token.id=AQIC5wM2LY4Sfczq0L3wcE24BKuMEJ1cC5o/cQMCWGDV18A=@AAJTSQACMDIAAlMxAAIwMQ==#'
def content = response.substring(9)
println content
Karel
Related Content
- 5 years ago
Recent Discussions
- 50 minutes ago
- 2 days ago
- 3 days ago