in 1.5.3 I could use isAttributeDefined(attributeKey: String) defined at here: https://github.com/excilys/gatling/wiki/Session#wiki-members
according to Gatling 2 wiki: https://github.com/excilys/gatling/wiki/Gatling-2#wiki-session, this API is not available any more. I basically want to use that in the doIf condition.
i tried
doIf(session => session(“parentCardId”).validate[String]) {
exec(
error message said:
type mismatch;
found : io.gatling.core.validation.Validation[String]
required: io.gatling.core.validation.Validation[Boolean]
16:44:35.309 [ERROR] i.g.a.ZincCompiler$ - .doIf(session => session(“userCardId”).validate[String]) {
16:44:35.309 [ERROR] i.g.a.ZincCompiler$ - ^
but if i replace String with Boolean, error said
value validate is not a member of String
16:32:24.886 [ERROR] i.g.a.ZincCompiler$ - doIf(session => session(“parentCardId”.validate[Boolean]))
Any ideas?