Hi Gatling Users,
If would like to check for multiple conditions in doIf or doIfEqualsOrElse. Any solutions that you guys have used?
val httpGet = scenario(“Load Product Page validate features”)
.feed(csvFeeder)
.doIfEqualsOrElse("${productid}",1122) // I would like to check if(${productid} == 1122 || ${productid} == 3344 || ${productid} == 4455)
{
exec(http(“Get Product”)
.get(“www.website.com/productid=${productid}”)
//Do some checks specific to these products.
}
{
exec(http(“Get Product”)
.get(“www.website.com/productid=${productid}”)
//Do other checks.
}
Thanks,
Chandra