Changes

Jump to: navigation, search

Unit Testing

785 bytes added, 00:32, 8 December 2006
Structure this framework
[[image:structure01.png|600px]] <br />
From the above screen shot, we can see this framework name is unittesting@paulgu.com, and it contains the following folder and files:
* content. It contains the framework code and unit testing code.
* default. This holds default preferences of this extension.
* local. This contains the language settings of this extension.
* skin. This is the style of the extension.
* build.sh, chrome.manifest, config_build.sh, install.rdf, and readme.txt are standard files of the extension. They contains installation information.
 
 
[[image:structure02.png|600px]] <br />
This screen shot is showing us a detail list of the famework file in the content folder.
* It contains the jsUnitTest core files which start with jsUnitTest.
* It also contains Unit Testing framework files which start with unittesting.
 
 
The files starting with is the core framework files.
* unittesting.js, holds the unit test cases that need to be tested.
* unittestingDisplay.js, is responsible for displaying message to UI.
* unittestingLog.js, is responsible for logging message to the error console or log file.
* unittestingOverlay.js, is responsible for populating the GUI window.
* unittestingWindow.js, holds all the unit testing functions
* unittestingWindow.xul, is responsible for loading the framework and updating UI elements.
=== How to write test case by using this framework ===
1
edit

Navigation menu