3 Replies Last post: Oct 26, 2009 3:47 PM by Mikael Couzic  
eric Beginner 4 posts since
Jul 7, 2009
Currently Being Moderated

Jul 8, 2009 3:09 AM

Problem getting html result under firefox

Hello,

 

i have a little test running fine under IE but there is a problem under Firefox 3, it's not generating the html result file.

 

Here is the command i use :

 

java  -jar ../selenium-server.jar -log selenium.log -debug -htmlSuite "*firefox" "http://my.company.fr/" "./MySuite" "./resultat.html"

 

When i launch this command the browser freezes (and never stop until timeOut) and in the FireBug console i can see this error :

 

Erreur : this.testFrame.getDocument().body is undefined
Fichier Source : http://localhost:4444/selenium-server/core/scripts/selenium-testrunner.js
Ligne : 581

Erreur : [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: file:///usr/lib/xulrunner-1.9.0.11/components/FeedProcessor.js :: FP_onStartRequest :: line 1440"  data: no]
Fichier Source : file:///usr/lib/xulrunner-1.9.0.11/components/FeedProcessor.js
Ligne : 1440

 

After the timeOut i have this exception :

 

HTML suite exception seen:
org.openqa.selenium.server.SeleniumCommandTimedOutException
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:138)
        at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:174)
        at org.openqa.selenium.server.SeleniumServer.runHtmlSuite(SeleniumServer.java:524)
        at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:232)
        at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:188)

 

Any ideas ???

 

Thanks for help

 

Eric

 

PS :

In selenium.log i have this

 

