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 42556

Summary: Waiting for opening projects.
Product: obsolete Reporter: ehucka <ehucka>
Component: xtestAssignee: issues@obsolete <issues>
Status: VERIFIED INVALID    
Severity: blocker CC: ehucka, jbecicka, mmatula
Priority: P1    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description ehucka 2004-04-28 12:18:26 UTC
There should be a way to wait for "project opened"
events.
Tests don't know when a test project is opened and
e.g. classpath updated.
Comment 1 Jan Becicka 2004-04-30 10:51:13 UTC
I don't know what is wrong, but we are unable to get our tests
working. I tried to fix them with Eman. He told me, that
infrastructure don't wait with test execution till project is opened.
This is definitely P1 if it is true.

(In my opinion project specified by "xtest.ide.open.project" is not
opened at all, but I'm not xtest guru.)

Please evaluate.
Comment 2 Jiri Skrivanek 2004-05-03 07:57:34 UTC
Project is opened by this call:

OpenProjectList.getDefault().open(project);

I don't know whether it is somehow synchronized or not. If not, I will
try to found some API to wait until the project is open.
If you have other problems with XTest please let me know the details,
or file another issue.
Comment 3 Jiri Skrivanek 2004-05-03 17:27:23 UTC
OpenProjectList.getDefault().open(project); is synchronized. But I
don't know what else is happenning at the background. If there is a
fixed sequence of such tasks and API to wait for end of those tasks,
we can add it to XTest. Otherwise test developer can wait for a
specific condition in his test case.
Comment 4 ehucka 2006-03-22 09:30:47 UTC
verified
Comment 5 ehucka 2006-07-24 13:47:47 UTC
v