Letractively / aost

Automatically exported from code.google.com/p/aost
Other
1 stars 0 forks source link

Tellurium can not launch Firefox version 3.6.X #419

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start the tellurium server with default profile available
2. run maven test

With Firefox 3.5.X version 
I can see the log will print to prepare profile then launch firefox and
then the test will pass. However, with Firefox 3.6.2, the firefox is not
launched at all and the stack trace is copied at the end.

Version I used is: Tellurium 0.6.0

console log for Tellurium server with stack trace is listed below:

C:m2repository\org\seleniumhq\selenium\server\selenium-server\1.0.1-te>java
-jar selenium-server-1.0.1-te.jar -port  4444

10:32:10.736 INFO - Java: Sun Microsystems Inc. 14.3-b01
10:32:10.736 INFO - OS: Windows XP 5.1 x86
10:32:10.736 INFO - v1.0.1 [2697], with Core v@VERSION@ [@REVISION@]
10:32:11.002 INFO - Version Jetty/5.1.x
10:32:11.002 INFO - Started
HttpContext[/selenium-server/driver,/selenium-server/driver]
10:32:11.002 INFO - Started HttpContext[/selenium-server,/selenium-server]
10:32:11.002 INFO - Started HttpContext[/,/]
10:32:11.033 INFO - Started SocketListener on 0.0.0.0:4444
10:32:11.033 INFO - Started org.mortbay.jetty.Server@665753
10:32:46.188 INFO - Checking Resource aliases
10:32:46.188 INFO - Command request: getNewBrowserSession[*firefox, {}, ]
on session null
10:32:46.188 INFO - creating new remote session
10:32:46.344 INFO - Allocated session 5f14ebbe21324d66a6e80a62d0a0b8ad for
{}, launching...
10:32:46.344 ERROR - Failed to start new browser session, shutdown browser
and clear all session data
java.lang.RuntimeException: java.net.MalformedURLException: no protocol: {}
        at
org.openqa.selenium.server.browserlaunchers.LauncherUtils.stripStartURL(Launcher
Utils.java:166)
        at
org.openqa.selenium.server.browserlaunchers.LauncherUtils.getDefaultRemoteSessio
nUrl(LauncherUtils.java:198)
        at
org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSe
ssion(FirefoxChromeLauncher.j
ava:350)
        at
org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(
FirefoxLauncher.java:98)
        at
org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserS
essionFactory.java:357)
        at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSes
sionFactory.java:122)
        at
org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSes
sionFactory.java:84)
        at
org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(Se
leniumDriverResourceHandler.j
ava:712)
        at
org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDrive
rResourceHandler.java:393)
        at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(Se
leniumDriverResourceHandler.j
ava:364)
        at
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverRe
sourceHandler.java:125)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
        at org.mortbay.http.HttpServer.service(HttpServer.java:909)
        at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
        at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
        at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
        at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: java.net.MalformedURLException: no protocol: {}
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at
org.openqa.selenium.server.browserlaunchers.LauncherUtils.stripStartURL(Launcher
Utils.java:159)
        ... 19 more
10:32:46.344 INFO - Got result: Failed to start new browser session: Error
while launching browser on session null

Original issue reported on code.google.com by huijun....@gmail.com on 6 Apr 2010 at 3:50

GoogleCodeExporter commented 8 years ago
My colleague also tried the latest version of selenium-server is 1.0.1-te2-RC1. 
 Not
working either

Original comment by huijun....@gmail.com on 6 Apr 2010 at 3:52

GoogleCodeExporter commented 8 years ago
The custom selenium server in 0.6.0 does not support 3.6.2. You can simply 
unpack the
selenium-server.jar by running

jar xvf selenium-server.jar

find the install.rdf, update the version to 3.6 and then repack it. 

Here are more details.

 http://groups.google.com/group/tellurium-users/browse_thread/thread/e69b85e77fc8b81d/a846f332c12d3241?lnk=gst&q=3.6#a846f332c12d3241

You are welcome to post your questions to tellurium user groups so that we can 
get
back to you soon.

http://groups.google.com/group/tellurium-users

Thanks.

Original comment by John.Jian.Fang@gmail.com on 6 Apr 2010 at 6:39

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/aost/wiki/UserGuide070AppendixB#How_to_upgrade_Firefox_
version_in_Selenium_server

Original comment by John.Jian.Fang@gmail.com on 6 Apr 2010 at 6:51

GoogleCodeExporter commented 8 years ago

Original comment by John.Jian.Fang@gmail.com on 6 Apr 2010 at 6:51

GoogleCodeExporter commented 8 years ago
Added support for Friefox 3.6.

Original comment by haroonzone@gmail.com on 8 Apr 2010 at 8:13

GoogleCodeExporter commented 8 years ago
Fixed on 1.0.1-te3-SNAPSHOT.

http://maven.kungfuters.org/content/repositories/snapshots/org/seleniumhq/seleni
um/server/selenium-server/1.0.1-te3-SNAPSHOT/

Original comment by John.Jian.Fang@gmail.com on 9 Apr 2010 at 1:21