15:08:16.054 INFO [10] org.openqa.selenium.server.SeleniumServer - Writing debug logs to selenium.log
15:08:16.055 INFO [10] org.openqa.selenium.server.SeleniumServer - Java: Sun Microsystems Inc. 1.5.0_14-b03
15:08:16.055 INFO [10] org.openqa.selenium.server.SeleniumServer - OS: Linux 2.6.24-24-generic i386
15:08:16.064 INFO [10] org.openqa.selenium.server.SeleniumServer - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]
15:08:16.064 INFO [10] org.openqa.selenium.server.SeleniumServer - Selenium server running in debug mode.
15:08:16.087 DEBUG [10] org.mortbay.util.Container - add component: SocketListener0@0.0.0.0:4444
15:08:16.106 DEBUG [10] org.mortbay.util.Container - add component: org.mortbay.http.ResourceCache@143c8b3
15:08:16.111 DEBUG [10] org.mortbay.util.Container - add component: org.openqa.selenium.server.ProxyHandler in HttpContext[/,/]
15:08:16.112 DEBUG [10] org.mortbay.util.Container - add component: HttpContext[/,/]
15:08:16.114 DEBUG [10] org.mortbay.http.HttpServer - Added HttpContext[/,/] for host *
15:08:16.114 DEBUG [10] org.mortbay.util.Container - add component: org.mortbay.http.ResourceCache@ae506e
15:08:16.120 DEBUG [10] org.mortbay.http.HttpContext - added SC{BASIC,null,user,CONFIDENTIAL} at /tests/html/basicAuth/*
15:08:16.126 DEBUG [10] org.mortbay.util.Container - add component: org.mortbay.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
15:08:16.130 DEBUG [10] org.mortbay.util.Container - add component: org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
15:08:16.136 DEBUG [10] org.mortbay.util.Container - add component: org.openqa.selenium.server.SessionExtensionJsHandler in HttpContext[/selenium-server,/selenium-server]
15:08:16.137 DEBUG [10] org.mortbay.util.Container - add component: org.openqa.selenium.server.htmlrunner.SingleTestSuiteResourceHandler in HttpContext[/selenium-server,/selenium-server]
15:08:16.139 DEBUG [10] org.mortbay.util.Container - add component:

....

15:08:21.958 DEBUG [13] org.mortbay.http.HttpServer - Try HttpContext[/selenium-server,/selenium-server],0
15:08:21.958 DEBUG [13] org.mortbay.http.HttpContext - Handler org.mortbay.http.handler.SecurityHandler in HttpContext[/selenium-server,/selenium-server]
15:08:21.958 DEBUG [13] org.mortbay.http.HttpContext - Handler org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
15:08:21.959 DEBUG [13] org.mortbay.http.handler.ResourceHandler - PATH=/core/icons/pause.png RESOURCE=/core/icons/pause.png
15:08:21.960 DEBUG [13] org.mortbay.http.handler.ResourceHandler - Looking for /core/icons/pause.png
15:08:21.961 DEBUG [13] org.mortbay.http.HttpContext - Handled by org.openqa.selenium.server.StaticContentHandler in HttpContext[/selenium-server,/selenium-server]
15:08:21.961 DEBUG [13] org.mortbay.http.HttpConnection - RESPONSE:
HTTP/1.1 200 OK
Date: Tue, 07 Jul 2009 13:08:21 GMT
Server: Jetty/5.1.x (Linux/2.6.24-24-generic i386 java/1.5.0_14
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: image/png
Content-Length: 275
Last-Modified: Wed, 07 Jul 2010 13:08:21 GMT
Accept-Ranges: bytes


15:08:24.028 DEBUG [14] org.mortbay.http.HttpConnection - REQUEST from SocketListener0@0.0.0.0:4444:
GET /favicon.ico HTTP/1.1
Host: localhost:4444
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060309 Ubuntu/8.04 (hardy) Firefox/3.0.11
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
keep-alive: 300
Connection: keep-alive


15:08:24.029 DEBUG [14] org.mortbay.http.HttpServer - Try HttpContext[/,/],0
15:08:24.029 DEBUG [14] org.mortbay.http.HttpContext - Handler org.openqa.selenium.server.ProxyHandler in HttpContext[/,/]
15:08:24.030 DEBUG [14] org.mortbay.http.HttpContext - Handled by org.openqa.selenium.server.ProxyHandler in HttpContext[/,/]
15:08:24.031 DEBUG [14] org.mortbay.http.HttpConnection - RESPONSE:
HTTP/1.1 403 Forbidden+for+Proxy
Date: Tue, 07 Jul 2009 13:08:24 GMT
Server: Jetty/5.1.x (Linux/2.6.24-24-generic i386 java/1.5.0_14
Content-Type: text/html
Content-Length: 1244


15:09:21.928 DEBUG [11] org.mortbay.http.HttpConnection - java.net.SocketTimeoutException: Read timed out
15:09:21.936 DEBUG [12] org.mortbay.http.HttpConnection - java.net.SocketTimeoutException: Read timed out
15:09:21.961 DEBUG [13] org.mortbay.http.HttpConnection - java.net.SocketTimeoutException: Read timed out
15:09:24.028 DEBUG [14] org.mortbay.http.HttpConnection - java.net.SocketTimeoutException: Read timed out
Mikael Couzic Beginner 2 posts since
Aug 19, 2009
Currently Being Moderated
1. Aug 19, 2009 4:00 PM in response to: eric
Re: Problem getting html result under firefox

Hi,

 

I had exactly the same problem and DEBUG messages, and I spent an entire day trying to figure out what was happening.

Finally, I just created a new test suite with new test cases and a new command line, and everything went well... I'm still a bit confused, but I'm pretty confident that it was just as simple as that.

Or maybe it isn't, but anyway if someone else has the same problem, I suggest you try to clean up the surface before you start digging up the mud.

 

Good luck anyway

Mikael Couzic Beginner 2 posts since
Aug 19, 2009
Currently Being Moderated
3. Oct 26, 2009 3:47 PM in response to: eric
Re: Problem getting html result under firefox

Well... I think I got it.

 

When I create a test suite from Selenium IDE on Ubuntu, I can't launch it properly with Selenium RC.

 

However, the same test suite created from Selenium IDE on Windows works perfectly on Ubuntu. And when I edit it manually, I can add Ubuntu-made test cases.

 

I suggest you try it on both OS.

More Like This

  • Retrieving data ...