File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ def __init__(self):
14
14
15
15
def setup (self ):
16
16
print ("Setting up the Test" )
17
- time .sleep (1 )
17
+ time .sleep (0. 1 )
18
18
self ._tm .prepareReporting ()
19
19
20
20
def execute (self ):
21
21
if not self ._bProblem :
22
22
print ("Executing the test" )
23
- time .sleep (1 )
23
+ time .sleep (0. 1 )
24
24
else :
25
25
print ("Problem in setup. Test not executed." )
26
26
27
27
def tearDown (self ):
28
28
if not self ._bProblem :
29
29
print ("Tearing down" )
30
- time .sleep (1 )
30
+ time .sleep (0. 1 )
31
31
self ._tm .publishReport ()
32
32
else :
33
33
print ("Test not executed. No tear down required." )
@@ -45,11 +45,11 @@ def __init__(self):
45
45
46
46
def prepare (self ):
47
47
print ("Reporter Class is preparing to report the results" )
48
- time .sleep (1 )
48
+ time .sleep (0. 1 )
49
49
50
50
def report (self ):
51
51
print ("Reporting the results of Test" )
52
- time .sleep (1 )
52
+ time .sleep (0. 1 )
53
53
54
54
def setTM (self , tm ):
55
55
self ._tm = tm
@@ -61,15 +61,14 @@ def __init__(self):
61
61
62
62
def insert (self ):
63
63
print ("Inserting the execution begin status in the Database" )
64
- time .sleep (1 )
64
+ time .sleep (0. 1 )
65
65
#Following code is to simulate a communication from DB to TC
66
- import random
67
66
if random .randrange (1 , 4 ) == 3 :
68
67
return - 1
69
68
70
69
def update (self ):
71
70
print ("Updating the test results in Database" )
72
- time .sleep (1 )
71
+ time .sleep (0. 1 )
73
72
74
73
def setTM (self , tm ):
75
74
self ._tm = tm
@@ -112,7 +111,7 @@ def setTC(self, tc):
112
111
# For simplification we are looping on the same test.
113
112
# Practically, it could be about various unique test classes and their
114
113
# objects
115
- while True :
114
+ for i in range ( 3 ) :
116
115
tc = TC ()
117
116
tc .setTM (tm )
118
117
tm .setTC (tc )
You can’t perform that action at this time.
0 commit comments