GEF Inspector/steps not working [message #912006] |
Wed, 12 September 2012 19:16 |
Alejo Abdala Messages: 22 Registered: September 2012 Location: Argentina |
Junior Member |
|
|
Hi, I'm taking some first steps into Jubula in order to determine whether it is suitable for testing my organization's application, which is a GEF-centric RCP application.
I am currently being unable to use the GEF Inspector. I've read the documentation, and even placed a little accessibility plugin to see if that could help, but with no success whatsoever.
Having the AUT running, I start the GEF Inspector, wait (or not, i've tried both) for the little blue inspector icon to appear on the bottom of the window and then change focus (either with alt-tab or clicking on the window) to the AUT. I navigate over the Figure Canvas (which i *am able* to capture through object mapping) and I don't see any blue squares. If I click on any component, I don't get the textpath on the Inspector view.
Then, when I try to run a test case with a GEF interaction (trying to guess the textpaths) I get the following exception (@.jubula/rc_swt.log).
... Caused by: java.lang.[b]NullPointerException[/b]: null
at [b]org.eclipse.jubula.rc.rcp.gef.implclasses.FigureCanvasImplClass.getViewerControl(FigureCanvasImplClass.java:88)[/b] ~[org.eclipse.jubula.rc.rcp_1.2.1.201206131127.jar:na]
(Full stack trace below)
Any thoughts? This product behaves really well and suits our needs in almost every aspect, if I can get the GEF part to work smoothly then we would be able to adopt it as our testing automation tool, so, any help will be really appreciated
AUT: Mule Studio (you may try to download it from mulesoft.org, i'd post a link but the forum tells me I'm still too newbie to do so )
Jubula version: Jubula 1.2.1.201206290759
GEF framework version: org.eclipse.gef_3.6.1.v20100712-1224
Environment: I tried both in a WinXP VM over VMware Fusion 5 and in MacOSX Mountain Lion
Cheers!
Alejo
(Full stack trace for the exception when running tests with GEF)
2012-09-12 15:35:38.098 [Connection.ReaderThread:Socket[addr=/172.16.130.128,port=2166,localport=2200]] ERROR o.e.j.r.c.c.AbstractCapTestCommand - InvocationTargetException:
java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_34]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_34]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_34]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_34]
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) ~[org.apache.commons.beanutils.jar:na]
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:162) ~[org.apache.commons.beanutils.jar:na]
at org.eclipse.jubula.rc.common.commands.MethodInvoker.invoke(MethodInvoker.java:64) ~[org.eclipse.jubula.rc.common.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(AbstractCapTestCommand.java:231) ~[org.eclipse.jubula.rc.common.jar:na]
at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(Communicator.java:845) [org.eclipse.jubula.communication.jar:na]
at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(Connection.java:402) [org.eclipse.jubula.communication.jar:na]
at org.eclipse.jubula.communication.connection.Connection.access$3(Connection.java:391) [org.eclipse.jubula.communication.jar:na]
at org.eclipse.jubula.communication.connection.Connection$ReaderThread.run(Connection.java:454) [org.eclipse.jubula.communication.jar:na]
Caused by: java.lang.NullPointerException: null
at org.eclipse.jubula.rc.rcp.gef.implclasses.FigureCanvasImplClass.getViewerControl(FigureCanvasImplClass.java:88) ~[org.eclipse.jubula.rc.rcp_1.2.1.201206131127.jar:na]
at org.eclipse.jubula.rc.rcp.gef.implclasses.FigureCanvasImplClass.gdClickInFigure(FigureCanvasImplClass.java:392) ~[org.eclipse.jubula.rc.rcp_1.2.1.201206131127.jar:na]
at org.eclipse.jubula.rc.rcp.gef.implclasses.FigureCanvasImplClass.gdDragFigure(FigureCanvasImplClass.java:424) ~[org.eclipse.jubula.rc.rcp_1.2.1.201206131127.jar:na]
... 12 common frames omitted
2012-09-12 15:35:38.098 [Connection.ReaderThread:Socket[addr=/172.16.130.128,port=2166,localport=2200]] ERROR o.e.j.r.c.c.AbstractCapTestCommand - TargetException:
java.lang.NullPointerException: null
at org.eclipse.jubula.rc.rcp.gef.implclasses.FigureCanvasImplClass.getViewerControl(FigureCanvasImplClass.java:88) ~[org.eclipse.jubula.rc.rcp_1.2.1.201206131127.jar:na]
at org.eclipse.jubula.rc.rcp.gef.implclasses.FigureCanvasImplClass.gdClickInFigure(FigureCanvasImplClass.java:392) ~[org.eclipse.jubula.rc.rcp_1.2.1.201206131127.jar:na]
at org.eclipse.jubula.rc.rcp.gef.implclasses.FigureCanvasImplClass.gdDragFigure(FigureCanvasImplClass.java:424) ~[org.eclipse.jubula.rc.rcp_1.2.1.201206131127.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_34]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_34]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_34]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_34]
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) ~[org.apache.commons.beanutils.jar:na]
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:162) ~[org.apache.commons.beanutils.jar:na]
at org.eclipse.jubula.rc.common.commands.MethodInvoker.invoke(MethodInvoker.java:64) ~[org.eclipse.jubula.rc.common.jar:na]
at org.eclipse.jubula.rc.common.commands.AbstractCapTestCommand.execute(AbstractCapTestCommand.java:231) ~[org.eclipse.jubula.rc.common.jar:na]
at org.eclipse.jubula.communication.Communicator$ConnectionListener.received(Communicator.java:845) [org.eclipse.jubula.communication.jar:na]
at org.eclipse.jubula.communication.connection.Connection.fireMessageReceived(Connection.java:402) [org.eclipse.jubula.communication.jar:na]
at org.eclipse.jubula.communication.connection.Connection.access$3(Connection.java:391) [org.eclipse.jubula.communication.jar:na]
at org.eclipse.jubula.communication.connection.Connection$ReaderThread.run(Connection.java:454) [org.eclipse.jubula.communication.jar:na]
|
|
|
|
|
|
Re: GEF Inspector/steps not working [message #916827 is a reply to message #916553] |
Wed, 19 September 2012 14:17 |
Alejo Abdala Messages: 22 Registered: September 2012 Location: Argentina |
Junior Member |
|
|
Hi Alex, thanks for the feedback.
As of the ways of using the inspector, i've tried several ways:
* Clicking the canvas and then the figure.
* Clicking furiously on the figure.
* Alt Tab, then figure.
* Click on the shell, then figure.
* Click on the canvas' tab, then figure.
(All of this trying before and after the small inspector icon appears on Jubula, how should this be done?)
I think I've found a workaround for this, maybe it could help you track down the problem (or rare case, maybe the application layout is not that common)
The View that contains the canvas has as well 3 tabs. The Canvas is one of them and is the one that is open by default. The inspector will work if I, before doing anything in Jubula, switch between tabs (go from the canvas to xml, and back to the canvas). Maybe that way Jubula can get a grasp of the viewer control. (Knowing this, i checked that the accessibility plugin was fine, great feature to have!)
It would be great if this could be fixed, since most of the tests we'd need are based on the canvas, and having to do that tab switch in every test would be annoying.
If you are willing to tackle this issue and you need any help from our side, just ping me at: alejo dot abdala at mulesoft dot com
Thanks!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04333 seconds