UnitTestHarness  1.0
Unit Testing Tool
 All Data Structures Namespaces Files Functions Variables Pages
fwUnitTestComponentParseConfigurationXml.ctl File Reference

Finds which tests to run by parsing the unitTestConfiguration XML file. If the tests are not specified in the configuration file then uses fwUnitTestComponentTestDiscovery to discover the tests. More...

Functions

void fwUnitTestComponentParseConfigurationXml_getTestsToRun (string configPathName, mapping &testsToRun)
 
private void fwUnitTestComponentParseConfigurationXml_recurseXmlConfig (int configXmlFile, int node, mapping &testsToRun)
 
private void fwUnitTestComponentParseConfigurationXml_recurseComponentBlock (int configXmlFile, int node, mapping &testsToRun)
 
private void fwUnitTestComponentParseConfigurationXml_recurseSuiteBlock (int configXmlFile, int node, mapping &testSuites, string componentName)
 
private void fwUnitTestComponentParseConfigurationXml_recurseTestCaseBlock (int configXmlFile, int node, dyn_string &testCases)
 

Detailed Description

Finds which tests to run by parsing the unitTestConfiguration XML file. If the tests are not specified in the configuration file then uses fwUnitTestComponentTestDiscovery to discover the tests.

Creation Date
01/04/2014

Function Documentation

void fwUnitTestComponentParseConfigurationXml_getTestsToRun ( string  configPathName,
mapping &  testsToRun 
)
Description: Gets the tests to run from the unitTestConfiguration XML file.
Usage
Public
Parameters
[in]configPathNamestring
[out]testsToRunmapping, key= component name, value=(mapping key = suitesToRun, value = test cases to run)
private void fwUnitTestComponentParseConfigurationXml_recurseComponentBlock ( int  configXmlFile,
int  node,
mapping &  testsToRun 
)
Description: Gets the component name from the XML file.
Gets the test suites from parsing the XML file or if no test suite is specified gets the tests using test discovery.
Usage
Public
Parameters
[in]configXmlint, The unitTestConfiguration document ID.
[in]nodeint, The ID of the current XML node.
[out]testsToRunmapping, key= component name, value=(mapping key = suitesToRun, value = test cases to run)
private void fwUnitTestComponentParseConfigurationXml_recurseSuiteBlock ( int  configXmlFile,
int  node,
mapping &  testSuites,
string  componentName 
)
Description: Gets the suite name(and path).
Gets the test cases from parsing the XML file or if no test case is specified gets the tests using test discovery.
Usage
Public
Parameters
[in]configXmlint, The unitTestConfiguration document ID.
[in]nodeint, The ID of the current XML node.
[out]testsToRunmapping, key= component name, value=(mapping key = suitesToRun, value = test cases to run)
private void fwUnitTestComponentParseConfigurationXml_recurseTestCaseBlock ( int  configXmlFile,
int  node,
dyn_string &  testCases 
)
Description: Gets the list of test cases from parsing the XML file.
Usage
Public
Parameters
[in]configXmlint, The unitTestConfiguration document ID.
[in]nodeint, The ID of the current XML node.
[out]testsToRunmapping, key= component name, value=(mapping key = suitesToRun, value = test cases to run)
private void fwUnitTestComponentParseConfigurationXml_recurseXmlConfig ( int  configXmlFile,
int  node,
mapping &  testsToRun 
)
Description: Finds the sections of the XML file
Usage
Public
Parameters
[in]configXmlint, The unitTestConfiguration document ID.
[in]nodeint, The ID of the current XML node.
[out]testsToRunmapping, key= component name, value=(mapping key = suitesToRun, value = test cases to run)