Hi
I am creating the test case in Eclipse TPTP AGR tool. I am
successful in creating and testing a simple java project but if the
testcase tries to test anything more complex then that like a java
project containing a simple file "hello.java" the testcase fails.The
test case contains the stacktrace as follows.
Mar 27, 2007 12:08:52 PM GMT+05:30
There was an error while running the macro associated with the test
case: Automated GUI Test2. org.eclipse.core.runtime.CoreException:
Error while executing a macro command: MacroCommand [item-select,
line 5]
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.cr
eatePlaybackException(MacroCommandShell.java:1217)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.ac
cess$11(MacroCommandShell.java:1214)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1164)
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:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
at org.eclipse.jface.window.Window.runEventLoop
(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewProjectAction.run
(NewProjectAction.java:116)
at org.eclipse.jface.action.Action.runWithEvent
(Action.java:499)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent
(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners
(Widget.java:709)
at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.doClick(BooleanSelectionCommand.java:490)
at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.playback(BooleanSelectionCommand.java:294)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1160)
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:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework
(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Mar 28, 2007 2:12:02 PM GMT+05:30
There was an error while running the macro associated with the test
case: Automated GUI Test2.6.
org.eclipse.core.runtime.CoreException: A time-out occurred while
waiting for the nested shell org.eclipse.jface.wizard.WizardDialog
to complete. It is likely caused by the absence of the shell.
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.pl
ayback(MacroCommandShell.java:846)
at
org.eclipse.tptp.test.auto.gui.internal.macro.Macro.playback
(Macro.java:346)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.runMacro
(MacroManager.java:574)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.access$4
(MacroManager.java:568)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager$1
$MacroOperationWrapper.run(MacroManager.java:501)
at java.lang.Thread.run(Unknown Source)
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
------------------------------------------------
Mar 29, 2007 11:19:55 AM GMT+05:30
org.eclipse.core.runtime.CoreException
Line 2: The UI object with reference id 0 was not found
org.eclipse.core.runtime.CoreException: Line 2: The UI object with
reference id 0 was not found
at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCoreExceptio
n(AutoGUIUtil.java:616)
at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCoreExceptio
n(AutoGUIUtil.java:608)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLocator.look
upReferenceId(MacroObjectLocator.java:804)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.lo
ad(MacroCommandShell.java:221)
at org.eclipse.tptp.test.auto.gui.internal.macro.Macro.addShell
(Macro.java:75)
at org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.play
(MacroManager.java:474)
at org.eclipse.tptp.test.auto.gui.internal.runner.AutoGUIRunner$1
$MacroPlayWrapper.run(AutoGUIRunner.java:580)
at java.lang.Thread.run(Unknown Source)
There was an error while running the macro associated with the test
case: Automated GUI Test. org.eclipse.core.runtime.CoreException: A
time-out occurred while running command MacroCommand [wait, line
20]. This is likely caused by the presence of an unexpected dialog
or the absence of an expected dialog.
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.pl
ayback(MacroCommandShell.java:1040)
at
org.eclipse.tptp.test.auto.gui.internal.macro.Macro.playback
(Macro.java:346)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.runMacro
(MacroManager.java:574)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager.access$4
(MacroManager.java:568)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroManager$1
$MacroOperationWrapper.run(MacroManager.java:501)
at java.lang.Thread.run(Unknown Source).
There was an error while running the macro associated with the test
case: Automated GUI Test. org.eclipse.core.runtime.CoreException:
Error while executing a macro command: MacroCommand [item-select,
line 24]
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.cr
eatePlaybackException(MacroCommandShell.java:1217)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.ac
cess$11(MacroCommandShell.java:1214)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1164)
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:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
at org.eclipse.jface.window.Window.runEventLoop
(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.ImportResourcesAction.run
(ImportResourcesAction.java:159)
at
org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent
(BaseSelectionListenerAction.java:168)
at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2
(ActionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent
(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners
(Widget.java:709)
at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.doClick(BooleanSelectionCommand.java:490)
at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionComm
and.playback(BooleanSelectionCommand.java:294)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell$4.
run(MacroCommandShell.java:1160)
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:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework
(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Could you please suggest a way forward.
Thanks in advance
Sagar