Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 174150

Summary: [Testsuite Failure] Testsuite Platform.UI.LogView fails due to error while executing GUI macro
Product: z_Archived Reporter: vrushali satpute <vsatpute>
Component: TPTPAssignee: Alex Nan <apnan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: ewchan, jkubasta, labadie, lizdancy, rohit.shetty
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460

Description vrushali satpute CLA 2007-02-14 07:28:21 EST
Build ID:  I20070123-1715

Steps To Reproduce:
1. Execute testsuite org.eclipse.hyades.use.cases\gui_results\Profiling_and_Logging\4.4-1-Windows_XP\Platform.UI.LogView

TPTP Build id: tptp.sdk-TPTP-4.4.0-200702050100
Java Build: ibm_jdk1.5.0_sr1

Testcases failed:
AddSymptomWithThreeSolutions
AnalyzeAllRecordsOfLogfile
AddTwoSymptoms
AnalyseBothLogFiles
ChangeSDAndRefreshLogView
ChangeSolutionAndDirectiveDescriptions
DeleteSimpleProject.      

More information:
exception thrown:
There was an error while running the macro associated with the test case: AddSymptomWithThreeSolutions.  org.eclipse.core.runtime.CoreException: Line 44: Cannot locate menu item: contribid/save0|6
	at org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCoreException(AutoGUIUtil.java:616)
	at org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCoreException(AutoGUIUtil.java:608)
	at org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLocator.locateMenuBarItem(MacroObjectLocator.java:325)
	at org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLocator.locateCommandTarget(MacroObjectLocator.java:91)
	at org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionCommand.playback(BooleanSelectionCommand.java:258)
	at org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.run(MacroCommandShell.java:1213)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3442)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3082)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2083)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2047)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:449)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:101)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:145)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:170)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:476)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
	at org.eclipse.core.launcher.Main.main(Main.java:23)
Comment 1 Eugene Chan CLA 2007-02-14 19:05:42 EST
Target 4.4
Comment 2 Dave Smith CLA 2007-02-21 15:26:33 EST
I refactored the testsuite.
Comment 3 Dave Smith CLA 2007-02-21 15:27:13 EST
Committed fixed testsuite to TPTP Head CVS.
Comment 4 Dave Smith CLA 2007-02-21 15:28:18 EST
Please test this with the latest driver to verify it is fixed.  Thanks.
Comment 5 vrushali satpute CLA 2007-02-23 06:29:27 EST
Testcase AnalyseBothLogFiles of Testsuite  Platform.UI.LogView failed again in TPTP 4.4.0 Testpass 2 .
Exception: 
There was an error while running the macro associated with the test case: AnalyzeBothLogFiles.  org.eclipse.core.runtime.CoreException: Error while executing a macro command: MacroCommand [item-select, line 26]
	at org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.createPlaybackException(MacroCommandShell.java:1264)
	at org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.access$11(MacroCommandShell.java:1261)
	at org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.run(MacroCommandShell.java:1217)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3467)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3107)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2264)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2228)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2103)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:457)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:452)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:101)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:146)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:476)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1124)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
	at org.eclipse.core.launcher.Main.main(Main.java:23)

eclipse build id: I20070209-1006
TPTP build id: tptp.sdk-TPTP-4.4.0-200702211545
java build : ibm_jdk1.5.0_sr1

Comment 6 Dave Smith CLA 2007-02-23 18:07:42 EST
We can run testsuite Platform.UI.LogView without errors.  We'll leave this bugzilla open to try to resolve why you are getting this failure in iteration 2.

Adding Liz to the cc list to get her help on solving this.
Comment 7 Eric Labadie CLA 2007-08-09 17:35:56 EDT
This is nice to have from AC perspective.
Comment 8 Rohit Shetty CLA 2007-09-21 15:23:20 EDT
Vrushali,
You can go ahead and close this if its resolved with https://bugs.eclipse.org/bugs/show_bug.cgi?id=202728.
Comment 9 Alex Nan CLA 2007-12-17 10:18:06 EST
Reassigning defects to current component owner.
Comment 10 Alex Nan CLA 2007-12-19 00:13:50 EST
This defect was fixed. I updated and successfully ran the Platform.LogView test suite in 4.5 i4 TP1.
Comment 11 Paul Slauenwhite CLA 2009-06-30 13:19:55 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.