The Assimilation Project  based on Assimilation version 1.1.7.1474836767
testcases.AssimSysTest Class Reference
Inheritance diagram for testcases.AssimSysTest:
Collaboration diagram for testcases.AssimSysTest:

Public Member Functions

def nano_start_regexes (self, nano)
 
def nano_stop_regexes (self, nano)
 
def cma_start_regexes (self)
 
def nano_startmonitor_regexes (self, nano, monitorname)
 
def nano_service_start_regexes (self, nano, monitorname)
 
def nano_service_stop_regexes (self, nano, monitorname)
 
def cma_stop_regexes (self)
 
def __init__ (self, store, logfilename, testenviron, debug=False)
 
def replace_result (self, newresult)
 
def checkresults (self, watcher, timeout, querystring, validator, nano, service=None, allregexes=True, debug=False, minrows=1, maxrows=1)
 
def run (self, nano=None, debug=None, timeout=30)
 

Static Public Member Functions

def register (ourclass)
 
def initenviron (logname, maxdrones, debug=False, timeout=90, nanodebug=0, cmadebug=0)
 

Data Fields

 store
 
 logfilename
 
 testenviron
 
 debug
 
 result
 

Static Public Attributes

int SUCCESS = 1
 
int FAIL = 2
 
int SKIPPED = 3
 
dictionary testnames = {}
 
list testset = []
 
dictionary stats = {}
 

Detailed Description

AssimSysTest is an abstract base class for all our system-level tests.

Definition at line 52 of file testcases.py.

Constructor & Destructor Documentation

def testcases.AssimSysTest.__init__ (   self,
  store,
  logfilename,
  testenviron,
  debug = False 
)

Definition at line 134 of file testcases.py.

Member Function Documentation

def testcases.AssimSysTest.checkresults (   self,
  watcher,
  timeout,
  querystring,
  validator,
  nano,
  service = None,
  allregexes = True,
  debug = False,
  minrows = 1,
  maxrows = 1 
)
A utility function for checking the results of a test.  It assumes
that you have already done a watcher.setwatch and initiated the
test.  We then wait for the test results in the logs and
perform the query to validate the results.

Definition at line 158 of file testcases.py.

References testcases.AssimSysTest._record(), testcases.logger(), cma.cmadb.CMAdb.store, cma.discoverylistener.DiscoveryListener.store, querytest.QueryTest.store, testcases.AssimSysTest.store, cma.drawwithdot.DotGraph.store, and cma.query.QueryExecutor.store.

Referenced by testcases.AssimSysTest.replace_result(), testcases.StopNanoprobe.run(), testcases.StartNanoprobe.run(), testcases.RestartCMA.run(), testcases.SimulCMAandNanoprobeRestart.run(), and testcases.DiscoverService.run().

Here is the call graph for this function:

Here is the caller graph for this function:

def testcases.AssimSysTest.cma_start_regexes (   self)

Definition at line 95 of file testcases.py.

Referenced by testcases.RestartCMA.run(), and testcases.SimulCMAandNanoprobeRestart.run().

Here is the caller graph for this function:

def testcases.AssimSysTest.cma_stop_regexes (   self)

Definition at line 129 of file testcases.py.

Referenced by testcases.SimulCMAandNanoprobeRestart.run().

Here is the caller graph for this function:

def testcases.AssimSysTest.initenviron (   logname,
  maxdrones,
  debug = False,
  timeout = 90,
  nanodebug = 0,
  cmadebug = 0 
)
static

Definition at line 198 of file testcases.py.

References testcases.logger().

Here is the call graph for this function:

def testcases.AssimSysTest.nano_service_start_regexes (   self,
  nano,
  monitorname 
)

Definition at line 111 of file testcases.py.

Referenced by testcases.DiscoverService.run().

Here is the caller graph for this function:

def testcases.AssimSysTest.nano_service_stop_regexes (   self,
  nano,
  monitorname 
)

Definition at line 119 of file testcases.py.

def testcases.AssimSysTest.nano_start_regexes (   self,
  nano 
)

Definition at line 74 of file testcases.py.

Referenced by testcases.StartNanoprobe.run(), testcases.SimulCMAandNanoprobeRestart.run(), and testcases.DiscoverService.run().

Here is the caller graph for this function:

def testcases.AssimSysTest.nano_startmonitor_regexes (   self,
  nano,
  monitorname 
)

Definition at line 103 of file testcases.py.

Referenced by testcases.DiscoverService.run().

Here is the caller graph for this function:

def testcases.AssimSysTest.nano_stop_regexes (   self,
  nano 
)

Definition at line 85 of file testcases.py.

Referenced by testcases.StopNanoprobe.run(), testcases.SimulCMAandNanoprobeRestart.run(), and testcases.DiscoverService.run().

Here is the caller graph for this function:

def testcases.AssimSysTest.register (   ourclass)
static

Definition at line 65 of file testcases.py.

def testcases.AssimSysTest.replace_result (   self,
  newresult 
)

Definition at line 149 of file testcases.py.

References testcases.AssimSysTest.checkresults(), and testcases.AssimSysTest.result.

Here is the call graph for this function:

def testcases.AssimSysTest.run (   self,
  nano = None,
  debug = None,
  timeout = 30 
)

Definition at line 191 of file testcases.py.

Field Documentation

int testcases.AssimSysTest.FAIL = 2
static

Definition at line 56 of file testcases.py.

testcases.AssimSysTest.result

Definition at line 140 of file testcases.py.

Referenced by testcases.AssimSysTest.replace_result().

int testcases.AssimSysTest.SKIPPED = 3
static

Definition at line 57 of file testcases.py.

dictionary testcases.AssimSysTest.stats = {}
static

Definition at line 61 of file testcases.py.

Referenced by cma.transaction.Transaction.commit_trans().

int testcases.AssimSysTest.SUCCESS = 1
static

Definition at line 55 of file testcases.py.

testcases.AssimSysTest.testenviron
dictionary testcases.AssimSysTest.testnames = {}
static

Definition at line 59 of file testcases.py.

list testcases.AssimSysTest.testset = []
static

Definition at line 60 of file testcases.py.


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