6 class TestConfig(object):
8 The profile defines a cycle of tests. Each entry is defined as
9 [<seconds to wait>, [<list of ete tags to run after the wait]],
13 [5, ["instantiate", "distribute"]],
14 [300, ["distribute"]],
15 [300, ["distribute"]],
16 [300, ["distribute"]],
17 [300, ["distribute"]],
18 [300, ["distribute"]],
24 def __init__(self, duration=10, cyclelength=1800, json=None):
28 self.duration = duration
29 self.cyclelength = cyclelength
31 for p in self.profile:
33 running_time = running_time + secs
34 if (running_time < cyclelength):
35 last = cyclelength - running_time
36 self.profile.append([last, []])
39 pstring = 'Cycle length is {} seconds'.format(self.cyclelength)
40 pstring = '{}\nDuration is {} seconds'.format(pstring, self.duration)
42 for p in self.profile:
44 running_time = running_time + secs
46 pstring = "{0}\n{1:08d} : {2:08d} : {3}".format(pstring, secs, running_time, ete)
48 pstring = "{0}\n{1:08d} : {2:08d} : {3}".format(pstring, secs, running_time, "")