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.
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.
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.
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.
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.
verified
v