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.
We are using JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK); for performance testing. But now our tests fail when we change model mask to Robot. Example: ------------- JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK); JemmyProperties.setCurrentTimeout("EventDispatcher.RobotAutoDelay", 1); SetupWizardOperator.invoke(); ------------- This code fails with timeout , after showing Tools menu test stops and Robot never push Tools | Setup Wizard menu item ! If you remove first and second line (setCurrentDispatchingModel and setCurrentTimeout) this test will work without any problems! We are runnig our tests on JDK 1.5.0_02 (fcs) on Linux, WinXP, Win2k, Sol9, Sol10
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.