FAQ
Hello,
I have my selenium test suite written in Java+TestNG which runs fine on my
mac+firefox environment.
I now want to run my selenium tests on a Ubuntu server that hosts the
webapp.

To do this I setup my ubuntu server with Xvfb (used the blog,
http://centripetal.ca/blog/2011/02/07/getting-started-with-selenium-and-jenkins/)
and ran the tests using the below command

java -jar selenium-server-standalone-2.20.0.jar -trustALLSSLCertificates
-htmlSuite "*firefox" "https://myserver.com/login.jsp"
"/pathToMyJavaTests/SimpleSmokeTest.java"
"/pathTomyOutputFile/test-output/newtestReport.html"

And get the below...

Jun 19, 2012 9:29:18 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
0 [main] INFO org.openqa.selenium.server.SeleniumServer - Java: Sun
Microsystems Inc. 19.0-b09
0 [main] INFO org.openqa.selenium.server.SeleniumServer - OS: Linux
2.6.32-37-server amd64
24 [main] INFO org.openqa.selenium.server.SeleniumServer - v2.20.0, with
Core v2.20.0. Built from revision 16008
142 [main] INFO org.openqa.selenium.server.SeleniumServer - RemoteWebDriver
instances should connect to: http://127.0.0.1:4444/wd/hub
143 [main] INFO org.openqa.jetty.http.HttpServer - Version Jetty/5.1.x
143 [main] INFO org.openqa.jetty.util.Container - Started
HttpContext[/selenium-server/driver,/selenium-server/driver]
144 [main] INFO org.openqa.jetty.util.Container - Started
HttpContext[/selenium-server,/selenium-server]
144 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/,/]
157 [main] INFO org.openqa.jetty.util.Container - Started
org.openqa.jetty.jetty.servlet.ServletHandler@f01a1e
157 [main] INFO org.openqa.jetty.util.Container - Started
HttpContext[/wd,/wd]
169 [main] INFO org.openqa.jetty.http.SocketListener - Started
SocketListener on 0.0.0.0:4444
169 [main] INFO org.openqa.jetty.util.Container - Started
org.openqa.jetty.jetty.Server@4d3f3045
21:29:19.030 WARN - Caution: '/usr/bin/firefox': file is a script file, not
a real executable. The browser environment is no longer fully under RC
control
21:29:19.035 WARN - It looks like your baseUrl
(https://myserver.com/login.jsp) is pointing to a file, not a directory (it
doesn't end with a /). We're going to have to strip off the last part of
the pathname.
21:29:19.134 INFO - Preparing Firefox profile...
21:29:21.387 INFO - Launching Firefox...
21:29:22.003 INFO - Checking Resource aliases
6003 [SocketListener0-9] INFO org.openqa.jetty.util.Credential - Checking
Resource aliases
6249 [SocketListener0-9] INFO org.openqa.jetty.http.SocketListener -
Started SocketListener on 0.0.0.0:34157


The execution is stuck at this point, nothing happens further than this.

Please help.

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ATrdZbeIZE0J.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.

Search Discussions

  • Kiruthika at Jun 20, 2012 at 4:59 pm
    Found the solution.
    Create a firefox profile file for x11 to talk with.
    On Tuesday, June 19, 2012 6:09:51 PM UTC-4, Kiruthika wrote:

    Hello,
    I have my selenium test suite written in Java+TestNG which runs fine on my
    mac+firefox environment.
    I now want to run my selenium tests on a Ubuntu server that hosts the
    webapp.

    To do this I setup my ubuntu server with Xvfb (used the blog,
    http://centripetal.ca/blog/2011/02/07/getting-started-with-selenium-and-jenkins/)
    and ran the tests using the below command

    java -jar selenium-server-standalone-2.20.0.jar -trustALLSSLCertificates
    -htmlSuite "*firefox" "https://myserver.com/login.jsp"
    "/pathToMyJavaTests/SimpleSmokeTest.java"
    "/pathTomyOutputFile/test-output/newtestReport.html"

    And get the below...

    Jun 19, 2012 9:29:18 PM org.openqa.grid.selenium.GridLauncher main
    INFO: Launching a standalone server
    0 [main] INFO org.openqa.selenium.server.SeleniumServer - Java: Sun
    Microsystems Inc. 19.0-b09
    0 [main] INFO org.openqa.selenium.server.SeleniumServer - OS: Linux
    2.6.32-37-server amd64
    24 [main] INFO org.openqa.selenium.server.SeleniumServer - v2.20.0, with
    Core v2.20.0. Built from revision 16008
    142 [main] INFO org.openqa.selenium.server.SeleniumServer -
    RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
    143 [main] INFO org.openqa.jetty.http.HttpServer - Version Jetty/5.1.x
    143 [main] INFO org.openqa.jetty.util.Container - Started
    HttpContext[/selenium-server/driver,/selenium-server/driver]
    144 [main] INFO org.openqa.jetty.util.Container - Started
    HttpContext[/selenium-server,/selenium-server]
    144 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/,/]
    157 [main] INFO org.openqa.jetty.util.Container - Started
    org.openqa.jetty.jetty.servlet.ServletHandler@f01a1e
    157 [main] INFO org.openqa.jetty.util.Container - Started
    HttpContext[/wd,/wd]
    169 [main] INFO org.openqa.jetty.http.SocketListener - Started
    SocketListener on 0.0.0.0:4444
    169 [main] INFO org.openqa.jetty.util.Container - Started
    org.openqa.jetty.jetty.Server@4d3f3045
    21:29:19.030 WARN - Caution: '/usr/bin/firefox': file is a script file,
    not a real executable. The browser environment is no longer fully under RC
    control
    21:29:19.035 WARN - It looks like your baseUrl (
    https://myserver.com/login.jsp) is pointing to a file, not a directory
    (it doesn't end with a /). We're going to have to strip off the last part
    of the pathname.
    21:29:19.134 INFO - Preparing Firefox profile...
    21:29:21.387 INFO - Launching Firefox...
    21:29:22.003 INFO - Checking Resource aliases
    6003 [SocketListener0-9] INFO org.openqa.jetty.util.Credential - Checking
    Resource aliases
    6249 [SocketListener0-9] INFO org.openqa.jetty.http.SocketListener -
    Started SocketListener on 0.0.0.0:34157


    The execution is stuck at this point, nothing happens further than this.

    Please help.

    Thanks in advance.
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/Q2WkI8mpUAYJ.
    To post to this group, send email to selenium-users@googlegroups.com.
    To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en-US.
  • Haroon at Mar 14, 2013 at 9:14 pm
    Hi Kiruthika,

    When you say created a profile file for X11 to talk with, what does that
    mean? Can you please explain?

    I am seeing the same error, although I have a custom profile that seems to
    be picked up by Selenium.


    Thanks for your help.

    Haroon
    On Wednesday, 20 June 2012 17:59:03 UTC+1, Kiruthika wrote:

    Found the solution.
    Create a firefox profile file for x11 to talk with.
    On Tuesday, June 19, 2012 6:09:51 PM UTC-4, Kiruthika wrote:

    Hello,
    I have my selenium test suite written in Java+TestNG which runs fine on
    my mac+firefox environment.
    I now want to run my selenium tests on a Ubuntu server that hosts the
    webapp.

    To do this I setup my ubuntu server with Xvfb (used the blog,
    http://centripetal.ca/blog/2011/02/07/getting-started-with-selenium-and-jenkins/)
    and ran the tests using the below command

    java -jar selenium-server-standalone-2.20.0.jar -trustALLSSLCertificates
    -htmlSuite "*firefox" "https://myserver.com/login.jsp"
    "/pathToMyJavaTests/SimpleSmokeTest.java"
    "/pathTomyOutputFile/test-output/newtestReport.html"

    And get the below...

    Jun 19, 2012 9:29:18 PM org.openqa.grid.selenium.GridLauncher main
    INFO: Launching a standalone server
    0 [main] INFO org.openqa.selenium.server.SeleniumServer - Java: Sun
    Microsystems Inc. 19.0-b09
    0 [main] INFO org.openqa.selenium.server.SeleniumServer - OS: Linux
    2.6.32-37-server amd64
    24 [main] INFO org.openqa.selenium.server.SeleniumServer - v2.20.0, with
    Core v2.20.0. Built from revision 16008
    142 [main] INFO org.openqa.selenium.server.SeleniumServer -
    RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
    143 [main] INFO org.openqa.jetty.http.HttpServer - Version Jetty/5.1.x
    143 [main] INFO org.openqa.jetty.util.Container - Started
    HttpContext[/selenium-server/driver,/selenium-server/driver]
    144 [main] INFO org.openqa.jetty.util.Container - Started
    HttpContext[/selenium-server,/selenium-server]
    144 [main] INFO org.openqa.jetty.util.Container - Started HttpContext[/,/]
    157 [main] INFO org.openqa.jetty.util.Container - Started
    org.openqa.jetty.jetty.servlet.ServletHandler@f01a1e
    157 [main] INFO org.openqa.jetty.util.Container - Started
    HttpContext[/wd,/wd]
    169 [main] INFO org.openqa.jetty.http.SocketListener - Started
    SocketListener on 0.0.0.0:4444
    169 [main] INFO org.openqa.jetty.util.Container - Started
    org.openqa.jetty.jetty.Server@4d3f3045
    21:29:19.030 WARN - Caution: '/usr/bin/firefox': file is a script file,
    not a real executable. The browser environment is no longer fully under RC
    control
    21:29:19.035 WARN - It looks like your baseUrl (
    https://myserver.com/login.jsp) is pointing to a file, not a directory
    (it doesn't end with a /). We're going to have to strip off the last part
    of the pathname.
    21:29:19.134 INFO - Preparing Firefox profile...
    21:29:21.387 INFO - Launching Firefox...
    21:29:22.003 INFO - Checking Resource aliases
    6003 [SocketListener0-9] INFO org.openqa.jetty.util.Credential - Checking
    Resource aliases
    6249 [SocketListener0-9] INFO org.openqa.jetty.http.SocketListener -
    Started SocketListener on 0.0.0.0:34157


    The execution is stuck at this point, nothing happens further than this.

    Please help.

    Thanks in advance.
    --
    You received this message because you are subscribed to the Google Groups "Selenium Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
    To post to this group, send email to selenium-users@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/k13gkNQQ-nUJ.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedJun 19, '12 at 10:33p
activeMar 14, '13 at 9:14p
posts3
users2
websiteseleniumhq.org

2 users in discussion

Kiruthika: 2 posts Haroon: 1 post

People

Translate

site design / logo © 2022 Grokbase