use StepperWrapper correctly

This commit is contained in:
Alexey Lavrenuke (load testing) 2014-02-20 17:27:39 +04:00
parent 9d700ac7c2
commit dca0719576

View File

@ -124,8 +124,10 @@ class PhantomPluginTestCase(TankTestCase):
self.foo.core.set_option('phantom', 'instances', '1000')
self.foo.core.set_option('phantom', 'rps_schedule', '')
self.foo.core.set_option('phantom', 'instances_schedule', 'line(1,100,1m)')
self.foo.core.set_option('phantom', 'use_caching', '0')
self.foo.core.set_option('phantom', 'ammo_file', 'data/dummy.ammo')
wrapper = StepperWrapper(self.foo.core, PhantomPlugin.SECTION)
wrapper.ammo_file = 'data/dummy.ammo'
wrapper.read_config()
wrapper.prepare_stepper()
self.assertEqual(100, wrapper.instances)