winIDEA SDK
python.exports.isystem.itest Namespace Reference

Description

This module adapts 'isystem.test' winIDEA functionality to Python.

Classes

class  ISysDirs
 
class  PTestCase
 

Functions

def connectToPrimaryCore (envConfig, winIDEAWorkspace, winIDEAId, pathToIConnectDll='')
 
def getISysDirs (mccMgr, iyamlFileName, testBench)
 
def getXsltFName (reportConfig)
 
def createHtmlReport (mccMgr, reportConfig)
 
def exportForCobertura (mccMgr, coreId, trdFilePath, srcDirs=[], isIndent=False)
 
def getSaxonPaths (mccMgr)
 
def getVector (testBase, section)
 
def getMap (testBase, section)
 
def getKeys (testBase, section)
 

Function Documentation

◆ connectToPrimaryCore()

def python.exports.isystem.itest.connectToPrimaryCore (   envConfig,
  winIDEAWorkspace,
  winIDEAId,
  pathToIConnectDll = '' 
)
Connects to primary core in multicore targets.

◆ createHtmlReport()

def python.exports.isystem.itest.createHtmlReport (   mccMgr,
  reportConfig 
)
Creates test report in HTML format. Returns name of created HTML
file, or None if file was not created because of settings in
reportConfig.

◆ exportForCobertura()

def python.exports.isystem.itest.exportForCobertura (   mccMgr,
  coreId,
  trdFilePath,
  srcDirs = [],
  isIndent = False 
)
This function exports the given trd file in iSYSTEM XML
coverage format to current working dir. If Jenkins is running the
test, then current working dir is Jenkins workspace dir.

@param mccMgr connection manager used to export coverage from winIDEA
@param trdFilePath name of trd file to be exported. It is also used
       for the name of output file, with extension '.cobertura.xml' added.
@param srcDirs if specified, the <sources> tag is added to the exported XML.
       Each item in the list creates one <source> tag. Use this feature
       if analysis tool needs to locate the sources, for example GitLab
       coverage analysis.
@param isIndent if True, the output XML is created with newlines and
       indentations. Good for readability, but files are bigger.

◆ getISysDirs()

def python.exports.isystem.itest.getISysDirs (   mccMgr,
  iyamlFileName,
  testBench 
)
Returns class containing directories used by winIDEA and testIDEA.

◆ getKeys()

def python.exports.isystem.itest.getKeys (   testBase,
  section 
)
 Returns StrVector of keys for the given mapping section. 

◆ getMap()

def python.exports.isystem.itest.getMap (   testBase,
  section 
)
 Returns mapping adapter for the given section. 

◆ getSaxonPaths()

def python.exports.isystem.itest.getSaxonPaths (   mccMgr)
 Returns paths of java.exe and saxon distributed with winIDEA. 

◆ getVector()

def python.exports.isystem.itest.getVector (   testBase,
  section 
)
  Returns string vector of the specified section.

◆ getXsltFName()

def python.exports.isystem.itest.getXsltFName (   reportConfig)
Returns name of XSLT as defined in the given reportConfig.