示例#1
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.cause_criteria = None
     self.criterias = []
     self.custom_criterias = []
     self.counting = []
     self.criteria_str = ''
示例#2
0
 def __init__(self, core):
     '''         Constructor        '''
     AbstractPlugin.__init__(self, core)
     self.interval = "10s"
     self.disk_limit = 2048  # 2 GB
     self.mem_limit = 512  # 0.5 GB
     self.last_check = 0
示例#3
0
 def __init__(self, core):
     '''         Constructor        '''
     AbstractPlugin.__init__(self, core)
     self.interval = "10s"
     self.disk_limit = 2048  # 2 GB
     self.mem_limit = 512  # 0.5 GB
     self.last_check = 0
示例#4
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     module_path = self.get_option("module_path")
     module_name = self.get_option("module_name")
     sys.path.append(module_path)
     self.module = __import__(module_name)
示例#5
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.end = None
     self.poll = None
     self.prepare = None
     self.start = None
     self.postprocess = None
示例#6
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.cause_criteria = None
     self.criterias = []
     self.custom_criterias = []
     self.counting = []
     self.criteria_str = ''
示例#7
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     module_path = self.get_option("module_path", "")
     module_name = self.get_option("module_name")
     if module_path:
         sys.path.append(module_path)
     self.module = __import__(module_name)
示例#8
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     Thread.__init__(self)
     self.daemon = True  # Thread auto-shutdown
     self.port = 8080
     self.last_sec = None
     self.server = None
     self.cache = DataCacher()
示例#9
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.out_file = None
     self.process = None
     self.concurrency = 0
     self.options = None
     self.url = None
     self.requests = None
示例#10
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     AbstractInfoWidget.__init__(self)
     lines = resource_stream(__name__, "config/tips.txt").readlines()
     line = random.choice(lines)
     self.section = line[:line.index(':')]
     self.tip = line[line.index(':') + 1:].strip()
     self.disable = 0
示例#11
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.out_file = None
     self.process = None
     self.concurrency = 0
     self.options = None
     self.url = None
     self.requests = None
示例#12
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     AbstractInfoWidget.__init__(self)
     lines = resource_stream(__name__, "config/tips.txt").readlines()
     line = random.choice(lines)
     self.section = line[:line.index(':')]
     self.tip = line[line.index(':') + 1:].strip()
     self.disable = 0
示例#13
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     module_path = self.get_option("module_path", "")
     module_name = self.get_option("module_name")
     if module_path:
         sys.path.append(module_path)
     self.module = __import__(module_name)
     self.scenarios = self.module.SCENARIOS
示例#14
0
    def __init__(self, core):
        AbstractPlugin.__init__(self, core)
        AggregateResultListener.__init__(self)

        self.cause_criteria = None
        self._criterias = {}
        self.custom_criterias = []
        self.counting = []
        self.criteria_str = ''
        self._stop_report_path = ''
示例#15
0
    def __init__(self, core):
        AbstractPlugin.__init__(self, core)
        AggregateResultListener.__init__(self)

        self.cause_criteria = None
        self._criterias = {}
        self.custom_criterias = []
        self.counting = []
        self.criteria_str = ''
        self._stop_report_path = ''
示例#16
0
 def __init__(self, core):
     """ Constructor """
     AbstractPlugin.__init__(self, core)
     self.loadosophia = LoadosophiaClient()
     self.loadosophia.results_url = None
     self.project_key = None
     self.color = None
     self.title = None
     self.online_buffer = []
     self.online_initiated = False
     self.online_enabled = False
示例#17
0
 def __init__(self, core):
     """ Constructor """
     AbstractPlugin.__init__(self, core)
     self.loadosophia = LoadosophiaClient()
     self.loadosophia.results_url = None
     self.project_key = None
     self.color = None
     self.title = None
     self.online_buffer = []
     self.online_initiated = False
     self.online_enabled = False
示例#18
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.screen = None
     self.render_exception = None
     self.console_markup = None
     self.remote_translator = None
     self.info_panel_width = '33'
     self.short_only = 0
     # these three provide non-blocking console output
     self.__console_view = None
     self.__writer_thread = None
     self.__writer_event = None
示例#19
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.screen = None
     self.render_exception = None
     self.console_markup = None
     self.remote_translator = None
     self.info_panel_width = '33'
     self.short_only = 0
     # these three provide non-blocking console output
     self.__console_view = None
     self.__writer_thread = None
     self.__writer_event = None
示例#20
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     module_path = self.get_option("module_path", "").split()
     module_name = self.get_option("module_name")
     #imp allows to avoid custom module caching
     fp, pathname, description = imp.find_module(module_name, module_path)
     try:
         self.module = imp.load_module(module_name, fp, pathname,
                                       description)
     finally:
         if fp:
             fp.close()
