|
UnitTestHarness
1.0
Unit Testing Tool
|
This script will get passed to evalScript to run the tests. Used by fwUnitTestComponentTestRunner.ctl. More...
Functions | |
| dyn_anytype | main (dyn_string testCases, string suiteSetup, string suiteTeardown, string caseSetup, string caseTeardown, shape testSelectionTree, shape testProgressBar, shape feedbackText, shape feedbackProgressText, int numTestsToRun, int totalTestsPassed, int totalTestsPerformed) |
| private void | callSetupOrTeardown (string routineName) |
This script will get passed to evalScript to run the tests. Used by fwUnitTestComponentTestRunner.ctl.
We had an use with using a seperate eval for calling each test case and each setup routine seperately. The global state set-up in the setup routines, was not accessible in the test case routines. So now we eval this whole script.
| private void callSetupOrTeardown | ( | string | routineName | ) |
| [in] | routineName | string, The name of the routine to be called. |
| dyn_anytype main | ( | dyn_string | testCases, |
| string | suiteSetup, | ||
| string | suiteTeardown, | ||
| string | caseSetup, | ||
| string | caseTeardown, | ||
| shape | testSelectionTree, | ||
| shape | testProgressBar, | ||
| shape | feedbackText, | ||
| shape | feedbackProgressText, | ||
| int | numTestsToRun, | ||
| int | totalTestsPassed, | ||
| int | totalTestsPerformed | ||
| ) |
| [in] | testCases | dyn_string, The test cases that should be run. |
The name of the setup/teardown routine:
| [in] | suiteSetup | string |
| [in] | suiteTeardown | string |
| [in] | caseSetup | string |
| [in] | caseTeardown | string |
GUI object to show the progess :
| [in] | testSelectionTree | shape |
| [in] | testProgressBar | shape |
| [in] | feedbackText | shape |
| [in] | feedbackProgressText | shape |
| [in] | numTestsToRun | int |
| [in] | totalTestsPassed | int |
| [in] | totalTestsPerformed | int |