Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » junit command does not show UI
junit command does not show UI [message #654707] Wed, 16 February 2011 18:44 Go to next message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
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 #654798 is a reply to message #654707] Thu, 17 February 2011 08:06 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
Hi Phil,

the most likely problem with UI tests in headless buckminster would be
that you run in a headless environment. E.g. your build server might be
a linux with no X server running/accessible and so there is no way to
start a UI. But that's just random guessing without more details on your
environment and error messages.
What I can tell you though is that it's definetly possible to run UI
tests with headless buckminster. We are running Window Tester Pro tests
in hudson on a linux machine with no X installed.

Best regards,
Johannes
Re: junit command does not show UI [message #654943 is a reply to message #654798] Thu, 17 February 2011 17:15 Go to previous messageGo to next message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
Johannes Utzig wrote on Thu, 17 February 2011 03:06

But that's just random guessing without more details on your environment and error messages.



Ok here is my environment: Hudson on a Windows XP 64-bit edition. I can open Eclipse on my build server, import the launch configuration, and the tests pop up the UI and everything behaves properly.

I am using the command:
junit -l /mybundle/my.launch -o result.xml --stderr err.txt --stdout out.txt

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.

Thanks again for the help,
Phil
Re: junit command does not show UI [message #654999 is a reply to message #654943] Thu, 17 February 2011 22:39 Go to previous messageGo to next message
Johannes Utzig is currently offline Johannes UtzigFriend
Messages: 329
Registered: July 2009
Senior Member
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] Sat, 19 February 2011 00:22 Go to previous message
Philip Borlin is currently offline Philip BorlinFriend
Messages: 30
Registered: July 2009
Member
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
Previous Topic:"create.legacy.site" does not exist in the project "org.eclipse.buckminster.pde.misc&
Next Topic:ERROR [0003] : IU * has no artifacts
Goto Forum:
  


Current Time: Wed Apr 24 18:58:46 GMT 2024

Powered by FUDForum. Page generated in 0.03201 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top