Changes

Jump to: navigation, search

Unit Testing

1 byte removed, 14:50, 10 December 2006
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|602px]] <br />
[[image:extension01.png|600px]] <br />
Select the Unit Testing, system will pop up the test window as following.
[[image:extension04.png|602px]] <br />
[[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|602px]] <br />
[[image:extension05.png|601px]] <br />
Now click on the run button on test window. All logs will be displayed in console.
[[image:extension06.png|602px]] <br />
[[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|602px]] <br />
[[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|602px]] <br />
[[image:extension06-2.png|600px]] <br />
After pushing button, the test result will be displayed on test window.
 [[image:extension07.png|601px602px]] <br />
Further more, user can run test cases as many times as they want, and the result will be populated on test window as well.
[[image:extension08.png|601px602px]] <br />
=== What I have done ===
1
edit

Navigation menu