The original IE test was in SAMIE which you can find SAMIE. Also check out WATIR for a version in ruby.
I took that code, converted to OO exclusively (or nearly so) and added a unit test framework on to it.
The full documentation is here jIETest documentation.
The files with names starting "test" are for the unit tester. It is written using TCL/TK.
This screen shot shows the unit test screen written in TCL/TK. Invoke it with "perl testjietest.pl". It shows that a total of 4 tests were run, which invoked 38 asserts. There were no failures.
Entering the number of tests and then clicking the Random button will cause that many tests to be run, randomly selected from the selected list of tests or if none selected from all of the tests.
The console also has output:
D:\projects\jietest>perl testjietest.pl RunRandomTests: Running 10 tests... 2009-10-12 21:53:39: 1: [ 218] TestRadioButton_Is_withClass 2009-10-12 21:53:39: 2: [ 300] TestURL_Is 2009-10-12 21:53:40: 3: [ 160] TestMisc_BackButton_Click 2009-10-12 21:53:42: 4: [ 107] TestLabel_Click_withName 2009-10-12 21:53:42: 5: [ 242] TestTable_Exists_BadCell 2009-10-12 21:53:42: 6: [ 266] TestTextArea_Bad_SetText 2009-10-12 21:53:42: 7: [ 74] TestEditBox_withClass 2009-10-12 21:53:43: 8: [ 113] TestLink_Bad_Get 2009-10-12 21:53:43: 9: [ 277] TestTextArea_withClass 2009-10-12 21:53:43: 10: [ 148] TestListBox_Verify_ExistsThis shows that 10 random tests were requested. The numbers in square brackets "[ 218]" is the index of the test that was run followed by it's name.
The result.log file contains a summary of the test run. The following shows the test "TestRadioButton_Is_withClass" at line 1759 in testjietest.pl was run. It executed a couple of asserts at line 1808 and 1827, both of which passed, i.e. the Actual matched the Expected values.
testjietest.pl(1795) ToResult: ------- main::TestRadioButton_Is_withClass testjietest.pl(1808) RadioButton->VerifyState: PASS: RadioButton: testradio1_id Actual: '0' Expected: '0' testjietest.pl(1827) RadioButton->VerifyState: PASS: RadioButton: testradio1_id Actual: '1' Expected: '1'The final results are printed in result.log:
testjietest.pl(5523) SelfTestSummary: ######################################### testjietest.pl(5523) SelfTestSummary: SELFTEST: Total Tests run: 112 testjietest.pl(5523) SelfTestSummary: SELFTEST: Total Tests Failed: 0This shows that 112 tests were run and there were no failures.
| Contact me about content on this page using john_web-at-arrizza-dot-com |
| For Web Master or site problems contact: webadmin-at-arrizza-dot-com |
| Copyright John Arrizza (c) 2001-2010 |