This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Robot model mask doesn't work | ||
---|---|---|---|
Product: | qa | Reporter: | Marian Mirilovic <mmirilovic> |
Component: | Code | Assignee: | _ mriem <mriem> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | issues, jskrivanek, lmartinek, mriem |
Priority: | P1 | Keywords: | T9Y |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Marian Mirilovic
2005-03-09 21:49:35 UTC
I have similar problem. I need to push editor popup menu when I have opened Web Service. I use this code: JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK); JemmyProperties.setCurrentTimeout("EventDispatcher.RobotAutoDelay", 1); EditorOperator eo = new EditorOperator("NewWebService"); eo.select(11); ActionNoBlock anb = new ActionNoBlock(null, "Web service|Add operation..."); anb.perform(eo); It doesn't work. When I comment first and second line, it works. I've found out that it doesn't work on JDK1.4.2_07 (fcs) ;( Waw it is unbelievable, it works fine in NB4.0 (FCS) on JDK1.5.0_02 as well as JDK1.4.2_07 ! So it seems we have problem in IDE not in Jemmy, I am sorry for that Shura. Now I become curiuos , how do we solve it. I'll try to find a date of change that caused this problem. Any news on this one? I am quiet bussy now, I'll investigate it . Shura, have you found anything ? I played with this a little bit and found out the following: 1) if you use JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK); jemmy uses DefaultJMenuDriver and it fails. 2) if you use JemmyProperties.setCurrentDispatchingModel(JemmyProperties.getCurrentDispatchingModel()|JemmyProperties.ROBOT_MODEL_MASK); jemmy uses QueueJMenuDriver and it passes. These drivers are really not simple :-). Shura probably can tell the difference and reason why it is failing. Shura, could you look at it ASAP ? After 3 weeks we have no progress on this issue and our performance tests are disabled, this isn't good state a week before HR. Is this issue still valid? If so please give me a way to reproduce the problem by some test case ;). Closing this issue because of timeout. If it needs to be reopened do so, but please provide a test-case that allows me to reproduce the problem. Couldn't reproduce it on the JUnit tests for Jemmy. It appered again. Finally I discovered root of problems. When there was an invisible menu item in popup, next items were ignored. I fixed it in DefaultJMenuDriver both in trunk and relese55 branch. Checking in testsuite/src/org/netbeans/jemmy/operators/JPopupMenuOperatorTest.java; /cvs/jemmy/testsuite/src/org/netbeans/jemmy/operators/JPopupMenuOperatorTest.java,v <-- JPopupMenuOperatorTest.java new revision: 1.6; previous revision: 1.5 done Checking in src/org/netbeans/jemmy/drivers/menus/DefaultJMenuDriver.java; /cvs/jemmy/src/org/netbeans/jemmy/drivers/menus/DefaultJMenuDriver.java,v <-- DefaultJMenuDriver.java new revision: 1.11; previous revision: 1.10 Checking in DefaultJMenuDriver.java; /cvs/jemmy/src/org/netbeans/jemmy/drivers/menus/DefaultJMenuDriver.java,v <-- DefaultJMenuDriver.java new revision: 1.9.44.1.2.1; previous revision: 1.9.44.1 Verified by JPopupMenuOperatorTest. |