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

This file is used by the fwUnitTestComponentTestRunner.pnl and fwUnitTestComponentStartTestRunner.ctl(when using the python harness) to run the unit tests. More...

Functions

void fwUnitTestComponentTestRunner_runTests (mapping testsToPerform, shape testSelectionTree=0, shape testProgressBar=0, shape feedbackText=0, shape feedbackProgressText=0, int numTestsToRun=0)
 
private void fwUnitTestComponentTestRunner_runTestsForComponent (string componentName, mapping componentTestSuites, shape testSelectionTree, shape testProgressBar, shape feedbackText, shape feedbackProgressText, int numTestsToRun, mapping &results)
 
private void fwUnitTestComponentTestRunner_runTestCase (string testSuiteScriptPath, string testSuiteScriptContent, string testCase, bool &success, string &failedMessage, string &strExecTime)
 
private void fwUnitTestComponentTestRunner_runSuiteSetup (const string testSuiteScriptContent, const string testScriptPathName)
 
private void fwUnitTestComponentTestRunner_runCaseSetup (const string testSuiteScriptContent, const string testScriptPathName)
 
private void fwUnitTestComponentTestRunner_runCaseTeardown (const string testSuiteScriptContent, const string testScriptPathName)
 
private void fwUnitTestComponentTestRunner_runSuiteTeardown (const string testSuiteScriptContent, const string testScriptPathName)
 

Variables

string INSTALLATION_DIRECTORY_DPE = "fwInstallationInfo.installationDirectoryPath"
 
int totalTestsPassed = 0
 
int totalTestsPerformed = 0
 

Detailed Description

This file is used by the fwUnitTestComponentTestRunner.pnl and fwUnitTestComponentStartTestRunner.ctl(when using the python harness) to run the unit tests.

Creation Date
01/04/2014

Function Documentation

private void fwUnitTestComponentTestRunner_runCaseSetup ( const string  testSuiteScriptContent,
const string  testScriptPathName 
)
Usage
private
Parameters
[in]testSuiteScriptContentstring
[in]testScriptPathNamestring
private void fwUnitTestComponentTestRunner_runCaseTeardown ( const string  testSuiteScriptContent,
const string  testScriptPathName 
)
Usage
private
Parameters
[in]testSuiteScriptContentstring
[in]testScriptPathNamestring
private void fwUnitTestComponentTestRunner_runSuiteSetup ( const string  testSuiteScriptContent,
const string  testScriptPathName 
)
Usage
private
Parameters
[in]testSuiteScriptContentstring
[in]testScriptPathNamestring
private void fwUnitTestComponentTestRunner_runSuiteTeardown ( const string  testSuiteScriptContent,
const string  testScriptPathName 
)
Usage
private
Parameters
[in]testSuiteScriptContentstring
[in]testScriptPathNamestring
private void fwUnitTestComponentTestRunner_runTestCase ( string  testSuiteScriptPath,
string  testSuiteScriptContent,
string  testCase,
bool &  success,
string &  failedMessage,
string &  strExecTime 
)
Description: Runs a test case.
Usage
private
Parameters
[in]testSuiteScriptContentstring
[in]testCasestring[]
[out]successbool
[out]failedMessagestring,
[out]execTimeint,
void fwUnitTestComponentTestRunner_runTests ( mapping  testsToPerform,
shape  testSelectionTree = 0,
shape  testProgressBar = 0,
shape  feedbackText = 0,
shape  feedbackProgressText = 0,
int  numTestsToRun = 0 
)
Description: Runs all of the given tests.
Usage
Public
Parameters
[in]testsToPerformmapping, key = component, value = mapping(key = script, value = routine names)

The following parameters are only given when run using the panel.

Parameters
[in]testSelectionTreeshape
[in]testProgressBarshape
[in]feedbackTextshape
[in]feedbackProgressTextshape
[in]numTestsToRunint
private void fwUnitTestComponentTestRunner_runTestsForComponent ( string  componentName,
mapping  componentTestSuites,
shape  testSelectionTree,
shape  testProgressBar,
shape  feedbackText,
shape  feedbackProgressText,
int  numTestsToRun,
mapping &  results 
)
Description: For each of the tests suites runs the suiteSetup(), the tests cases(including the setup() and teardown()) and the suiteTeardown().
Usage
private
Parameters
[in]componentNamestring
[in]componentTestSuitesmapping, key = script, value = routine names
[in]testSelectionTreeshape,
[in]testProgressBarshape,
[out]resultsmapping, key = component name, value = results for a component
See also
fwUnitTestComponentGenerateResultsReport.ctl

Variable Documentation

string INSTALLATION_DIRECTORY_DPE = "fwInstallationInfo.installationDirectoryPath"
int totalTestsPassed = 0
int totalTestsPerformed = 0