Toolbar button in Properties view not found during test [message #1302431] |
Fri, 18 April 2014 14:41  |
Eclipse User |
|
|
|
My test involves a button in the toolbar of the Properties View that I create and show dynamically. I have mapped it with no problem in Object Mapping mode, and its technical name always shows up as the ID of the action (a subclass of org.eclipse.jface.action.Action) that it launches. But every time I try to activate this button in my test, or wait for it to become visible, I get a Component Not Found error. The screenshot in the test report clearly shows that the button is indeed there.
Does Jubula have any known issues with recognizing toolbar items that use Jface actions, or dynamically-created toolbar items, or toolbar items under any other conditions that might be in play here?
|
|
|
|
|
|
|
Re: Toolbar button in Properties view not found during test [message #1326260 is a reply to message #1324499] |
Thu, 01 May 2014 12:55   |
Eclipse User |
|
|
|
It seems that I am having the exact same problem Niels K was having in this thread:
http://www.eclipse.org/forums/index.php/m/710776/
It does not look like a solution was ever found.
EDIT: From the console output of the job on the test server, it seems to be getting:
AUT:org.eclipse.jubula.rc.common.exception.ComponentNotManagedException: unmanaged component with identifier: 'org.eclipse.jubula.tools.objects.ComponentIdentifier@51e3e961[component type=org.eclipse.swt.widgets.ToolItem,alternative name=<null>,hierarchy=[org.eclipse.swt.widgets.Shell_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.swt.widgets.Composite_1, org.eclipse.ui.views.PropertySheet.toolbar, <my action id>]]'.
AUT: at org.eclipse.jubula.rc.swt.components.SwtAUTHierarchy.findComponent(SwtAUTHierarchy.java:344) ~[org.eclipse.jubula.rc.swt.jar:na]
...
I am not sure why it shows an alternative name of <null>, but of note is the fact that the test suite is using the "Show View/Properties" menu command before selecting the object and trying to click the buttons, which seems to have contributed to Niels K's problem. Curiously, when I use the same command locally before doing the same thing, there is no problem.
[Updated on: Thu, 01 May 2014 13:06] by Moderator
|
|
|
|
Re: Toolbar button in Properties view not found during test [message #1341424 is a reply to message #1326312] |
Thu, 08 May 2014 09:29  |
Eclipse User |
|
|
|
Hello,
the alternative name = null is okay, this is for components which have e.g. text in it like labels. It is then set with the text or an part of the text as description. That the context is not named is also normal, we are not using names in the context.
Since the object mapping seems to have your given name <my action id> in it, either the component is really not named on the remote machine, or something is different in the hierarchy of the component. Please could you verify that your changes with the setData is also on the remote machine?
If this is the case than we could try to change values in the Configuration View in the Object Mapping editor. Maybe it helps to raise the name weight in the Configuration View or lower the Threshold a little bit.
Best regards,
Marvin
|
|
|
Powered by
FUDForum. Page generated in 0.04446 seconds