Scenario Issue

31 views
Skip to first unread message

Kapil

unread,
Feb 22, 2018, 3:19:44 AM2/22/18
to Gatling User Group
Hi Stephane

I have defined a scenario as follows but unable to add .duration(1 hour) in this scenario. Please can you advice what's wrong here

val happyPath = scenario("Test Users")

    .asLongAs(s => notifyStatus.incrementAndGet() < 2) {

      exec(setNotifyFlagTrue)

    }

    .exec(exec(KJTest.ClaimloginUsers(createKJTestUsers.rendezVous(users))))

    .rendezVous(users)

    .exec(deleteKJTestUser)

    .asLongAs(s => notifyStatusEnd.incrementAndGet() < 2) {

      exec(setNotifyFlagFalse)

    }


I only want to add .duration(1 hour) so I can run this scenario for 1 hour but it seems it's not accepting duration under scenario.


Please Advice?


Regards


CyberNinja

unread,
Feb 27, 2018, 1:25:00 AM2/27/18
to Gatling User Group
scenario("Test Users").during(3600 seconds)
Reply all
Reply to author
Forward
0 new messages