|
UnitTestHarness
1.0
Unit Testing Tool
|
This file contains the functions to write the XML results files. A XML file is created for each of the components. More...
Functions | |
| void | fwUnitTestComponentGenerateResultsReport_createResultXml (mapping results) |
| private void | fwUnitTestComponentGenerateResultsReport_setupResultsDir () |
| private void | fwUnitTestComponentGenerateResultsReport_createXmlFileForAComponent (string componentName, dyn_anytype componentResults) |
| private void | fwUnitTestComponentGenerateResultsReport_addComponentToXml (int xmlDocument, string componentName, dyn_anytype componentResults) |
| private void | fwUnitTestComponentGenerateResultsReport_addTestSuiteToXml (int xmlDocument, int componentElementId, string suiteName, dyn_anytype suitesResults, string componentName) |
| private void | fwUnitTestComponentGenerateResultsReport_addTestCaseToXml (int xmlDocument, int suiteElementId, string caseName, dyn_anytype caseResults) |
Variables | |
| const int | SUCCESS_INDEX = 1 |
| const int | FAILED_MESSAGE_INDEX = 2 |
| const int | CASE_EXEC_TIME_INDEX = 3 |
| const int | RESULTS_INDEX = 1 |
| const int | NUM_TESTS_INDEX = 2 |
| const int | NUM_FAILED_INDEX = 3 |
| const int | EXEC_TIME_INDEX = 4 |
| const string | RESULTS_DIR = PROJ_PATH + "/Results/" |
| const string | RESULTS_INDEX_PATHNAME = RESULTS_DIR + "index.html" |
| const string | XSL_NAME = "componentResultsFormatting.xsl" |
| const string | XSL_PATHNAME = "/config/" + XSL_NAME |
| const string | LIGHT_RED = "#FF9999" |
| const string | LIGHT_GREEN = "#99FF99" |
This file contains the functions to write the XML results files. A XML file is created for each of the components.
| private void fwUnitTestComponentGenerateResultsReport_addComponentToXml | ( | int | xmlDocument, |
| string | componentName, | ||
| dyn_anytype | componentResults | ||
| ) |
| [in] | xmlDocument | int, id for the XML document that is being created. |
| [in] | componentName | string |
| [in] | componentResults | dyn_anytype, [RESULTS, NUM_TESTS, NUM_FAILED] RESULTS is mapping, key = suite name, value = results for a suite( |
| private void fwUnitTestComponentGenerateResultsReport_addTestCaseToXml | ( | int | xmlDocument, |
| int | suiteElementId, | ||
| string | caseName, | ||
| dyn_anytype | caseResults | ||
| ) |
| [in] | caseResults | dyn_anytype, [SUCCESS_INDEX, FAILED_MESSAGE_INDEX,CASE_EXEC_TIME_INDEX ] |
| private void fwUnitTestComponentGenerateResultsReport_addTestSuiteToXml | ( | int | xmlDocument, |
| int | componentElementId, | ||
| string | suiteName, | ||
| dyn_anytype | suitesResults, | ||
| string | componentName | ||
| ) |
| [in] | xmlDocument | int, id for the XML document that is being created. |
| [in] | componentElementId | int, the id for the component within the xmlDocument |
| [in] | suiteName | string |
| [in] | suitesResults | dyn_anytype, [RESULTS, NUM_TESTS, NUM_FAILED] RESULTS is mapping, key = test case name, value = results for a case ( |
| [in] | componentName | string |
| void fwUnitTestComponentGenerateResultsReport_createResultXml | ( | mapping | results | ) |
| [in] | results | mapping, key = component name, value = results for a component( |
| private void fwUnitTestComponentGenerateResultsReport_createXmlFileForAComponent | ( | string | componentName, |
| dyn_anytype | componentResults | ||
| ) |
| [in] | componentName | string |
| [in] | componentResults | dyn_anytype, [RESULTS, NUM_TESTS, NUM_FAILED] RESULTS is mapping, key = suite name, value = results for a suite( |
| private void fwUnitTestComponentGenerateResultsReport_setupResultsDir | ( | ) |
| const int CASE_EXEC_TIME_INDEX = 3 |
| const int EXEC_TIME_INDEX = 4 |
| const int FAILED_MESSAGE_INDEX = 2 |
| const string LIGHT_GREEN = "#99FF99" |
| const string LIGHT_RED = "#FF9999" |
| const int NUM_FAILED_INDEX = 3 |
| const int NUM_TESTS_INDEX = 2 |
| const string RESULTS_DIR = PROJ_PATH + "/Results/" |
| const int RESULTS_INDEX = 1 |
| const string RESULTS_INDEX_PATHNAME = RESULTS_DIR + "index.html" |
| const int SUCCESS_INDEX = 1 |
| const string XSL_NAME = "componentResultsFormatting.xsl" |
| const string XSL_PATHNAME = "/config/" + XSL_NAME |