Changes

Jump to: navigation, search

Unit Testing

7 bytes added, 15:46, 10 December 2006
Run the tests
=== Run the tests ===
After adding the test cases to the extension, the participant can install the extension by drag and drop the extension into Firefox, and then click on install to install the unit testing framework with your test cases. You can click on Tools menu from Firefox, and you will see the following screen shot.
 
[[image:extension01.png|600px]] <br />
Select the Unit Testing, system will pop up the test window as following.
 
[[image:extension04.png|600px]] <br />
Users can also open the error console window to watch all testing logs. Here is the console window.
 
[[image:extension05.png|601px]] <br />
Now click on the run button on test window. All logs will be displayed in console.
 
[[image:extension06.png|601px]] <br />
Notice: The framework runs the setUp() first, which we can see the highlighting in the screen shot.
 
[[image:extension06-1.png|600px]] <br />
Notice: The framework runs the tearDown() when all the test cases are finished, which we can see the highlighting in the screen shot.
 
[[image:extension06-2.png|600px]] <br />
After pushing button, the test result will be displayed on test window.
 
[[image:extension07.png|601px]] <br />
1
edit

Navigation menu