HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
ftests.ftest_DBTaskStatistic.Test Class Reference
Inheritance diagram for ftests.ftest_DBTaskStatistic.Test:
Collaboration diagram for ftests.ftest_DBTaskStatistic.Test:

Public Member Functions

def setUp (self)
 
def tearDown (self)
 
def execCommand (self, command, step)
 
def testSuite1 (self)
 

Static Public Attributes

 mutex = threading.Lock()
 

Detailed Description

Definition at line 49 of file ftest_DBTaskStatistic.py.

Member Function Documentation

◆ execCommand()

def ftests.ftest_DBTaskStatistic.Test.execCommand (   self,
  command,
  step 
)

Definition at line 61 of file ftest_DBTaskStatistic.py.

61  def execCommand(self, command, step):
62  obj = None
63  print ">>> Start = " + str(command)
64  fd = os.popen(command)
65  if fd:
66  localStr = fd.read()
67  fd.close()
68  print ">>> Finish = " + str(command)
69  try:
70  obj = pickle.loads(localStr)
71  except EOFError:
72  self.assertTrue(False, "Step%s >>> Invalid return data" % str(step))
73  else:
74  print ">>> Bad FD " + + str(command)
75  return obj
76 
77 
Here is the caller graph for this function:

◆ setUp()

def ftests.ftest_DBTaskStatistic.Test.setUp (   self)

Definition at line 53 of file ftest_DBTaskStatistic.py.

53  def setUp(self):
54  pass
55 
56 

◆ tearDown()

def ftests.ftest_DBTaskStatistic.Test.tearDown (   self)

Definition at line 57 of file ftest_DBTaskStatistic.py.

57  def tearDown(self):
58  pass
59 
60 

◆ testSuite1()

def ftests.ftest_DBTaskStatistic.Test.testSuite1 (   self)

Definition at line 78 of file ftest_DBTaskStatistic.py.

78  def testSuite1(self):
79  try:
80  self.mutex.acquire()
81  print "Suite1"
82  self.execCommand(CMD_SNEW1, 0)
83  self.execCommand(CMD_SNEW2, 0)
84  self.execCommand(CMD_SNEW3, 0)
85  self.execCommand(CMD_SNEW4, 0)
86  self.execCommand(CMD_UNEW1, 1)
87  self.execCommand(CMD_UUPDATE1, 2)
88  self.execCommand(CMD_UUPDATE2, 2)
89  self.execCommand(CMD_UUPDATE3, 2)
90  self.execCommand(CMD_UUPDATE4, 2)
91  self.execCommand(CMD_UDELETE1, 3)
92  self.execCommand(CMD_UAGE1, 4)
93  self.execCommand(CMD_SCEANUP1, 5)
94  self.execCommand(CMD_SCEANUP2, 5)
95  self.execCommand(CMD_UPURGE1, 6)
96  print "Suite1 FN"
97  self.mutex.release()
98  except:
99  self.mutex.release()
100  raise
101 
102 
Here is the call graph for this function:

Member Data Documentation

◆ mutex

ftests.ftest_DBTaskStatistic.Test.mutex = threading.Lock()
static

Definition at line 51 of file ftest_DBTaskStatistic.py.


The documentation for this class was generated from the following file: