yandextank/stepper/main.py
def __make_stpd_file(self):
        ''' stpd generation using Stepper class '''
        self.log.info("Making stpd-file: %s", self.stpd)
        stepper = Stepper(
            self.core,
            rps_schedule=self.load_profile.schedule if self.load_profile.is_rps() else None,
            http_ver=self.http_ver,
            ammo_file=self.ammo_file,
            instances_schedule=self.load_profile.schedule if self.load_profile.is_instances() else None,
            instances=self.instances,
            loop_limit=self.loop_limit,
            ammo_limit=self.ammo_limit,
            uris=self.uris,
            headers=[header.strip('[]') for header in self.headers],
            autocases=self.autocases,
            enum_ammo=self.enum_ammo,
            ammo_type=self.ammo_type,
            chosen_cases=self.chosen_cases,
            use_cache=self.use_caching)
        with open(self.stpd, 'w', self.file_cache) as os:
            stepper.write(os)
def __make_stpd_file(self):
        ''' stpd generation using Stepper class '''
        self.log.info("Making stpd-file: %s", self.stpd)
        stepper = Stepper(
            self.core,
            rps_schedule=self.load_profile.schedule if self.load_profile.is_rps() else None,
            http_ver=self.http_ver,
            ammo_file=self.ammo_file,
            instances_schedule=self.load_profile.schedule if self.load_profile.is_instances() else None,
            instances=self.instances,
            loop_limit=self.loop_limit,
            ammo_limit=self.ammo_limit,
            uris=self.uris,
            headers=[header.strip('[]') for header in self.headers],
            autocases=self.autocases,
            enum_ammo=self.enum_ammo,
            ammo_type=self.ammo_type,
            chosen_cases=self.chosen_cases,
            use_cache=self.use_caching)
        with open(self.stpd, 'w', self.file_cache) as os:
            stepper.write(os)
def __make_stpd_file ( self ) : self . log . info ( "Making stpd-file: %s" , self . stpd ) stepper = Stepper ( self . core , rps_schedule = self . load_profile . schedule if self . load_profile . is_rps ( ) else None , http_ver = self . http_ver , ammo_file = self . ammo_file , instances_schedule = self . load_profile . schedule if self . load_profile . is_instances ( ) else None , instances = self . instances , loop_limit = self . loop_limit , ammo_limit = self . ammo_limit , uris = self . uris , headers = [ header . strip ( '[]' ) for header in self . headers ] , autocases = self . autocases , enum_ammo = self . enum_ammo , ammo_type = self . ammo_type , chosen_cases = self . chosen_cases , use_cache = self . use_caching ) with open ( self . stpd , 'w' , self . file_cache ) as os : stepper . write ( os )
stpd generation using Stepper class
stpd generation using Stepper class