UnitTestHarness
1.0
Unit Testing Tool
|
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 |
This file is used by the fwUnitTestComponentTestRunner.pnl and fwUnitTestComponentStartTestRunner.ctl(when using the python harness) to run the unit tests.
private void fwUnitTestComponentTestRunner_runCaseSetup | ( | const string | testSuiteScriptContent, |
const string | testScriptPathName | ||
) |
[in] | testSuiteScriptContent | string |
[in] | testScriptPathName | string |
private void fwUnitTestComponentTestRunner_runCaseTeardown | ( | const string | testSuiteScriptContent, |
const string | testScriptPathName | ||
) |
[in] | testSuiteScriptContent | string |
[in] | testScriptPathName | string |
private void fwUnitTestComponentTestRunner_runSuiteSetup | ( | const string | testSuiteScriptContent, |
const string | testScriptPathName | ||
) |
[in] | testSuiteScriptContent | string |
[in] | testScriptPathName | string |
private void fwUnitTestComponentTestRunner_runSuiteTeardown | ( | const string | testSuiteScriptContent, |
const string | testScriptPathName | ||
) |
[in] | testSuiteScriptContent | string |
[in] | testScriptPathName | string |
private void fwUnitTestComponentTestRunner_runTestCase | ( | string | testSuiteScriptPath, |
string | testSuiteScriptContent, | ||
string | testCase, | ||
bool & | success, | ||
string & | failedMessage, | ||
string & | strExecTime | ||
) |
[in] | testSuiteScriptContent | string |
[in] | testCase | string[] |
[out] | success | bool |
[out] | failedMessage | string, |
[out] | execTime | int, |
void fwUnitTestComponentTestRunner_runTests | ( | mapping | testsToPerform, |
shape | testSelectionTree = 0 , |
||
shape | testProgressBar = 0 , |
||
shape | feedbackText = 0 , |
||
shape | feedbackProgressText = 0 , |
||
int | numTestsToRun = 0 |
||
) |
[in] | testsToPerform | mapping, key = component, value = mapping(key = script, value = routine names) |
The following parameters are only given when run using the panel.
[in] | testSelectionTree | shape |
[in] | testProgressBar | shape |
[in] | feedbackText | shape |
[in] | feedbackProgressText | shape |
[in] | numTestsToRun | int |
private void fwUnitTestComponentTestRunner_runTestsForComponent | ( | string | componentName, |
mapping | componentTestSuites, | ||
shape | testSelectionTree, | ||
shape | testProgressBar, | ||
shape | feedbackText, | ||
shape | feedbackProgressText, | ||
int | numTestsToRun, | ||
mapping & | results | ||
) |
[in] | componentName | string |
[in] | componentTestSuites | mapping, key = script, value = routine names |
[in] | testSelectionTree | shape, |
[in] | testProgressBar | shape, |
[out] | results | mapping, key = component name, value = results for a component |
string INSTALLATION_DIRECTORY_DPE = "fwInstallationInfo.installationDirectoryPath" |
int totalTestsPassed = 0 |
int totalTestsPerformed = 0 |