junit command does not show UI [message #654707] |
Wed, 16 February 2011 13:44  |
Eclipse User |
|
|
|
I have a Swing application that is running on top of OSGi. So far I have successfully been able to build p2 repositories, create products, and run JUnit tests successfully with Buckminster. When I try to run my JFCUnit tests the UI does not show up on the screen and so tests fail while looking for focus and at other points.
I am using a launch configuration that successfully works under Eclipse.
Any ideas how to get the junit command to allow UI components to show on the screen? Even if someone can just point me to why the UI will not show on the screen that would at least give me a direction to look in.
Thanks,
-Phil
|
|
|
|
|
Re: junit command does not show UI [message #654999 is a reply to message #654943] |
Thu, 17 February 2011 17:39   |
Eclipse User |
|
|
|
Am 17.02.2011 18:15, schrieb Philip Borlin:
Hi Phil,
> There are no error messages at the point where the UI should show on the
> screen. In fact I have put log statements that prove that the code is
> being hit that creates my JFrame - just nothing shows up on the screen.
>
Then this is not an issue with buckminster since it executes your test
correctly. That doesn't help you of course, so let's see what can be done...
Windows is a somewhat unusual choice for a CI machine. I've never tried
that before so here's some guessing involved:
Are you executing Hudson as a windows service?
On Windows, services can AFAIK not have a graphical user interface, so
you would not be able to start a jframe at all.
If it is a service and there really is no way to active a UI for a
service, then you could consider executing the UI tests on a linux slave.
If it's not a service:
Is hudson started by your actual user, or some other (system) user? The
frame would only open on your screen if your actual user owns the hudson
process, but you probably know that already.
Best regards,
Johannes
|
|
|
Re: junit command does not show UI [message #655289 is a reply to message #654999] |
Fri, 18 February 2011 19:22  |
Eclipse User |
|
|
|
Johannes Utzig wrote on Thu, 17 February 2011 17:39 | Am 17.02.2011 18:15, schrieb Philip Borlin:
Are you executing Hudson as a windows service?
On Windows, services can AFAIK not have a graphical user interface, so
you would not be able to start a jframe at all.
|
This is exactly what it was. Under the tomcat service on the logon tab there is a check box: "Allow Service to Interact With Desktop". When I clicked that and restarted tomcat, the ui showed up correctly. Thanks for the help!
Phil
|
|
|
Powered by
FUDForum. Page generated in 0.03151 seconds