Improve abbot.swt tests
From AbbotWiki
| Table of contents |
[edit]
overview
We need to increase coverage (http://www.cs.technion.ac.il/Courses/OOP/slides/export/236804-Fall-1997/lecture2/coverage.1.html) of tests on abbot.swt and its children. Since coverage is only increased by successful tests, we need to fix failures in existing tests, as well as add new ones.
[edit]
test buckets and results
[edit]
M 1 Aug 05 on 3.1/HEAD by Tom Roche
> success:
> MarkTestSuite
> MenuItemGetBoundsTest
> CelsiusConverterFindingTest
> CelsiusConverterTest
> ClassMultiMatcherTest
> CompositeMatcherTest
> ContextMenuTest (pseudotest)
> GetBoundsTest (pseudotest)
> TableSingleTesterTest
> TreeItem weirdness:
> * JavaProjectTester: succeeds on the third run. First run didn't
> expand the New Wizard tree (so I did it manually), second run
> expanded the tree but didn't 2click Class.
> * WTPSimpleWebProjectTest: succeeds similarly on second run.
> Second run works NP!
> * WTPWizardTest: similarly first failed to find Web>Simple Web Project
> (never got to Web>HTML), "trained" for both, then success.
> failures:
> * FinderTest: fails 4/11: testTableItemFind, testFileDialogOpen,
> testFindNewWindowButtons, testFindDialogByText
> * SWTPatchTest1: fails 2/10: testMenuItemGetBoundsCascadeMenus,
> testMenuItemGetBoundsPopupMenus
> * TableTesterTest:
> run 0: fails 1/3: testSelectionAndChecking (because duplicate UIs)
> run 1: fails 1/3: testSelectTableColumn (because UI disappears)
> run 2: fails 1/3: testSelectionAndChecking (because duplicate UIs)
> run 3: fails 1/3: testSelectTableColumn (because UI disappears)
> * TreeItemTest: fails 2/10: testSelectTreeItemBadRoot, testSelectTreeItemBadPath
> * MultiPageWizardExampleTest: initially
> > TreeItem {Plug-in Project} not found
> but that is trainable. Subsequently test fails with
> > junit.framework.AssertionFailedError: Widget not found
> > at junit.framework.Assert.fail(Assert.java:47)
> > at abbot.swt.eclipse.tests.MultiPageWizardExampleTest$2.run(MultiPageWizardExampleTest.java:148)
> > at abbot.swt.eclipse.tests.MultiPageWizardExampleTest.testMultiPageWizardExampleTest(MultiPageWizardExampleTest.java:157)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at junit.framework.TestCase.runTest(TestCase.java:154)
> > at junit.framework.TestCase.runBare(TestCase.java:127)
> > at junit.framework.TestResult$1.protect(TestResult.java:106)
> > at junit.framework.TestResult.runProtected(TestResult.java:124)
> > at junit.framework.TestResult.run(TestResult.java:109)
> > at junit.framework.TestCase.run(TestCase.java:118)
> > at junit.extensions.ActivePDETestSuite.runTest(ActivePDETestSuite.java:119)
> > at junit.framework.TestSuite.run(TestSuite.java:203)
> > at junit.extensions.ActivePDETestSuite.access$1(ActivePDETestSuite.java:1)
> > at junit.extensions.ActivePDETestSuite$1.run(ActivePDETestSuite.java:101)
> in JUnit view, and
> > abbot.finder.swt.WidgetNotFoundException: Widget NOT Found:
> > Text matcher (Pl&ug-in Version:)
> > at abbot.finder.swt.BasicFinder.find(BasicFinder.java:224)
> > at abbot.finder.swt.BasicFinder.find(BasicFinder.java:167)
> > at abbot.swt.eclipse.tests.MultiPageWizardExampleTest$2.run(MultiPageWizardExampleTest.java:122)
> > at abbot.swt.eclipse.tests.MultiPageWizardExampleTest.testMultiPageWizardExampleTest(MultiPageWizardExampleTest.java:157)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:324)
> > at junit.framework.TestCase.runTest(TestCase.java:154)
> > at junit.framework.TestCase.runBare(TestCase.java:127)
> > at junit.framework.TestResult$1.protect(TestResult.java:106)
> > at junit.framework.TestResult.runProtected(TestResult.java:124)
> > at junit.framework.TestResult.run(TestResult.java:109)
> > at junit.framework.TestCase.run(TestCase.java:118)
> > at junit.extensions.ActivePDETestSuite.runTest(ActivePDETestSuite.java:119)
> > at junit.framework.TestSuite.run(TestSuite.java:203)
> > at junit.extensions.ActivePDETestSuite.access$1(ActivePDETestSuite.java:1)
> > at junit.extensions.ActivePDETestSuite$1.run(ActivePDETestSuite.java:101)
> > java.lang.NoClassDefFoundError: org/eclipse/core/internal/utils/StringPool
> > at org.eclipse.core.internal.utils.StringPoolJob.shareStrings(StringPoolJob.java:111)
> > at org.eclipse.core.internal.utils.StringPoolJob.run(StringPoolJob.java:93)
> > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
> in Console.
[edit]
W 24 Aug 05 on 3.0 (pre-branch) by Kyle Shank
> success: > MarkTestSuite > MenuItemGetBoundsTest > CelsiusConverterFindingTest > CelsiusConverterTest > ClassMultiMatcherTest > CompositeMatcherTest > ContextMenuTest (pseudotest) > GetBoundsTest (pseudotest) > TableSingleTesterTest All of the successes work. > TreeItem weirdness: > * JavaProjectTester: succeeds on the third run. First run didn't > expand the New Wizard tree (so I did it manually), second run > expanded the tree but didn't 2click Class. JavaProjectTester works fine. > * WTPSimpleWebProjectTest: succeeds similarly on second run. > Second run works NP! Fails but then again i am targeting RAD for this (is that supposed to work?) > * WTPWizardTest: similarly first failed to find Web>Simple Web Project > (never got to Web>HTML), "trained" for both, then success. Fails but then again i am targeting RAD for this (is that supposed to work?) > failures: > * FinderTest: fails 4/11: testTableItemFind, testFileDialogOpen, > testFindNewWindowButtons, testFindDialogByText FinderTest fails with same problems. > * SWTPatchTest1: fails 2/10: testMenuItemGetBoundsCascadeMenus, > testMenuItemGetBoundsPopupMenus SWTPatchTest1 fails in the same way again. > * TableTesterTest: > run 0: fails 1/3: testSelectionAndChecking (because duplicate UIs) > run 1: fails 1/3: testSelectTableColumn (because UI disappears) > run 2: fails 1/3: testSelectionAndChecking (because duplicate UIs) > run 3: fails 1/3: testSelectTableColumn (because UI disappears) TableTesterTest runs fine! > * TreeItemTest: fails 2/10: testSelectTreeItemBadRoot, testSelectTreeItemBadPath TreeItemTest returns all green but spits out some nasty stuff in console. > * MultiPageWizardExampleTest: initially MultiPageWizardExample fails similarly to what is already here: testMultiPageWizardExampleTest(abbot.swt.eclipse.tests.MultiPageWizardExampleTest) abbot.WaitTimedOutError: Timed out waiting for New Plug-in Project to show at abbot.tester.swt.Robot.wait(Robot.java:1445) at abbot.tester.swt.Robot.wait(Robot.java:1420) at abbot.tester.swt.WidgetTester.waitForShellShowing(WidgetTester.java:924) at abbot.swt.eclipse.tests.MultiPageWizardExampleTest$2.run(MultiPageWizardExampleTest.java:89) at abbot.swt.eclipse.tests.MultiPageWizardExampleTest.testMultiPageWizardExampleTest(MultiPageWizardExampleTest.java:157) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.extensions.ActivePDETestSuite.runTest(ActivePDETestSuite.java:119) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.extensions.ActivePDETestSuite.access$1(ActivePDETestSuite.java:1) at junit.extensions.ActivePDETestSuite$1.run(ActivePDETestSuite.java:101) and junit.framework.AssertionFailedError: Widget not found at junit.framework.Assert.fail(Assert.java:47) at abbot.swt.eclipse.utils.InvokeNewWizard$1.run(InvokeNewWizard.java:75)
![[Main Page]](/wiki/stylesheets/images/wiki.png)