Scenario Issue

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

scenario("Test Users").during(3600 seconds)