def __init__(self, core, sequence, phout, answ, answ_level, timeout, section): self.core = core self.address_wizard = AddressWizard() self.sequence_no = sequence self.log = logging.getLogger(__name__) self.section = section self.stepper_wrapper = StepperWrapper(self.core, self.section) self.phout_file = phout self.answ_log = answ self.answ_log_level = answ_level self.timeout = timeout # per benchmark self.instances = None self.ipv6 = None self.ssl = None self.address = None self.port = None self.tank_type = None self.stpd = None self.gatling = None self.phantom_http_line = None self.phantom_http_field_num = None self.phantom_http_field = None self.phantom_http_entity = None self.resolved_ip = None self.method_prefix = None self.source_log_prefix = None self.method_options = None self.client_cipher_suites = None self.client_certificate = None self.client_key = None
def __init__(self, core): self.log = logging.getLogger(__name__) AbstractPlugin.__init__(self, core) self.gun_type = None self.start_time = time.time() self.stepper_wrapper = StepperWrapper(self.core, BFGPlugin.SECTION) self.log.info("Initialized BFG") self.gun_classes = { 'log': LogGun, 'sql': SqlGun, 'custom': CustomGun, 'http': HttpGun, 'scenario': ScenarioGun, }