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

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)
 

Detailed Description

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.

Creation Date
02/06/2014

Function Documentation

private void callSetupOrTeardown ( string  routineName)
Usage
Private
Parameters
[in]routineNamestring, 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 
)
Description: Runs the suite setup, case setup, test case, case teardown and suite teardown routines.
Keeps the GUI upto date with the results.
Usage
Used by fwUnitTestComponentTestRunner.ctl
Parameters
[in]testCasesdyn_string, The test cases that should be run.

The name of the setup/teardown routine:

Parameters
[in]suiteSetupstring
[in]suiteTeardownstring
[in]caseSetupstring
[in]caseTeardownstring

GUI object to show the progess :

Parameters
[in]testSelectionTreeshape
[in]testProgressBarshape
[in]feedbackTextshape
[in]feedbackProgressTextshape
[in]numTestsToRunint
[in]totalTestsPassedint
[in]totalTestsPerformedint