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 - ChooseTemplateStepOperator.selectTemplate does not always find the node
Summary: ChooseTemplateStepOperator.selectTemplate does not always find the node
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Jellytools (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-26 14:26 UTC by Jan Becicka
Modified: 2002-10-14 08:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Looking for node "Java Beans|BeanInfo w/o Icon" (36.11 KB, image/png)
2002-09-27 08:31 UTC, Jan Becicka
Details
jemmy.log (12.54 KB, text/plain)
2002-09-27 08:33 UTC, Jan Becicka
Details
org.netbeans.jemmy.TimeoutExpiredException: Wait "Has right selection" state to be reached (2.76 KB, text/plain)
2002-09-27 08:34 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
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