The Artima Developer Community
Sponsored Link

SuiteRunner Forum
running without -g

2 replies on 1 page. Most recent reply: Feb 12, 2003 7:22 PM by Bill Venners

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
mwing

Posts: 1
Nickname: mwing
Registered: Jan, 2003

running without -g Posted: Jan 28, 2003 1:58 AM
Reply to this message Reply
Advertisement
I've created a few simple tests and have successfully run them with the graphical interface. The problem arises when I try to run the tests in a non-graphical interface like bash. If the X-server is not running the Runner fails with an exception that it can't connect to the X11 server?

Could the Runner just skip the whole graphical stuff when initialized without -g?

-mwing

-- CLIP --

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:126)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.ja va:62)
at java.awt.Window.init(Window.java:208)
at java.awt.Window.<init>(Window.java:252)
at java.awt.Frame.<init>(Frame.java:398)
at javax.swing.JFrame.<init>(JFrame.java:198)
at org.suiterunner.RunnerJFrame.<init>(RunnerJFrame.java:143)
at org.suiterunner.RunnerJFrame.<clinit>(RunnerJFrame.java:129)
at org.suiterunner.GraphicReporterFactory.createReporters(GraphicReporterFactory.j ava:88)
at org.suiterunner.GraphicReporterFactory.getRunReporter(GraphicReporterFactory.ja va:71)
at org.suiterunner.Runner.mergeReportersPrefs(Runner.java:420)
at org.suiterunner.Runner.setRecipe(Runner.java:362)
at org.suiterunner.Runner.openPrefsFile(Runner.java:822)
at org.suiterunner.Runner.main(Runner.java:533)


Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: running without -g Posted: Jan 28, 2003 6:28 AM
Reply to this message Reply
> I've created a few simple tests and have successfully run
> them with the graphical interface. The problem arises when
> I try to run the tests in a non-graphical interface like
> bash. If the X-server is not running the Runner fails with
> an exception that it can't connect to the X11 server?
>
> Could the Runner just skip the whole graphical stuff when
> initialized without -g?
>
Interesting feedback. We assumed the "default" should be to run the graphical reporter. We figured that graphically would be the main way people want to run. I suspect it is.

To exclude graphical reporter, you need to explicitly request a different reporter, such as the standard output reporter:

<pre>
java -jar suiterunner-1.0beta2.jar -p "example" -o -s com.artima.examples.account.ex6test.AccountSuite
</pre>

Does that solve your problem?

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: running without -g Posted: Feb 12, 2003 7:22 PM
Reply to this message Reply
Despite the theoretical accuracy of my previous reply, in practice there was a bug in 1.0beta2 that caused an event handler thread to be fired up even if the user didn't request a GUI. That may have also been causing you problems. This problem is fixed int he 1.0beta3 release:

This bug is fixed in 1.0beta3:

http://www.artima.com/suiterunner/download.jsp

Flat View: This topic has 2 replies on 1 page
Topic: What Do You Think About setupFixture and cleanupFixture? Previous Topic   Next Topic Topic: Feature request

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use