timer - Scala Implement time counter -
i need implement time counter counts number of seconds have passed once program has entered .during. if counter value has met or exceeded set number of seconds, function within doif execute. time counter automatically reset , restarted end of doif.
this have far.
.repeat( roundspersession ) { exec( storage.insert.prompt) .during( sessionlength ) { exec( storage.insert.postevent1 ) .pause( interval second ) .doif(counter >= sessionlength){ exec(storage.insert.posteventsummary) //resetcounter } }
gatling stores in virtual user's session timestamp of moment entered during loop.
the timestamp attribute name depends on gatling version. current version, "timestamp." + .
by default, countername random uuid, can pass own value too: https://github.com/excilys/gatling/wiki/structure-elements#during.
Comments
Post a Comment