|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Verification hook Issue Hi
I am a new user to Eclipse TPTP AGR tool and using it to create automated test cases as per the instructions provided in the link http://www.eclipse.org/tptp/test/documents/userguides/Intro-Auto-GUI.html. While I was able to successfully execute all simple examples I am facing difficulty in executing later examples such as variable substitution,verification hooks example as well as standard widget specially the examples like
2.2.5 Using Variable Substitution
2.3 Verification Mechanisms
2.3.1 Verification by Selection
2.3.2 Inserting a Verification Hook
2.4 Widget Resolving Mechanism
Normally the problem I am facing is failure to execute one or the other macro command although I am following all instructions provided for abovementioned cases in the tutorial for Eclipse TPTP AGR tool.
for example in executing the verification hook example when I am trying to insert the log file by clicking the insert button on AGR recorder panel it passes as saying the selected file is not of suitable type.
I am getting the following error when trying to execute a pageflow project .
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.createPlaybackException(MacroCommandShell.java:1217)
at org.eclipse.tptp.test.auto.gui.internal.commands.MacroCommandShell.access$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.BooleanSelectionCommand.doClick(BooleanSelectionCommand.java:490)
at org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSelectionCommand.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.runApplication(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)
I am getting the similar error in implementing TPTP AGR examples.
The test case usually fails with inability to execute one or more macro commands the most common being the either "item select[line -x] failed to execute" or "finish button was disabled". I am getting the same error even when working with wait time recording button.
Thanks in advance
Thanks and Regards
Sagar
|
|
|
Re: Verification hook IssueHi Sagar, Actually, I'm having yet the same errors, I was wondering if you have succeeded to execute your tests correctly, and ask eventually how did you manage to resolve this problem.
Thanks and regards m.ETTAIB
|
| Free embeddable forum powered by Nabble | Forum Help |