Hello all,
We’re trying to upgrade to Gatling 2.1, but we run into an issue with custom assertions. We were using the following assertion to verify that the request count equals some variable that is updated during the test (externally by the system-under-test). This works because assert accepts a function that is invoked after the test has finished.
`
details(“test1”).allRequests.count.assert(value => value == myVariable, (name, result) => “…”),
`
In 2.1 .assert() has been replaced with conditions (is, between, etc…) which accept a val as parameter. These vals are read during setup, so it’s no longer possible to assert against a variable that is updated during the test.
The following doesn’t work, because myVariable is always zero:
`
details(“test1”).allRequests.count.is(myVariable)
`
Is there another way to accomplish this in 2.1?
Thanks.
Gijsbert