value maxDuration is not a member of io.gatling.core.structure.Populate dScenarioBuilder

449 views
Skip to first unread message

SR

unread,
Apr 12, 2016, 6:07:20 AM4/12/16
to Gatling User Group
Following error identified when i am trying to use the maxDuration in Simulation setup.


setUp(
    users.inject(rampUsers(10) over (10 seconds)),
 //   admins.inject(rampUsers(2) over (10 seconds))
    admins.inject(rampUsers(2) over(10 seconds)).maxDuration(3 minutes)
  ).protocols(httpConf)



Error description:

C:\gatling-charts-highcharts-bundle-2.1.7\bin>gatling.bat
GATLING_HOME is set to "C:\gatling-charts-highcharts-bundle-2.1.7"
11:05:10.033 [ERROR] i.g.c.ZincCompiler$ - C:\gatling-charts-highcharts-bundle-2
.1.7\user-files\simulations\computerdatabase\advanced\AdvancedSimulationStep05.s
cala:75: value maxDuration is not a member of io.gatling.core.structure.Populate
dScenarioBuilder
11:05:10.048 [ERROR] i.g.c.ZincCompiler$ -     admins.inject(rampUsers(2) over(1
0 seconds)).maxDuration(3 minutes)
11:05:10.048 [ERROR] i.g.c.ZincCompiler$ -
            ^
11:05:10.126 [ERROR] i.g.c.ZincCompiler$ - one error found

Could you please have a look and advise,

Stéphane LANDELLE

unread,
Apr 12, 2016, 8:07:16 AM4/12/16
to gat...@googlegroups.com
maxDuration is only available on the set up (global to the whole simulation), not per scenario. See doc.

Stéphane Landelle
GatlingCorp CEO


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sreenivas Yerra

unread,
Apr 12, 2016, 8:22:46 AM4/12/16
to gat...@googlegroups.com
Thank you Stephane, I will check and enhance the code accordingly.

Warm regards, 
Sreenivas

Sent from my iPhone
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/O-hCAHM8dtI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.

Sravan Kumar

unread,
Jul 11, 2016, 4:04:28 PM7/11/16
to Gatling User Group
Hi Srinivas,

Does maxDuration worked?

I am unable to do it, could you please posted some code how to use maxDuration?

Thanks in advance.

KR,
Sravan
Reply all
Reply to author
Forward
0 new messages