add one last step to load plan and fix #40

This commit is contained in:
Alexey Lavrenuke (load testing) 2013-09-20 14:32:04 +04:00
parent 308cc374cd
commit e094ea5b21

View File

@ -135,6 +135,8 @@ class Stairway(Composite):
Const(minrps + i * increment, duration)
for i in xrange(0, n_steps + 1)
]
if (n_steps + 1) * increment < maxrps:
steps.append(Const(maxrps, duration))
logging.info(steps)
super(Stairway, self).__init__(steps)
@ -211,7 +213,6 @@ def create(rps_schedule):
>>> take(10, create(['const(1, 1)']))
[0]
>>> take(10, create(['step(100,950,100,1m)']))
'''
if len(rps_schedule) > 1:
lp = Composite([StepFactory.produce(step_config)