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: | Options tree test automation broken | ||
---|---|---|---|
Product: | platform | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | Nodes | Assignee: | Jesse Glick <jglick> |
Status: | VERIFIED DUPLICATE | ||
Severity: | blocker | CC: | jglick |
Priority: | P3 | Keywords: | T9Y |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 36005 | ||
Bug Blocks: | |||
Attachments: | Screen shot |
Description
Jiri Skrivanek
2003-09-09 14:39:31 UTC
Created attachment 11555 [details]
Screen shot
Couldn't that be the same thing as failing tests in Looks Jesse? As you say, it is not reproducible manually, so somehow the test does not match reality. Please try to figure out what you want the Options window to do differently and request that (or change the test if it is easy). Changed threading a bit to be more in the event queue, and also to expand the nodes in the window after opening it, but I have no idea what your test is actually checking for. > As you say, it is not reproducible manually, so somehow the test > does not match reality. Test is just faster than regular user. It doesn't do anything than a user. > Please try to figure out what you want the Options > window to do differently and request that (or change the test if it > is easy). Changed threading a bit to be more in the event queue, and > also to expand the nodes in the window after opening it, but I have > no idea what your test is actually checking for. Test checks some properties in Options window. But it fails in its early stage because of described misbehaviour. I will try to explain it once more. - open Options by main menu (Tools|Options) - windows is opened and Options tree is being generated - Options tree is made visible - test finds Options tree and particular node within the tree - test selects the node - property sheet for the node is shown in Options window - BUT now the node is deselected, property sheet disappears, only description area shows hint for previously selected node - test fails because it cannot find property sheet I haven't looked at sources, so I don't know if it is a threading issue or some wrong sequence in code. But I think that correct behaviour should be - deselect nodes (or do whatever initialization of the tree) - make tree visible (or enabled) Then test will wait until tree is visible/enabled, and it will select a node after that. Do you think it is possible to fix IDE such a way? Well for the time being I suggest you just make the test wait a moment. If a node selected during the initial opening is deselected later during expansion, that sounds like a bug in explorer views or property sheet, not sure. I can try to check. I can't reproduce any problem manually; it is too fast to see. I updated the test to work around the problem. When it is fixed I will remove it. OK, I see your patch in IDEValidation.java. *** This issue has been marked as a duplicate of 36005 *** Verified duplicated. |