Пример #1
0
 def __init__(self, owner):
     AbstractInfoWidget.__init__(self)
     MonitoringDataDecoder.__init__(self)
     self.owner = owner
     self.data = {}
     self.sign = {}
     self.max_metric_len = 0
Пример #2
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender 
     self.ammo_progress = 0
     self.ammo_count = int(self.owner.core.get_option(PhantomPlugin.SECTION, StepperWrapper.OPTION_AMMO_COUNT))
     self.test_duration = int(self.owner.core.get_option(PhantomPlugin.SECTION, StepperWrapper.OPTION_TEST_DURATION))
     self.eta_file = None
Пример #3
0
 def __init__(self, owner):
     AbstractInfoWidget.__init__(self)
     MonitoringDataDecoder.__init__(self)
     self.owner = owner
     self.data = {}
     self.sign = {}
     self.max_metric_len = 0
Пример #4
0
 def __init__(self, core):
     AbstractPlugin.__init__(self, core)
     AbstractInfoWidget.__init__(self)
     lines = open(os.path.dirname(__file__) + '/tips.txt').readlines()
     line = random.choice(lines)
     self.section = line[:line.index(':')]
     self.tip = line[line.index(':') + 1:].strip()
     self.disable = 0
Пример #5
0
 def __init__(self):
     AbstractInfoWidget.__init__(self)
     self.active_threads = 0
     self.instances = 0
     self.planned = 0
     self.RPS = 0
     self.selfload = 0
     self.time_lag = 0
     self.planned_rps_duration = 0
Пример #6
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender 
     self.instances = 0
     self.planned = 0
     self.RPS = 0    
     self.instances_limit = int(self.owner.core.get_option(PhantomPlugin.SECTION, PhantomConfig.OPTION_INSTANCES_LIMIT))
     self.ammo_count = int(self.owner.core.get_option(PhantomPlugin.SECTION, StepperWrapper.OPTION_AMMO_COUNT))
     self.selfload = 0
     self.time_lag = 0
     self.planned_rps_duration = 0
Пример #7
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender
     self.ammo_progress = 0
     self.ammo_count = int(
         self.owner.core.get_option(PhantomPlugin.SECTION,
                                    StepperWrapper.OPTION_AMMO_COUNT))
     self.test_duration = int(
         self.owner.core.get_option(PhantomPlugin.SECTION,
                                    StepperWrapper.OPTION_TEST_DURATION))
     self.eta_file = None
Пример #8
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.owner = sender 
     self.ammo_progress = 0
     self.eta_file = None
     
     info = self.owner.get_info()
     if info:
         self.ammo_count = int(info.ammo_count)
         self.test_duration = int(info.duration)
     else:
         self.ammo_count = 0
         self.test_duration = 0
Пример #9
0
    def __init__(self, sender):
        AbstractInfoWidget.__init__(self)
        self.krutilka = ConsoleScreen.krutilka()
        self.owner = sender
        self.ammo_progress = 0
        self.eta_file = None

        info = self.owner.get_info()
        if info:
            self.ammo_count = int(info.ammo_count)
            self.test_duration = int(info.duration)
        else:
            self.ammo_count = 1
            self.test_duration = 1
Пример #10
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender
     self.instances = 0
     self.planned = 0
     self.RPS = 0
     self.instances_limit = int(
         self.owner.core.get_option(PhantomPlugin.SECTION,
                                    PhantomConfig.OPTION_INSTANCES_LIMIT))
     self.ammo_count = int(
         self.owner.core.get_option(PhantomPlugin.SECTION,
                                    StepperWrapper.OPTION_AMMO_COUNT))
     self.selfload = 0
     self.time_lag = 0
     self.planned_rps_duration = 0
Пример #11
0
    def __init__(self, sender):
        AbstractInfoWidget.__init__(self)
        self.owner = sender
        self.instances = 0
        self.planned = 0
        self.RPS = 0
        self.selfload = 0
        self.time_lag = 0
        self.planned_rps_duration = 0

        info = self.owner.get_info()
        if info:
            self.instances_limit = int(info.instances)
            self.ammo_count = int(info.ammo_count)
        else:
            self.instances_limit = 1
            self.ammo_count = 1
Пример #12
0
    def __init__(self, sender):
        AbstractInfoWidget.__init__(self)
        self.owner = sender 
        self.instances = 0
        self.planned = 0
        self.RPS = 0    
        self.selfload = 0
        self.time_lag = 0
        self.planned_rps_duration = 0

        info = self.owner.get_info()
        if info:
            self.instances_limit = int(info.instances)
            self.ammo_count = int(info.ammo_count)
        else:
            self.instances_limit = 1
            self.ammo_count = 1
Пример #13
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender
Пример #14
0
 def __init__(self, uniphout):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.owner = uniphout
     self.rps = 0
Пример #15
0
 def __init__(self, jmeter):
     AbstractInfoWidget.__init__(self)
     self.krutilka=ConsoleScreen.krutilka()
     self.jmeter = jmeter
     self.active_threads = 0
     self.rps = 0
Пример #16
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender
Пример #17
0
 def __init__(self, abench):
     AbstractInfoWidget.__init__(self)
     self.abench = abench
     self.active_threads = 0
Пример #18
0
 def __init__(self, abench):
     AbstractInfoWidget.__init__(self)
     self.abench = abench
     self.active_threads = 0
Пример #19
0
 def __init__(self, jmeter):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.jmeter = jmeter
     self.active_threads = 0
     self.rps = 0
Пример #20
0
 def __init__(self, jmeter):
     AbstractInfoWidget.__init__(self)
     self.jmeter = jmeter
     self.active_threads = 0
     self.rps = 0
Пример #21
0
 def __init__(self, uniphout):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.owner = uniphout
     self.rps = 0