Case-insensitive string comparison

22 views
Skip to first unread message

Roman Hatsiev

unread,
Apr 25, 2017, 2:43:31 AM4/25/17
to Gatling User Group
Hello,

I'm trying to figure out how to perform case-insensitive string comparison in the below check but without much luck:

.check(status.is(302), header("Location").is("/${serviceUrl}/"))

Any words of advice?

Regards,

Roman

Ludovic TOURMAN

unread,
Aug 21, 2017, 7:25:30 AM8/21/17
to Gatling User Group
Maybe late but for future users, you could do it like this :
.check(status.is(302), header("Location").transform(result => result.toLowerCase()).is("/${serviceUrl}/"))
Reply all
Reply to author
Forward
0 new messages