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.

Bug 27613

Summary: ChooseTemplateStepOperator.selectTemplate does not always find the node
Product: qa Reporter: Jan Becicka <jbecicka>
Component: JellytoolsAssignee: issues@qa <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: Looking for node "Java Beans|BeanInfo w/o Icon"
jemmy.log
org.netbeans.jemmy.TimeoutExpiredException: Wait "Has right selection" state to be reached

Description Jan Becicka 2002-09-26 14:26:09 UTC
Try BeansTemplates test.
Beans module: beans/test/qa-
func/gui/BeansTemplates.java

This test usually hangs waiting for "Has right 
selection" state to be reached.
Comment 1 Jiri Skrivanek 2002-09-27 07:44:55 UTC
It works for me perfectly. If it fails again, we need more info
(environment, jemmy log/screen shot/stack trace, jemmy/jelly version).
Comment 2 Jan Becicka 2002-09-27 08:27:35 UTC
BeansTemplates tests works for you? I've tested it with latest build
and it fails again. (W2k, JDK 1.4.0).






Comment 3 Jan Becicka 2002-09-27 08:31:28 UTC
Created attachment 7536 [details]
Looking for node "Java Beans|BeanInfo w/o Icon"
Comment 4 Jan Becicka 2002-09-27 08:33:12 UTC
Created attachment 7537 [details]
jemmy.log
Comment 5 Jan Becicka 2002-09-27 08:34:43 UTC
Created attachment 7538 [details]
org.netbeans.jemmy.TimeoutExpiredException: Wait "Has right selection" state to be reached
Comment 6 Jiri Skrivanek 2002-09-27 09:36:05 UTC
OK, it happens only on VERY fast machines. The problem is:

- jemmy finds JTree and selects our node
- IDE sets selection to the last selected node
- jemmy waits for selection of our node => it fail

I try to find a way how to synchronize it in ChooseTemplateStepOperator.
Comment 7 Jiri Skrivanek 2002-09-27 13:08:55 UTC
Fixed in ChooseTemplateStepOperator and TargetLocationStepOperator -
added waiting it select*() method until IDE finishes selecting of
previously selected node
Comment 8 Jan Becicka 2002-10-11 17:11:42 UTC
Verified