示例#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