示例#21
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.jmeter_process = None
     self.args = None
     self.original_jmx = None
     self.jtl_file = None
     self.jmx = None
     self.user_args = None
     self.jmeter_path = None
     self.jmeter_log = None
     self.start_time = time.time()
     self.jmeter_buffer_size = None
     self.use_argentum = None
示例#22
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.jmeter_process = None
     self.args = None
     self.original_jmx = None
     self.jtl_file = None
     self.jmx = None
     self.user_args = None
     self.jmeter_path = None
     self.jmeter_log = None
     self.start_time = time.time()
     self.jmeter_buffer_size = None
     self.use_argentum = None
示例#23
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.log.info("yatank_Hipchat init ...")
     self.options = {
         'server': ('', True),
         'token': ('', True),
         'rooms': ([], False),
         'users': ([], False),
         'domain': ('', True)
     }
     self.hipchat = None
     self.collector = None
     self.end_time = None
     self.data_plugin = None
示例#24
0
    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,
        }
示例#25
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.process = None
     self.second_data_listeners = []
     self.preproc_out_offset = 0
     self.buffer = []
     self.second_data_draft = []
     self.preproc_out_filename = None
     self.cumulative_data = SecondAggregateDataTotalItem()
     self.reader = None
     self.time_periods = [tankcore.expand_to_milliseconds(x)
                          for x in self.default_time_periods.split(' ')]
     self.last_sample_time = 0
     self.precise_cumulative = 1
示例#26
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.sender = ''
     self.recievers = ''
     self.templates_dir_path = ''
     self.data_plugin = None
     self.stage_data = None
     self.templ_base_names = [
         'header_template', 'header_template_file_name', 'message_template',
         'message_template_file_name', 'html_message_template',
         'html_message_template_file_name'
     ]
     self.save_base_names = [
         'save_header_file', 'save_message_file', 'save_html_message_file'
     ]
示例#27
0
    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,
        }
示例#28
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.process = None
     self.second_data_listeners = []
     self.preproc_out_offset = 0
     self.buffer = []
     self.second_data_draft = []
     self.preproc_out_filename = None
     self.cumulative_data = SecondAggregateDataTotalItem()
     self.reader = None
     self.time_periods = [
         tankcore.expand_to_milliseconds(x)
         for x in self.default_time_periods.split(' ')
     ]
     self.last_sample_time = 0
     self.precise_cumulative = 1
示例#29
0
    def __init__(self, core):
        AbstractPlugin.__init__(self, core)
        self.config = None
        self.process = None

        self.predefined_phout = None
        self.phout_import_mode = False
        self.did_phout_import_try = False

        self.phantom_path = None
        self.eta_file = None
        self.processed_ammo_count = 0
        self.phantom_start_time = time.time()
        self.buffered_seconds = "2"

        self.phantom = None
        self.cached_info = None
        self.phantom_stderr = None

        self.enum_ammo = False
示例#30
0
    def __init__(self, core):
        AbstractPlugin.__init__(self, core)
        self.config = None
        self.process = None

        self.predefined_phout = None
        self.phout_import_mode = False
        self.did_phout_import_try = False

        self.phantom_path = None
        self.eta_file = None
        self.processed_ammo_count = 0
        self.phantom_start_time = time.time()
        self.buffered_seconds = "2"

        self.phantom = None
        self.cached_info = None
        self.phantom_stderr = None

        self.enum_ammo = False
示例#31
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     param = self.get_option("param", '15')
     self.log.info('Initialized log gun for BFG with param = %s' % param)
示例#32
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     self.base_address = self.get_option("base_address")
示例#33
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.count = 0
示例#34
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.ok_codes = []
     self.fail_code = 10
示例#35
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.graphite_client = None
示例#36
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.count = 0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.buffered_seconds=2
     self.process=None
     self.process_stderr = None
     self.process_start_time = None
示例#38
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     self.engine = create_engine(self.get_option("db"))
示例#39
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.graphite_client = None
示例#40
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.buffered_seconds = 2
     self.process = None
     self.process_stderr = None
     self.process_start_time = None
示例#41
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self._output_file_path = None
     self.rc = -1
示例#42
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     self.ok_codes = []
     self.fail_code = 10
示例#43
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     self.base_address = self.get_option("base_address")
示例#44
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     self.engine = create_engine(self.get_option("db"))
示例#45
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     AggregateResultListener.__init__(self)
     self.client = None
     self.decoder = None
示例#46
0
 def __init__(self, core):
     self.log = logging.getLogger(__name__)
     AbstractPlugin.__init__(self, core)
     param = self.get_option("param", '15')
     self.log.info('Initialized log gun for BFG with param = %s' % param)