Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Problem with AGR
Problem with AGR [message #412988] Thu, 30 July 2009 09:15 Go to next message
Gopal is currently offline GopalFriend
Messages: 11
Registered: July 2009
Junior Member
Hi all,

I am using AGR for Testing(Record/Playback)my eclipse application.

I am able to record all activity of my application using AGR but when i
play back them, most of the time it throws the following error:

(Suppose i recorded Open perspective option from the tool bar to switch
the perspective and when i am playing back this XML script, always throws
the following error)

java.lang.reflect.InvocationTargetException
null
org.eclipse.core.runtime.CoreException: Line 3: Cannot locate menu item:
{{Other...}}-{{1.0}}
at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCor eException(AutoGUIUtil.java:616)
at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCor eException(AutoGUIUtil.java:608)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.locatePopupMenuItem(MacroObjectLocator.java:438)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.locateCommandTarget(MacroObjectLocator.java:95)
at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSele ctionCommand.playback(BooleanSelectionCommand.java:258)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell$4.run(MacroCommandShell.java:1215)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)



Not only in above case but also in some other cases this error is coming.
Can anybody suggest me why this error is coming?
How can i rectify this error?

Regards
Gopal
Re: Problem with AGR [message #416879 is a reply to message #412988] Thu, 30 July 2009 10:41 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Goal,
This error means that the AGR cannot find the recorded widget during
playback. Did you record in object-based or positional mode? If
positional, try the object-base mode. Also, there are limitations in the
widgets that the AGR can record/playback so try opening the perspective from
the file menu.

Paul
"Gopal " <gopal.pagrut@gemalto.com> wrote in message
news:e43051d7241af8220dbb141cede86afe$1@www.eclipse.org...
> Hi all,
>
> I am using AGR for Testing(Record/Playback)my eclipse application.
>
> I am able to record all activity of my application using AGR but when i
> play back them, most of the time it throws the following error:
>
> (Suppose i recorded Open perspective option from the tool bar to switch
> the perspective and when i am playing back this XML script, always throws
> the following error)
> java.lang.reflect.InvocationTargetException
> null
> org.eclipse.core.runtime.CoreException: Line 3: Cannot locate menu item:
> {{Other...}}-{{1.0}}
> at
> org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCor eException(AutoGUIUtil.java:616)
> at
> org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCor eException(AutoGUIUtil.java:608)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.locatePopupMenuItem(MacroObjectLocator.java:438)
> at
> org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.locateCommandTarget(MacroObjectLocator.java:95)
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSele ctionCommand.playback(BooleanSelectionCommand.java:258)
> at
> org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell$4.run(MacroCommandShell.java:1215)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
>
>
>
> Not only in above case but also in some other cases this error is coming.
> Can anybody suggest me why this error is coming?
> How can i rectify this error?
>
> Regards
> Gopal
>
>
Re: Problem with AGR [message #478812 is a reply to message #416879] Fri, 07 August 2009 03:28 Go to previous messageGo to next message
Gopal is currently offline GopalFriend
Messages: 11
Registered: July 2009
Junior Member
Hi Paul,

I am using the Object base recording(I think by default its a object base
recoding).The above error is thrown not only in above case but also in
many other cases too(there i don't have a choice to navigate by another
way) .

As i am recoding/Playing my application, Most of the cases i am getting
this error!.In some cases i have only one option to record/playback the
test cases!

Is there any way to sort out this limitation?

Again when i used the positional based recording to record,i unable to
play back it?


Thanks & Regards
Gopal
Re: Problem with AGR [message #479224 is a reply to message #478812] Mon, 10 August 2009 10:23 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Gopal,
The only work-around for this problem would be to write a custom widget
resolver (see
http://www.eclipse.org/tptp/test/documents/userguides/Intro- Auto-GUI-4-5-0.html#2.4).
Would you be interested in contributing a patch to resolve this limitation
in the AGR?

Positional based recording may work in some cases but requires more test
case maintenance when playing back in different machines.

Paul
"Gopal " <gopal.pagrut@gemalto.com> wrote in message
news:82819ff4676b35d55b814a375a903cbb$1@www.eclipse.org...
> Hi Paul,
>
> I am using the Object base recording(I think by default its a object base
> recoding).The above error is thrown not only in above case but also in
> many other cases too(there i don't have a choice to navigate by another
> way) .
>
> As i am recoding/Playing my application, Most of the cases i am getting
> this error!.In some cases i have only one option to record/playback the
> test cases!
> Is there any way to sort out this limitation?
>
> Again when i used the positional based recording to record,i unable to
> play back it?
>
>
> Thanks & Regards
> Gopal
>
Re: Problem with AGR [message #479471 is a reply to message #479224] Tue, 11 August 2009 09:32 Go to previous messageGo to next message
Gopal is currently offline GopalFriend
Messages: 11
Registered: July 2009
Junior Member
Hi Paul,

I am interested in contributing a patch to resolve this limitation
of AGR. Can u please give me idea how can i start! i read ur link but not
getting.

Regards
Gopal
Re: Problem with AGR [message #479487 is a reply to message #479471] Tue, 11 August 2009 10:23 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Gopal,
I would suggest starting with the stack trace in your original post:

java.lang.reflect.InvocationTargetException
null
org.eclipse.core.runtime.CoreException: Line 3: Cannot locate menu item:
{{Other...}}-{{1.0}}
at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCor eException(AutoGUIUtil.java:616)
at
org.eclipse.tptp.test.auto.gui.internal.AutoGUIUtil.throwCor eException(AutoGUIUtil.java:608)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.locatePopupMenuItem(MacroObjectLocator.java:438)
at
org.eclipse.tptp.test.auto.gui.internal.macro.MacroObjectLoc ator.locateCommandTarget(MacroObjectLocator.java:95)
at
org.eclipse.tptp.test.auto.gui.internal.commands.BooleanSele ctionCommand.playback(BooleanSelectionCommand.java:258)
at
org.eclipse.tptp.test.auto.gui.internal.commands.MacroComman dShell$4.run(MacroCommandShell.java:1215)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Paul
"Gopal " <gopal.pagrut@gemalto.com> wrote in message
news:96b04cf8b82cc56011bbdbd32e809433$1@www.eclipse.org...
> Hi Paul,
>
> I am interested in contributing a patch to resolve this limitation
> of AGR. Can u please give me idea how can i start! i read ur link but not
> getting.
>
> Regards
> Gopal
>
Previous Topic:Test with JUnit4 in an EMF project
Next Topic:unknown classes and methods when profiling with Java 6, Eclipse 3.5, TPTP 4.6
Goto Forum:
  


Current Time: Fri Apr 19 22:44:35 GMT 2024

Powered by FUDForum. Page generated in 0.03419 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top