Hi there
I am using Gatling 2.2.5. I apologize for my dumb question, so please bear with me.
I understand that we can give multiple values to check as mentioned here:
.check(status.not(404), status.not(500))
My requirement is that I need to pass dynamic values to .check.
So, is there a way I can save “status.not(404), status.not(500)” in some variable and then pass to .check.
I tried doing this, but I am getting an error:
`
val checkList = List[io.gatling.http.check.HttpCheck](status.not(404), status.not(500))
.check(checkList)
ERROR: Type mismatch, expected: HttpCheck, actual: List[HttpCheck]
`
Please advise how can I achieve passing dynamic values to check.
Cheers
Nav