コード例 #1
0
 def test_free_inst_sched(self):
     stepper = Stepper(tempfile.mkstemp()[1])
     stepper.ammofile = "data/dummy.ammo"
     stepper.instances_schedule = "line(1,5,15)"
     stepper.loop_limit = 15
     stepper.generate_stpd()
     res = open(stepper.stpd_file, 'r').read()
     self.assertNotEquals("", res)
     self.assertEquals(406, os.path.getsize(stepper.stpd_file))
コード例 #2
0
 def test_free_inst_sched(self):
     stepper = Stepper(tempfile.mkstemp()[1])
     stepper.ammofile = "data/dummy.ammo"
     stepper.instances_schedule = "line(1,5,15)"
     stepper.loop_limit = 15
     stepper.generate_stpd()
     res = open(stepper.stpd_file, "r").read()
     self.assertNotEquals("", res)
     self.assertEquals(406, os.path.getsize(stepper.stpd_file))
コード例 #3
0
ファイル: Phantom.py プロジェクト: denistimofeev/yandex-tank
    def __make_stpd_file(self, stpd):
        '''
        stpd generation using Stepper class
        '''
        self.log.info("Making stpd-file: %s", self.stpd)
        stepper = Stepper(stpd)
        stepper.autocases = int(self.autocases)
        stepper.rps_schedule = self.rps_schedule
        stepper.instances_schedule = self.instances_schedule
        stepper.loop_limit = self.loop_limit
        stepper.uris = self.uris
        stepper.headers = self.headers
        stepper.header_http = self.http_ver
        stepper.ammofile = self.ammo_file

        stepper.generate_stpd()
        return stepper
コード例 #4
0
    def __make_stpd_file(self, stpd):
        '''
        stpd generation using Stepper class
        '''
        self.log.info("Making stpd-file: %s", self.stpd)
        stepper = Stepper(stpd)
        stepper.autocases = int(self.autocases)
        stepper.rps_schedule = self.rps_schedule
        stepper.instances_schedule = self.instances_schedule
        stepper.loop_limit = self.loop_limit
        stepper.uris = self.uris
        stepper.headers = self.headers
        stepper.header_http = self.http_ver
        stepper.ammofile = self.ammo_file

        stepper.generate_stpd()
        return stepper