TwiceAsNice  2019-02-18
Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
test_helper.TestHelper Class Reference
Inheritance diagram for test_helper.TestHelper:
Inheritance graph
Collaboration diagram for test_helper.TestHelper:
Collaboration graph

Static Public Member Functions

def longRunningTest (f)
 
def areLongRunningTestsInhibited ()
 
def areDictEqual (d1, d2)
 
def whenLongRunningTestsAreInhibitedThenExitWithSuccess ()
 
def checkThatFileContainsString (logFilePath, expectedMessage, timeoutInSec=5.0)
 
def isFileContainingString (expectedMessage, filePath)
 
def writeLinesToFile (filePath, fileContentsAsLines)
 
def loggingTurnedOffMessageForPort (port)
 
def ioSwitchSetOutputPortToOnLogMessagePart (portNo)
 
def ioSwitchSetOutputPortToOffLogMessagePart (portNo)
 
def ioSwitchSetOutputPortToOnLogMessageRegExp (portNo)
 
def ioSwitchSetOutputPortToOffLogMessageRegExp (portNo)
 
def startService (serviceCommand, serviceLogPath, startUpMessage)
 
def startServiceWithArgs (arguments, serviceLogPath, startUpMessage, timeoutSec=7)
 
def isSubprocessAlive (process)
 
def terminateSubprocess (process)
 
def dumpFileToStdout (filePath)
 
def executeShellCommand (cmd)
 
def getNumberOfMatches (pattern)
 
def getNumberOfMessages (message)
 
def executeQtGUITestsWithXvfb (testClass, argv, XvfbLogPath='./xvfb.log')
 

Static Public Attributes

string MOCON_XY_START_UP_MESSAGE = "Service started"
 

Static Private Member Functions

def _logSkippedTest ()
 
def _terminateByUsingPid (process)
 

Private Attributes

 _pattern
 

Member Function Documentation

◆ _logSkippedTest()

def test_helper.TestHelper._logSkippedTest ( )
staticprivate

◆ _terminateByUsingPid()

def test_helper.TestHelper._terminateByUsingPid (   process)
staticprivate

◆ areDictEqual()

def test_helper.TestHelper.areDictEqual (   d1,
  d2 
)
static

◆ areLongRunningTestsInhibited()

def test_helper.TestHelper.areLongRunningTestsInhibited ( )
static

◆ checkThatFileContainsString()

def test_helper.TestHelper.checkThatFileContainsString (   logFilePath,
  expectedMessage,
  timeoutInSec = 5.0 
)
static

◆ dumpFileToStdout()

def test_helper.TestHelper.dumpFileToStdout (   filePath)
static

◆ executeQtGUITestsWithXvfb()

def test_helper.TestHelper.executeQtGUITestsWithXvfb (   testClass,
  argv,
  XvfbLogPath = './xvfb.log' 
)
static

◆ executeShellCommand()

def test_helper.TestHelper.executeShellCommand (   cmd)
static

◆ getNumberOfMatches()

def test_helper.TestHelper.getNumberOfMatches (   pattern)
static

◆ getNumberOfMessages()

def test_helper.TestHelper.getNumberOfMessages (   message)
static

◆ ioSwitchSetOutputPortToOffLogMessagePart()

def test_helper.TestHelper.ioSwitchSetOutputPortToOffLogMessagePart (   portNo)
static

◆ ioSwitchSetOutputPortToOffLogMessageRegExp()

def test_helper.TestHelper.ioSwitchSetOutputPortToOffLogMessageRegExp (   portNo)
static

◆ ioSwitchSetOutputPortToOnLogMessagePart()

def test_helper.TestHelper.ioSwitchSetOutputPortToOnLogMessagePart (   portNo)
static

◆ ioSwitchSetOutputPortToOnLogMessageRegExp()

def test_helper.TestHelper.ioSwitchSetOutputPortToOnLogMessageRegExp (   portNo)
static

◆ isFileContainingString()

def test_helper.TestHelper.isFileContainingString (   expectedMessage,
  filePath 
)
static

◆ isSubprocessAlive()

def test_helper.TestHelper.isSubprocessAlive (   process)
static

◆ loggingTurnedOffMessageForPort()

def test_helper.TestHelper.loggingTurnedOffMessageForPort (   port)
static

◆ longRunningTest()

def test_helper.TestHelper.longRunningTest (   f)
static

◆ startService()

def test_helper.TestHelper.startService (   serviceCommand,
  serviceLogPath,
  startUpMessage 
)
static

◆ startServiceWithArgs()

def test_helper.TestHelper.startServiceWithArgs (   arguments,
  serviceLogPath,
  startUpMessage,
  timeoutSec = 7 
)
static

◆ terminateSubprocess()

def test_helper.TestHelper.terminateSubprocess (   process)
static

◆ whenLongRunningTestsAreInhibitedThenExitWithSuccess()

def test_helper.TestHelper.whenLongRunningTestsAreInhibitedThenExitWithSuccess ( )
static

◆ writeLinesToFile()

def test_helper.TestHelper.writeLinesToFile (   filePath,
  fileContentsAsLines 
)
static

Member Data Documentation

◆ _pattern

test_helper.TestHelper._pattern
private

◆ MOCON_XY_START_UP_MESSAGE

string test_helper.TestHelper.MOCON_XY_START_UP_MESSAGE = "Service started"
static

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