예제 #1
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
예제 #2
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
예제 #3
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
예제 #4
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
예제 #5
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
예제 #6
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
예제 #7
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
예제 #8
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
예제 #9
0
 def __init__(self, pandora):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.owner = pandora
     self.rps = 0
예제 #10
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender
예제 #11
0
파일: plugin.py 프로젝트: darkk/yandex-tank
 def __init__(self, pandora):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.owner = pandora
     self.rps = 0
예제 #12
0
 def __init__(self, jmeter):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.jmeter = jmeter
     self.active_threads = 0
     self.RPS = 0
예제 #13
0
 def __init__(self, jmeter):
     AbstractInfoWidget.__init__(self)
     self.krutilka = ConsoleScreen.krutilka()
     self.jmeter = jmeter
     self.active_threads = 0
     self.RPS = 0
예제 #14
0
 def __init__(self, sender):
     AbstractInfoWidget.__init__(self)
     self.owner = sender