How check all values from vector exists in response?

22 views
Skip to first unread message

robert.ha...@hotmail.com

unread,
Aug 14, 2017, 2:20:44 AM8/14/17
to Gatling User Group
Hi!

I have a saved vector from a request which I want to use to validate the response body from another request. A simple substring check would do.

How can I achieve that?


Example of what I want (sudo code that does not work)

Saved vector in variable "productIds"
(Vector(XX22, XX33))


http
("Some get http call")
     
.get(url)
     
.foreach("${productIds}", "productId")
     
{
        check
(substring("${productId}").exists)
     
}



Regards

Robert
Reply all
Reply to author
Forward
0 new messages