First, I just wanted to say how much I loved Gatling!
Suppose one needed to save into the session, for later execution branching, values which might not always be present.
For instance, given a JSON response such as:
It’s easy to extract and save. But suppose we could also get a response like this:
We’d like to branch chains based on the value of error_code. But checking for it directly will give us a KO (if some simulations got success=true), even if this is expected, and we succeed on the branch we take.
I take it the correct approach would be to do something like
def xformMaybeV : Option[V]
Note, this is for 2.0. Also, gatling works very nicely as a library–I’m sure many people would love to use it for functional testing.