Community
Participate
Working Groups
Created attachment 235317 [details] Code, Screenshot and Exception in one doc Hi all, I'm trying to test an application that has weird widget. It is ImageHyperlink that when clicked opens an Menu. The screenshot is in attachment. The code snippet where this widget is created: // add condition icon final ImageHyperlink addConditionLink = this.conditionWrapperComposite.addHyperLinkImage(CoreImageRegistry .getImage(CoreImageRegistry.IMAGE_ADD), layoutData, rulesEditControls); addConditionLink.setData("name", "AddConditionLink"); addConditionLink.setToolTipText(PromotionsMessages.PromoRulesDefinition_Tooltip_AddCondition); this.addConditionMenu = new Menu(this.conditionWrapperComposite.getSwtComposite()); addConditionLink.setMenu(this.addConditionMenu); addConditionLink.addMouseListener(new MouseAdapter() { @Override public void mouseDown(final MouseEvent mouseEvent) { addConditionMenu.setVisible(true); } }); When Jubula is in observation mode, the widget is ignored (no green highlighting) and as soon as I click on the widget, the exception is thrown in the AUT Agent. Please check in the attachment. As you can see I already tried to "name" the widget but unfortunately it didn't helped. Could you please provide a solution/work around in this situation as application I'm testing has quite a few of those widgets. Thank you in advance, Michael
Thanks for the description. Could you clarify a couple of points? 1. You said in the observation mode, but you mentioned a green border. Were you observing or performing object mapping? 2. What toolkit are you testing? (Swing, SWT) 3. Is the current behaviour that a) the widget can be correctly addressed during an automated test, but the error occurs or b) the widget cannot be addressed during a test *and* the error occurs when clicking the widget in the observation / object mapping mode? Thanks for the information.
Hello Alexandra, 1. I'm sorry, I definitely was talking about the "Object Mapping Mode". 2. I'm testing RCP toolkit. 3. The answer is b): the widget cannot be addressed during a test *and* the error occurs when clicking the widget in the observation / object mapping mode? Thanks, Michael
@Team: Verify if the component is actually supported. The NPE should not be reported in either case.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Thanks Genie! Unfortunately, this issues hasn't been prioritised highly enough to make it into a sprint. My apologies for this. I'm assuming it's no longer relevant and closing as wontfix. If it is still relevant, please reopen.
Closed due to comment 5