Another newbie question: .check(status.in(200, 422)) How do I do this?

52 views
Skip to first unread message

Håkon Sønderland

unread,
Apr 24, 2014, 5:39:13 AM4/24/14
to gat...@googlegroups.com
Basically I want to check if the status is either 200 (OK) or 422(Not found), both of which are expected.

But I don't quite understand how to do a 'or' between statuses. 

I though that .check(status.in(200, 422)) might do it, but this is incorrect syntax.

I assume that .check(status.is(200), status.is(422)) is basically 200 _and_ 422?

So how do you get 200 _or_ 422 ?

Thanks


Nicolas Rémond

unread,
Apr 24, 2014, 5:43:23 AM4/24/14
to gat...@googlegroups.com
That will do it: status.in(Seq(200, 422))

Cheers
Nicolas


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Håkon Sønderland

unread,
Apr 24, 2014, 6:34:11 AM4/24/14
to gat...@googlegroups.com
Thanks!  Much appreciated.

Håkon
Reply all
Reply to author
Forward
0 new messages