Hi,
I configured selenium-maven-plugin to work with JUnit and selenium tests
and it works fine with Firefox. I wanted to use Xvfb to be able to run
those tests also on a headless server (triggered by Continuum).
Unfortunately I'm unable to test them with Xvfb.
I'm using configuration based on that specified at [1]. Xvfb is started
<QUOTE1>.
Similar Selenium server <QUOTE2>.
Before a test session and firefox are launched <QUOTE3>.
Unfortunately they never end (I can kill test by CTRL-C)
I see them on a process list <QUOTE4>
But I'm unable to connect to:
[EMAIL PROTECTED] target]$ DISPLAY=:2 import -window root simle.png
No protocol specified
import: unable to open X server `:2'.
I don't know what with my X's configuration could be wrong, because
normally I can do:
Xvfb :1 -screen 0 1024x768x24 &
DISPLAY=:1 firefox
DISPLAY=:1 import -window root captuted.png
(I have captured Firefox's window)
Do you have an idea what could be wrong?
I'm using Fedora 8, Xorg 7.3, Xvfb 1.3.0.0 and selenium-maven-plugin
1.0-beta-2.
[1] -
http://mojo.codehaus.org/selenium-maven-plugin/examples/headless-with-xvfb.html
<QOUTE1>
[INFO] [selenium:xvfb {execution: xvfb}]
[INFO] Starting Xvfb...
[INFO] Using display: :2
[INFO] Using Xauthority file: /tmp/Xvfb53579.Xauthority
[INFO] Deleting: /tmp/Xvfb53579.Xauthority
[WARNING] /usr/bin/xauth: creating new authority file
/tmp/Xvfb53579.Xauthority
[INFO] Created dir:
/home/szpak/kody/testco/seltest3/trunk/seltest/target/selenium
Launching Xvfb
[INFO] Redirecting output to:
/home/szpak/kody/testco/seltest3/trunk/seltest/target/selenium/xvfb.log
Waiting for Xvfb...
Xvfb started
</QUOTE1>
<QUOTE2>
[INFO] Starting Selenium server...
Launching Selenium Server
Waiting for Selenium Server...
(...)
Selenium Server started
</QUOTE2>
<QOUTE3>
[org.mortbay.util.Credential] Checking Resource aliases
[org.openqa.selenium.server.SeleniumDriverResourceHandler] Command
request: getNewBrowserSession[*firefox
/usr/lib/firefox-2.0.0.10/firefox-bin, http://www.google.com] on session
null
[org.openqa.selenium.server.SeleniumDriverResourceHandler] Launching
session 330391
[org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher]
Preparing Firefox profile...
[org.openqa.selenium.server.browserlaunchers.FirefoxCustomProfileLauncher]
Launching Firefox...
</QUOTE3>
<QUOTE4>
szpak 19728 4.2 0.3 12364 6432 pts/11 S+ 15:18 0:00
/usr/bin/Xvfb :2
szpak 19779 13.0 1.4 140384 29644 pts/11 Sl+ 15:18 0:00
/usr/lib/firefox-2.0.0.10/firefox-bin -profile
/tmp/customProfileDir497281
http://www.google.com/selenium-server/core/RemoteRunner.html?sessionId=497281&multiWindow=false&baseUrl=http%3A%2F%2Fwww.google.com&debugMode=false
</QUOTE4>
Regards
Marcin
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email