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

Public Member Functions

def __init__ (self, xvfbLogFilePath, displayId)
 
def start (self)
 
def stop (self)
 
def __enter__ (self)
 
def __exit__ (self, type, value, traceback)
 

Static Public Member Functions

def launch (xvfbLogFilePath)
 

Static Public Attributes

string XVFB_PATH = "/usr/bin/Xvfb"
 
string X_SERVER_CHECK_COMMAND = "xdpyinfo >/dev/null"
 

Private Member Functions

def _isExe (self, fpath)
 
def _waitUntilXvfbIsReady (self)
 

Private Attributes

 _xvfbLogFilePath
 
 _displayId
 
 _xvfbLogFile
 
 _xvfb
 
 _done
 

Constructor & Destructor Documentation

◆ __init__()

def test_helper.Xvfb.__init__ (   self,
  xvfbLogFilePath,
  displayId 
)

Member Function Documentation

◆ __enter__()

def test_helper.Xvfb.__enter__ (   self)

◆ __exit__()

def test_helper.Xvfb.__exit__ (   self,
  type,
  value,
  traceback 
)

◆ _isExe()

def test_helper.Xvfb._isExe (   self,
  fpath 
)
private

◆ _waitUntilXvfbIsReady()

def test_helper.Xvfb._waitUntilXvfbIsReady (   self)
private

◆ launch()

def test_helper.Xvfb.launch (   xvfbLogFilePath)
static

◆ start()

def test_helper.Xvfb.start (   self)

◆ stop()

def test_helper.Xvfb.stop (   self)

Member Data Documentation

◆ _displayId

test_helper.Xvfb._displayId
private

◆ _done

test_helper.Xvfb._done
private

◆ _xvfb

test_helper.Xvfb._xvfb
private

◆ _xvfbLogFile

test_helper.Xvfb._xvfbLogFile
private

◆ _xvfbLogFilePath

test_helper.Xvfb._xvfbLogFilePath
private

◆ X_SERVER_CHECK_COMMAND

string test_helper.Xvfb.X_SERVER_CHECK_COMMAND = "xdpyinfo >/dev/null"
static

◆ XVFB_PATH

string test_helper.Xvfb.XVFB_PATH = "/usr/bin/Xvfb"
static

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